>I have a ASP.Net web application with a couple of WebServices running on
http://localhost/MyWebServiceWS/default.aspx>I sometimes(?) but not always get this error when I 'Start' my Windows Application that has a reference to that service.
>
>
An unhandled exception of type 'System.ArgumentException' occurred
>in system.web.services.dll
>
>Additional information: Only one WebServiceBinding attribute may be
>specified on type 'MyWebService.DataWS.DataService'.
>
>I have to restart .NET IDE to correct the error.
>I have tried IISrestart with no luck.
>
>thanks in advance!
James,
I'm guessing that your two web services contain classes that have the same name and are in the same namespace. Check the Namespace key of the
attribute to make sure they are different.
As far as the randomness of the error, I suspect that you are not using the two web services at the same time, but the garbage collector is not releasing the first web service object before you instantiate the second one.
Anyways, it's just a stab in the dark. Please let me know how far off I really am!