Vamsy
Vamsy

Reputation: 144

How to access a file present in another network using Wcf service in wpf application?

I am developing wpf application which uses the source to the controls from wcf service that will access a file or folder contents present in another network.My problem is when it searches in another network,it asks for the Credentials for that network.The Message is "Logon failure: unknown user name or bad password." How can I Solve it?

Upvotes: 1

Views: 636

Answers (1)

vortexwolf
vortexwolf

Reputation: 14037

It is a problem of accessing remote files from code. One of the solutions is using virtual disc drive that is mapped to the network. Another solution is using impersonation.

Check these links, the code can be helpful:

.NET (C#) Impersonation with Network Credentials

Accessing UNC file share with credentials?

Upvotes: 2

Related Questions