Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebServiceBinding error
Message
From
19/07/2003 05:07:30
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00811704
Message ID:
00811750
Views:
10
>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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform