1

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

I get this error while I try to test my webservice method on my local host. I get the error on this line.

public ICampgroundsNearMeManager campgroundsNearMeManager = ManagerFactory.CreateCampgroundsNearMeManager();

What could be wrong?

1
  • Do you have installed the correct version of Microsoft Enterprise Library?
    – svick
    Apr 25, 2011 at 13:03

2 Answers 2

0

Try getting more information using the Assembly Binding Log Viewer.

0

Got the solution.

Seemed to be a problem with the DLL file which I had imported. Removed the DLL, cleaned and build the project and it worked.

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.