Access denied at webservice

Posted by phenevo on Stack Overflow See other posts from Stack Overflow or by phenevo
Published on 2010-03-13T20:59:54Z Indexed on 2010/03/13 21:05 UTC
Read the original article Hit count: 263

Filed under:
|
|

Hi,

I have a winforms, and it connecting wit webservice.

Webservice has method which create folder

Directory.Create(path);

Webservice is at company server, and this folder must me create at another disc in out company.

When I invoke this method, i get exception "Acces denied to path..."

When webservice was running at my computer everything was ok.

I have full acces to this network disc.

But how to set full access to my company server??

When I check this method:

[WebMethod]
        public string GetNameOfUser()
        {
            return WindowsIdentity.GetCurrent().Name;
        }

I get <string>NT AUTHORITY\NETWORK SERVICE</string>

© Stack Overflow or respective owner

Related posts about c#

Related posts about webservice