basil365
asked on
WCF - Read File - Logon failure: unknown user name or bad password
Hi guys,
I have a WCF service that needs to read a file off a network drive.
Everytime the service tries to access the file I'm getting an error saying:
Logon failure: unknown user name or bad password
What do I need to do to allow the service to access the file? I'm guessing I need to set something in the Web.Config file, but I'm not sure what?
Thanks
I have a WCF service that needs to read a file off a network drive.
Everytime the service tries to access the file I'm getting an error saying:
Logon failure: unknown user name or bad password
What do I need to do to allow the service to access the file? I'm guessing I need to set something in the Web.Config file, but I'm not sure what?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How are you connecting to network drive (UNC, WebDAV), and are you passing user name and password for connecting to the drive.
ASKER
I haven't set the security configurations, below is bindings section of my Web.Config file:
Open in new window
I've looked at the Message Security articles in the link you provided, but I'm still not sure what exactly needs to be set to allow the service to access the file.Thanks.