I have created a ASP.NET 2.0 websevrice on a server and I want to secure it
with Windows authentication
The web service is in a Vritual Directory.
I have add a Windows user to the server.
I have set the security to Integrated Windows Authentication and removed
I have set Perimissons on the folder for full control to the web service
I am accessing the service in a win forms app
This is code I am using
Dim mycredentialCache As CredentialCache = New CredentialCache()
' Create a new instance of NetworkCredential using the client
Dim credentials As NetworkCredential = New _
NetworkCredential("user", "password", "")
' Add the NetworkCredential to the CredentialCache.
mycredentialCache.Add(New Uri(tWeb.Url), "Basic", _
' Add the CredentialCache to the proxy class credentials.
tWeb.Credentials = mycredentialCache
ds = tWeb.GetData(lstTables.SelectedItem.ToString, txtCount.Text,
But I get HTTP 401 Unauthorized message.
|All times are GMT. The time now is 07:39 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.