title: Issue deploying ASP.NET application, having MSAL and OWIN middleware
body: <p>I have a web application in which, I have used Microsoft Authentication layer and custom OWIN middleware, this application is to integrate Microsoft Office Unified API's. All works great while the app is in development mode and development server.</p>
  
  <p>But when it is deployed on local IIS or any other IIS server, it throws an error. The issue is when i try to log in after successfully crossing OWIN authentication. The next step is loading of API in async way. I face this issue while the code attempts to access: GetMyFilesAndFolders and GetUsers API.
  There comes and error which states:</p>
  
  <blockquote>
    <p>Access to the path 'C:\Windows\system32\config\systemprofile' is denied.</p>
  </blockquote>
  
  <p>It tried a lot but no luck why this error is coming.</p>
  
  <p>Any help will be highly appreciated.</p>
  
  <p>You can get one reference <a href="https://graph.microsoft.io/en-us/docs" rel="nofollow noreferrer">https://graph.microsoft.io/en-us/docs</a>
  [enter image description here][1]</p>