Access Network Drive from WebService

  • Thread starter AliR \(VC++ MVP\)
  • Start date
A

AliR \(VC++ MVP\)

Hi everyone,

I'm trying to write a webservice that would access data files that are on a
network drive. But it is not working.
When I try to open a file on the network drive this is the exception that is
being thrown:
"Logon failure: unknown user name or bad password."

Does anyone know how to get around this problem?

Thanks
AliR.
 
G

G.S.

Hi everyone,

I'm trying to write a webservice that would access data files that are ona
network drive. But it is not working.
When I try to open a file on the network drive this is the exception thatis
being thrown:
"Logon failure: unknown user name or bad password."

Does anyone know how to get around this problem?

Thanks
AliR.

What is the acocunt the webservice is running under and what
permissions does this account have on the share?
 
A

AliR \(VC++ MVP\)

Right now Anonymous access is checked under the Authentication Methods.

I'm not really sure how I would set it up to use a particular account.

AliR.



What is the acocunt the webservice is running under and what
permissions does this account have on the share?
 
G

G.S.

Right now Anonymous access is checked under the Authentication Methods.

I'm not really sure how I would set it up to use a particular account.

AliR.



What is the acocunt the webservice is running under and what
permissions does this account have on the share?

Just changing the anonymous permissions or impersonating a more
powerful account has security implications.
I would highly recommend familiarizing yourself with ASP.NET
authentication and authorization mechanisms before making changes to
your web.config/machine.config files, IIS/NT security, etc.
This would be a good starting point:
http://msdn.microsoft.com/en-us/library/ms978378.aspx
 

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

Top