问题描述
事件代码:3005
事件消息:发生了未处理的异常。
活动时间:9/10/2012 9:37:39 AM
活动时间(UTC):9/10/2012 4:07:39 AM
活动编号:18a58ecf14734acd8b9c6e566da55e59
活动顺序: 87
事件发生:1
活动详情代码:0
申请信息:
 申请领域:/ LM / W3SVC / 8 / ROOT-1-129917221587343750
 信任等级:完整
 申请虚拟路径:/
 申请路径:C:\inetpub \ www.root \SpectrumWholeSale \
 机器名称:WINWEB
流程信息:
 流程ID:4776
 进程名称:w3wp.exe
 帐户名称:IIS APPPOOL \ ClassClass AppPool
例外信息:
 例外类型:HttpException
 异常消息:在此上下文中无法使用会话状态。
at System.Web.HttpApplication.get_Session()
在ShopGear1.Global.Application_End(对象发件人,EventArgs e)中的E:\ PRABHU \PROJECTS \Spectrum\WholeSale\Global.asax.cs:第22行zh
请求信息:
 请求网址:
 申请路径:
 用户主机地址:
 用户:
 已通过身份验证:错误
 身份验证类型:
 线程帐户名称:IIS APPPOOL \ ClassClass .NET AppPool
主题信息:
 主题ID:13
 线程帐户名称:IIS APPPOOL \ ClassClass AppPool
 模仿:虚假
 堆栈跟踪: at System.Web.HttpApplication.get_Session()
在ShopGear1.Global.Application_End(对象发件人,EventArgs e)中的E:\ PRABHU \PROJECTS \Spectrum\WholeSale\Global.asax.cs:第22行
自定义活动详情:
谢谢并问候穆罕默德
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 9/10/2012 9:37:39 AM
Event time (UTC): 9/10/2012 4:07:39 AM
Event ID: 18a58ecf14734acd8b9c6e566da55e59
Event sequence: 87
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/8/ROOT-1-129917221587343750
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\SpectrumWholeSale\
Machine name: WINWEB
Process information:
Process ID: 4776
Process name: w3wp.exe
Account name: IIS APPPOOL\Classic .NET AppPool
Exception information:
Exception type: HttpException
Exception message: Session state is not available in this context.
at System.Web.HttpApplication.get_Session()
at ShopGear1.Global.Application_End(Object sender, EventArgs e) in E:\PRABHU\PROJECTS\Spectrum\WholeSale\Global.asax.cs:line 22
Request information:
Request URL:
Request path:
User host address:
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\Classic .NET AppPool
Thread information:
Thread ID: 13
Thread account name: IIS APPPOOL\Classic .NET AppPool
Is impersonating: False
Stack trace: at System.Web.HttpApplication.get_Session()
at ShopGear1.Global.Application_End(Object sender, EventArgs e) in E:\PRABHU\PROJECTS\Spectrum\WholeSale\Global.asax.cs:line 22
Custom event details:
Thanks and Regards Mohamed
推荐答案
特别是,错误消息告诉您,您正处于 Application_End 方法中,该方法是在.NET .NET应用程序即将被IIS卸载时引发的。在这种情况下,您无法访问
会话对象,因为不再有任何活动会话。
In particular, the error message tells you that you're in the Application_End method, that is raised when the ASP .NET Application is about to be unloaded by IIS. In this context, you can't access theSession object, because there isn't any active session anymore.
这篇关于错误1309 Asp.net 4.0.30319的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!