View Single Post
  #1 (permalink)  
Old July 4th, 2003, 07:32 AM
Marekp Marekp is offline
Authorized User
 
Join Date: Jun 2003
Location: , , Slovakia.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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