WebService and Smart Device Application
Hi,
I'am writeing web service which run on web server.
This is a part of web.config
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
When I connect to it from Poceket PC and call
some method, the Error occured - (401)Unauthorized.
Can somebody help me with authorization form PoceketPC
This is a part of PocketPC application
System.Net.NetworkCredential nc =
new System.Net.NetworkCredential(name, password, domain);
MyWebService ws = new MyWebService();
ws.PreAuthenticate = true;
ws.Credentials = nc;
wc.MyMethod(); // error occured (401)Unauthorized
Thanks,
Marek
|