Solved

Could not load file or assembly XmlSerializers

Posted on 2008-10-20
4
7,886 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:MisterT25
  • 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:MisterT25
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:
MisterT25 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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:…
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now