I'm working on an application that makes asynchronous calls to the WebService.
I added a proxy class to make asynchronous calls. The code compiles and runs properly, however whenever I try to double-click the proxy class in solution explorer (Visual Studio 2008) I am presented with a page
To prevent possible data loss before loading the designer, the following errors must be resolved: WebServiceBindingAttribute is required on proxy classes.
My proxy class is already defined this way
namespace AsyncCaller
{
[WebServiceBindingAttribute(Name = "AsyncRequestSoap", Namespace = "http://tempuri.org/")]
public class AsyncCallerProxy : SoapHttpClientProtocol
{
public AsyncCallerProxy()
{
this.Url = "http://localhost/MyAsyncService/AsyncService.asmx";
}
So I can't see the reason for the error.
This is a very minor issue since I can still run the application, but I'm curious.
Same problem here..
Just decorate your proxy class with the following attribute
[System.ComponentModel.DesignerCategoryAttribute("code")]
to get rid of the useless design mode.
In the properties for the project. In the Build Tab. Select "Generate Serialization assembly:" to Off.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With