导出EXCEL报错 PS:failed due to the following error: 80080005 服务器运行失败
这是我在服务器上查看的日志
声明一下 ,在本地测试可以成功导出EXCEL文件
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2014-10-27 19:47:09
Event time (UTC): 2014-10-27 11:47:09
Event ID: 644156bd90ba43138ac31137a78005ba
Event sequence: 1580
Event occurrence: 10
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT-2-130588802102690591
Trust level: Full
Application Virtual Path: /
Application Path: D:\Wikirig\
Machine name: WIN-D838RZ3D8ED
Process information:
Process ID: 1344
Process name: w3wp.exe
Account name: NT AUTHORITY\SYSTEM
Exception information:
Exception type: COMException
Exception message: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005 服务器运行失败 (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj)
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at LunaErp.Web.MainView.Business.OrderView.OutExcel(DataTable dtt, DataTable dtData, String filename, Int32 exceptinstartline, Int32 orderstartline, Int32 AddressNumber) in e:\OldERP\LunaErp.Web\MainView\Business\OrderView.aspx.cs:line 668
at LunaErp.Web.MainView.Business.OrderView.ExcelData() in e:\OldERP\LunaErp.Web\MainView\Business\OrderView.aspx.cs:line 284
at LunaErp.Web.MainView.Business.OrderView.btnExcel_Click(Object sender, EventArgs e) in e:\OldERP\LunaErp.Web\MainView\Business\OrderView.aspx.cs:line 1751
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://220.241.237.99:8888/MAINview/Business/OrderView.aspx?OrderCode=PI6573
Request path: /MAINview/Business/OrderView.aspx
User host address: 113.87.58.110
User:
Is authenticated: False
Authentication Type:
Thread account name: WIN-D838RZ3D8ED\Administrator
Thread information:
Thread ID: 46
Thread account name: WIN-D838RZ3D8ED\Administrator
Is impersonating: False
Stack trace: at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj)
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at LunaErp.Web.MainView.Business.OrderView.OutExcel(DataTable dtt, DataTable dtData, String filename, Int32 exceptinstartline, Int32 orderstartline, Int32 AddressNumber) in e:\OldERP\LunaErp.Web\MainView\Business\OrderView.aspx.cs:line 668
at LunaErp.Web.MainView.Business.OrderView.ExcelData() in e:\OldERP\LunaErp.Web\MainView\Business\OrderView.aspx.cs:line 284
at LunaErp.Web.MainView.Business.OrderView.btnExcel_Click(Object sender, EventArgs e) in e:\OldERP\LunaErp.Web\MainView\Business\OrderView.aspx.cs:line 1751
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details: