Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have ArcGIS Server 10 installed on a server, with Web ADF Runtime and Web Applications installed, and I have a custom web service that uses a couple of ESRI.ArcGIS assemblies deployed on that server. When I run the web service, I get the following error:

Could not load file or assembly 'ESRI.ArcGIS.Geodatabase, Version=10.0.0.0, Culture=neutral, PublicKeyToken=......" or one of its dependencies. The system cannot find the file specified.

The web service uses .NET 3.5 and the ESRI assemblies are registered in the GAC. I also tried including them in a Bin folder in the app with no luck. Any help is much appreciated.

share|improve this question
3  
You will want to make sure your are initializing your license properly as well; when working locally you get a pass; but when you publish to the server this can fail. This can cause the 'or one of its dependencies' error since the Init didn't fire. –  D.E.Wright Nov 28 '11 at 23:20
    
Also make sure you set the Specific Version to false. –  Jamie Nov 29 '11 at 3:43
    
These are great suggestions, I'll give them a shot. –  Gady Nov 30 '11 at 15:10
    
@D.E.Wright Your comment is the answer that fixed my issue. Can you please add it as an answer and I'll mark it as the accepted answer. –  Gady Dec 13 '11 at 3:02
    
Done... Glad you got it resolved. –  D.E.Wright Dec 13 '11 at 17:45
add comment

1 Answer

up vote 1 down vote accepted

You will want to make sure your are initializing your license properly as well; when working locally you get a pass; but when you publish to the server this can fail. This can cause the 'or one of its dependencies' error since the Init didn't fire.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.