Tom Sage
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.FileNotFoundExce ption: 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.
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.FileNotFoundExce
File name: 'WSPoll.XmlSerializers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'
How can I fix this? Thank you.
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.
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?
Is the web service that you are calling using this dll?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Error says that your application is unable to load "WSPoll.XmlSerializers.dll
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