Today I had to try and figure out why I could not publish a map file to ArcGIS Server. The message I got was
"Server Object instance creation failed on machine foomachine. Document D:\arcgisserver\maps\mymap.mxd can not be opened."
When I checked the permissions on the file all looked good - the ArcGISSOC user had access to the file. So where's the beef?
Instead of messing around in the security settings for hours on end, I simply fired up ArcMap as the ArcGISSOC user. It's easy to do - just drop this into a batch file, and you're off and running...
runas /user:youdomain\arcgissoc /profile /savecred "C:\Program Files\ArcGIS\Bin\ArcMap.exe"
Then, try to browse to the file in question and open it. In my case, the problem was ArcGISSOC could not access the D: drive, which seemed to override the explicit permission I granted on that file.
I'm Dave and this is my blog. I'm usually writing about .NET Software Development, ArcGIS, or Agile Practices, but other stuff does creep in from time to time. I hope you find something of use, and feel free to contact me if you have any questions. You can also check out my profile on LinkedIn
dojo.DTSAgile.com is our technology preview / demo site. As I and my team cook up cool things we post them here.
ArcDeveloper.net is a site that hosts a set of open source projects related to ArcGIS. This includes Tile Cache for .NET (TC4N) and Feature Server for .NET (FS4N). Come over and check it out!
Assembla is a free service that provides Subversion source control, wikis and work Tracking. The ArcDeveloper project is run from here. It rocks. Check them out today.
Agilistas is a LinkedIn group focused on discussing and promoting Agile practices. Everyone is welcome to join in the conversation as we evolve the process of creating software to make it more enjoyable for all involved.