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
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