Sunday, March 11, 2012

Globalization/Localisation and WebServices

Mark your web method with the following attribute:

[WebMethod(EnableSession =true)]


Thanks for this answer,

I am coding in vb.net, so it should look like this:

<WebMethod(EnableSession =True)> _

But this produces an error, VS2005 tells me that EnableSession has not been declared.


For VB it would be:
< WebMethod(EnableSession :=True)
Mark it as answer if it works.


the correct syntax was indeed

<WebMethod(enableSession:=True)> _

Thnaks a lot for your help

No comments:

Post a Comment