我对IIS6的情况很糟糕。 我有1个不符合身份的APP-Pool:NETWORK SERVICE。 仅适用于Identity Local System,但使用此属性是危险(高度权限级别)。 网页asp.net打开,但应用程序asp.net尝试连接数据库,按照下一个错误:
Event Type: Information Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1314 Date: 7/6/2013 Time: 12:05:04 PM User: N/A Computer: WWW Description: Event code: 4011 Event message: An unhandled access exception has occurred. Event time: 7/6/2013 12:05:04 PM Event time (UTC): 7/6/2013 4:05:04 PM Event ID: aa4f0c3196864dc391467c9492a1b8a3 Event sequence: 10 Event occurrence: 1 Event detail code: 0 Application information:
Application domain: /LM/W3SVC/1598207490/Root-4-130176002992160068
Trust level: Full
Application Virtual Path: /
Application Path: C:\Inetpub\WebVarios\WebLocutorios\
Machine name: WWW Process information:
Process ID: 1572
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE Request information:
Request URL: http://casetas.cuentacentral.com/ajax/logincenter.aspx
Request path: /ajax/logincenter.aspx
User host address: 190.135.0.26
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
答案 0 :(得分:1)
很可能NETWORK SERVICE用户没有足够的数据库访问权限。 尝试禁用任何自定义错误处理程序(如web.config中的customErrors)并查看输出。或者,您可以将VS调试器附加到w3wp.exe进程,并在处理之前查看异常。