.NET General

Moderators: None (Apply to moderate this forum)
Number of threads: 797
Number of posts: 1359

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Issue with WCF service Posted by geoscaria on 12 Aug 2008 at 3:42 AM

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.

Report
This post has been deleted. Posted by marutibasp on 16 May 2009 at 4:20 AM
This post has been deleted.
Report
Re: Issue with WCF service Posted by Psightoplazm on 16 May 2009 at 1:40 PM
Why are you trying to write files onto other computers using WCF?
It sounds like you might just be experiencing a design flaw -
WCF is a communication foundation - if you need your client to get or send information to a server you should be setting up a WCF service on your server.
></\/~Psightoplasm`~



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.