Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Could not load file or assembly XmlSerializers

Posted on 2008-10-20
4
Medium Priority
?
8,360 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
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

885 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