windows authentication (webservice security)

M

Marco

I'm using a lan with domain server under win200, and, in the same network,
but in an other machine, i've installed a webservice.
This second server is under win2003.

I need to allow access to the webservice ONLY for authenticated user (user
in the main domain), i've configureted the file web.config, but the server
doesn't recognize the user as connected into the domain, and so it doesn't
grant access to the webservice to anyone.
I suppose the problem is due to the windows authentication, in fact if i try
to open the .asmx page from the browser, it asks userid and password,
instead of using windows integreted authentication.
The service I need is for use only in the private lan and it should be
launched by an executable in local machines (not with browser)

Does anyone can help me??

Thanks

Marco

PS. Sorry for my english!!!!
 
D

Dilip Krishnan

Hello Marco,

You need to set the Default credentials to the web service proxy.
something like...

proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top