4

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.

5
  • 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
    Commented Nov 28, 2011 at 23:20
  • Also make sure you set the Specific Version to false.
    – Jamie
    Commented Nov 29, 2011 at 3:43
  • These are great suggestions, I'll give them a shot.
    – Gady
    Commented Nov 30, 2011 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
    Commented Dec 13, 2011 at 3:02
  • Done... Glad you got it resolved.
    – D.E.Wright
    Commented Dec 13, 2011 at 17:45

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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