title: Creating file using windows service
body: <p>I have written a windows service which creates a file on local drive (C:\Testing folder).</p>
  
  <p>I have installed this service. I am starting this service from web application hosted in IIS. </p>
  
  <p>If i hardcode this path in service code, the service works fine but if I pass the path through web application to the web service, Events log showing an excepetion </p>
  
  <blockquote>
    <p>Service cannot be started. System.UnauthorizedAccessException: Access to the path 'C:\Testing' is denied.</p>
  </blockquote>
  
  <p>I have admin access on my machine and I am starting the service with the same account. How can I get rid of this exception?</p>