Problem :
Since couple of days, I have been stuck up at one place on my code. I am using ArcGIS Server 9.2 with C# as a development environment. I wanted to create shapefile on server using its Lat-Long values which comes from Textfile. I am trying to use FeatureWorkspace.CreateFeatureClass() method to create the shapefile. But its just throwing the error - {"Error HRESULT E_FAIL has been returned from a call to a COM component."}
Solution:
After a long research, I found the solution. I downloaded the FileMon tool from given site (http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx. Or http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx). It monitor and display file system activity on a system in real-time. Its a powerful tool for exploring the way Windows works, seeing how applications use the files and DLLs, or tracking down problems in system or application file configurations.
Using that tool, I come to know that Shapefile is created, but the folder on which its going to write doesnt have permission to write any data on it. So ultimately its was a permission issue for the folder. So to overcome it, I have given the ArcGIS SOC user to full control on that folder and then I could easily able to write the shapefile on it.
If anyone facing such kind of error, I would highly recommand to see the persmission setting for the ArcGIS SOC user on Server.
Tuesday, June 3, 2008
Subscribe to:
Posts (Atom)