Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebServiceBinding error
Message
De
19/07/2003 05:07:30
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
00811704
Message ID:
00811750
Vues:
11
>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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform