BindingFailure was detected

N

nickname

I have a simple web service with a method that returns a Boolean:

using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service () {

//Uncomment the following line if using designed components
//InitializeComponent();
}

[WebMethod]
public bool DoSomething()
{
return true;
}
}

I have created a windows forms project with a web reference to the service.
In the code I create a instance of the proxy:

Service test = new Service();

This raises an exception:

“BindingFailure was detected
Message: The assembly with display name WindowsApplication1.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 WindowsApplication1.XmlSerializers, Version=1.0.2418.30038,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system
cannot find the file specified.
File name: 'WindowsApplication1.XmlSerializers, Version=1.0.2418.30038,
Culture=neutral, PublicKeyToken=null'â€

Does anybody know why this occurs and how I can resolve it?

Thanks
 
S

Steven Cheng[MSFT]

Hi Nick,

How are you doing on this issue or does the information in my last reply
helps you a little? If there is still anything we can help, please feel
free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top