ASP.NET ERROR: Access is denied

前几天重装了电脑,之后原来运行得好好的网站就不能运行了,错误如下:

Access is denied: '**************'.

Description: An unhandled exception occurred during the execution of the current web request.

Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Access is denied: '*************'.

在网上找了很久都没有解决,于是自己又重装了系统,发现还是不行。但是错误和之前有所不同,于是又上网找,试来试去,最后终于成功了,主要问题是asp.net用户的权限不够,现将解决方案总结如下:

首先,打开“Control Panel”中的“Administrative Tools:

然后,选择“Local Security Policy 并双击:

接下来,展开“Local Policies”:

选择“User Rights Assignment:

选择“Log on locally:

ASPNET用户所在的组添加进去即可。

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章