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
Issue regarding CreateFeatureClass method of FeatureWorkspace on ArcGIS Server 9.2 with C#
Labels:
ArcGIS 9.2 Server,
C#,
CreateFeatureClass,
HRESULT E_FAIL,
Server
Subscribe to:
Post Comments (Atom)
3 comments:
Good Work Buddy! Keep it up.
Yes,
If you are doing any writing/reading for ANY file using AGS, you'll want to insure the SOC account can access it.
Good job.
-rutkowskimichael@gmail.com
I'm using ArcObjects with Engine and am receiving the same error. I've checked file permissions and system, users and well, Everyone have full permissions. Still get this error. Is there an ArcEngine user account that i missing.
Post a Comment