How to use Process Monitor to Resolve an UnauthorizedAccessException

后端 未结 2 530
-上瘾入骨i
-上瘾入骨i 2021-01-17 00:50

I\'m trying to write a log file from an ASP.NET application under IIS7, but keep getting the following exception:

UnauthorizedAccessException \"Access to the         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-17 01:41

    Not sure why you would want to use Process Monitor for access problem in file system.

    Check that the directory has access permitted for the user which the application is running as at the point of the file IO call. If you are impersonating this would be the Network Service account. If you are impersonating, it would be the impersonating user.

提交回复
热议问题