title: Access denied at webservice
body: <p>I have a winforms, and it connecting wit webservice.</p>
  
  <p>Webservice has method which create folder</p>
  
  <pre><code>Directory.Create(path);
  </code></pre>
  
  <p>Webservice is at company server, and this folder must me create at another disc in out company.</p>
  
  <p>When I invoke this method, i get exception <code>"Access denied to path..."</code></p>
  
  <p>When webservice was running at my computer everything was ok.</p>
  
  <p>I have full access to this network disc.</p>
  
  <p>But how to set full access to my company server??</p>
  
  <p>When I check this method:</p>
  
  <pre><code>[WebMethod]
          public string GetNameOfUser()
          {
              return WindowsIdentity.GetCurrent().Name;
          }
  </code></pre>
  
  <p>I get <code>&lt;string&gt;NT AUTHORITY\NETWORK SERVICE&lt;/string&gt;</code></p>
  
  <p>Rest of webmethods without directory instructions working properly</p>
  
  <p>Edited Structure</p>
  
  <p>Computer A is in domain and there is running win forms</p>
  
  <p>Server A : there is running webservice</p>
  
  <p>Network disc: there are folders with important files for winforms application</p>
  
  <p>yes, we have a domain.Computer A has access to network disc.</p>