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.
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:
Access to the path 'C:\Windows\system32\config\systemprofile' is denied.
It tried a lot but no luck why this error is coming.
Any help will be highly appreciated.
You can get one reference https://graph.microsoft.io/en-us/docs [enter image description here][1]