We have a WCF service running on IIS in one of the machine. This service is supposed to write a file on another machine.
We follow the windows credentials for authenticating the client and carry the same credentials to write a file on the other machine.
Our network setup doesn’t allows to do so. When we try to access a remote machine with the client credentials it does throws an exception as stated below.
=======================================================================================================================
System.UnauthorizedAccessException: Access to the path '\\....\.....\abc.txt' is denied.
======================================================================================================================
When we try to mount the client and the server in the same machine, it works out well. In another case when we try having a client and server in two different machines and write a file on server it works well
Problem arises when we try to have all three in 3 different machines.
When we tried in Microsoft Knowledge base and other codeplex sites, it stated,
Use Delegation to Access Network Resources
If your WCF service runs under the Network Service account, configure your computer account in Active Directory to be trusted for delegation.
Even we tried this but result is the same.Can anyone help me on this.Pls provide the settings that should be provided for the delegation in the web.config and app.config.