关于IIS下发布网站出现3005错误的问题
各位大神:
本人第一次部署网站,我是用VS2010开发的,先在本地发布在本机上后,将发布后的文件拷贝在服务器的文件夹下然后配置服务器上的IIS,之后网站可以正常服务,但是服务器(win server2003)运行两天左右后报出“应用程序正常初始化(0xc0000044)失败”,必须重启后才能正常使用。查看了系统日志后发现报如下的警告:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2014-11-4 22:53:40
Event time (UTC): 2014-11-4 14:53:40
Event ID: 01d725d1690044758c6a1ae8cca71d3e
Event sequence: 15
Event occurrence: 3
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/474487346/Root-1-130595834620000000
Trust level: Full
Application Virtual Path: /
Application Path: E:\zzxyszzx\
Machine name: RWXY
Process information:
Process ID: 4432
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: HttpException
Exception message: Response is not available in this context.
at System.Web.HttpApplication.get_Response()
at zzxy.Web.Global.Session_End(Object sender, EventArgs e) in C:\Users\Administrator\Desktop\WebOfZzxy\WebOfZzxy\Web\Global.asax.cs:line 87
Request information:
Request URL:
Request path:
User host address:
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 25
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.HttpApplication.get_Response()
at zzxy.Web.Global.Session_End(Object sender, EventArgs e) in C:\Users\Administrator\Desktop\WebOfZzxy\WebOfZzxy\Web\Global.asax.cs:line 87
小弟十分不解,有下面几个问题:
1.服务器出现上述的问题真的和网站的这个警告有关系吗?
2.C:\Users\Administrator\Desktop\WebOfZzxy\WebOfZzxy\Web\Global.asax.cs:line 87
是我工程的路径,为什么在发布出来之后还能是报这样一个位置的错误,而且代码里面没有关于工程位置的代码
protected void Session_End(Object sender, EventArgs e)
{
Response.Redirect("View/BackHome/login.aspx");
}
这是出错代码!
3.如何才能修复这个问题?
小弟在这里先谢谢各位大神了,还望各位大神细心教导一下小弟,万分感谢!