Link to home
Start Free TrialLog in
Avatar of Tom Sage
Tom SageFlag for United States of America

asked on

Could not load file or assembly XmlSerializers

I have a program that downloads files from a Web Service.  It has been working well for some time.  Today, it is giving me this error when I run it:

The assembly with display name 'WSPoll.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'WSPoll.XmlSerializers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'WSPoll.XmlSerializers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'

How can I fix this?  Thank you.
Avatar of Toms Edison
Toms Edison
Flag of India image

Did you uninstall anything from your machine
Error says that your application is unable to load "WSPoll.XmlSerializers.dll" version 3.0.0.0
This dll should be either in bin folder of your application or in GAC.
If it is not found then copy the dll to bin folder or install it in GAC

This should fix your issue
Avatar of Tom Sage

ASKER

Hi TechTiger007,

I get this error when I press F5 in VS 2005.  It stops at a call web service and gives this error.  It was working fine yesterday.  

I looked at a working version of this program loaded on a server. There is no WSPoll.XmlSerializers.dll in the program directory.  Also, I looked at the deployment program.  It does not load any such dll.

I am not sure what turned on the need for this dll.  I will keep looking.  Thanks.
Did you check the GAC
Is the web service that you are calling using this dll?
ASKER CERTIFIED SOLUTION
Avatar of Tom Sage
Tom Sage
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial