Solved

Could not load file or assembly XmlSerializers

Posted on 2008-10-20
4
8,047 Views
Last Modified: 2013-11-07
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.
0
Comment
Question by:Tom Sage
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22761151
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
0
 

Author Comment

by:Tom Sage
ID: 22761269
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.
0
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22761363
Did you check the GAC
Is the web service that you are calling using this dll?
0
 

Accepted Solution

by:
Tom Sage earned 0 total points
ID: 22761630
Here is a link that basically says this is a bug in VS 2005.  The fix is to turn it off in the VS menu selections (Debug/Exceptions/Managed Debugging Assistants)  Uncheck Binding Failure.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2258583&SiteID=1

thanks for your help.

0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question