Just create a web service and web site.
First wsdl webservice and installed with website i am getting access
denied error.
Second tried web referance my service from website with VS and still
getting access denied error. I am using window auth. This also happens
when i use SQL connection.
so far i have tried.
1. Configure IIS with anonymous access No luck.
2. used Credential access no luck.
ColService.CollectService colsrv = new CollectService();
System.Net.NetworkCredential nc = new
System.Net.NetworkCredential("mgr","pass","myDom") ;
colsrv.Credentials = nc;
Label1.Text = colsrv.MyMehhod();
3. Have try to change web.config. this works for sql conn. Not for web
service.
<identity impersonate="true" userName="Mydom\mgr" password="pass" />