jasie24
October 12th, 2003, 03:36 PM
I made a simple web service,and after that a simple web application and when i have tried to run it(when i push a button "btnGetText",and it should show me in a label a text),it gives me this message:
"The request failed with HTTP status 401:Access denied"
For example,
"TestService" is the class that contains my webMethod:
the location is something like that:
http://localhost/TestService/Category.asmx
and in my web application example was something like that:
imports TestService.localhost
....
private sub btnGetText_click(byval sender as object,e as EventArgs)
dim myProxy as new localhost.Category
lblText.text=myProxy.WriteText("Apple")
end sub
where "WriteText" is the public method from my service
and "localhost" is that proxy class with the default name when i added a Web Reference with my service.
I have to set something in IIS or why can i run my web service on my local server?
Many Thanks
"The request failed with HTTP status 401:Access denied"
For example,
"TestService" is the class that contains my webMethod:
the location is something like that:
http://localhost/TestService/Category.asmx
and in my web application example was something like that:
imports TestService.localhost
....
private sub btnGetText_click(byval sender as object,e as EventArgs)
dim myProxy as new localhost.Category
lblText.text=myProxy.WriteText("Apple")
end sub
where "WriteText" is the public method from my service
and "localhost" is that proxy class with the default name when i added a Web Reference with my service.
I have to set something in IIS or why can i run my web service on my local server?
Many Thanks