title: Access to the path '0' is denied IIS 7
body: <p>I have a web application developed in ASP.net 4.0 and hosted in IIS7(ProdServer). 
  In one of the pages I am creating a file and storing it in \someOtherServer\Storage\
  folder.</p>
  
  <p>when I log on to production server and hit run and \someOtherServer\Storage\
  I am able to browse the folder.</p>
  
  <p>When I run my ASP.net application I get the error 
  Access to the path '0' is denied. </p>
  
  <p>Exception Details: System.UnauthorizedAccessException: Access to the path '0' is denied. </p>
  
  <p>ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. </p>
  
  <p>To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.</p>