System.Runtime.InteropServices.COMException: 服务器出现意外情况

 

“/”应用程序中的服务器错误。

服务器出现意外情况。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Runtime.InteropServices.COMException: 服务器出现意外情况。

源错误:

行 164:					//Excel工作表

            行 165:					Excel.Workbook theWorkbook;

            行 166:					theWorkbook =

            行 167:						ExcelObj.Workbooks.Open(

            行 168:						filepath, 0, true, 5,

源文件: d:\sites\monitorcheck\web\systemmng\import.aspx.cs    行: 166

堆栈跟踪:

[COMException (0x80010105): 服务器出现意外情况。]

            Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object ReadOnly, Object Format, Object Password, Object WriteResPassword, Object IgnoreReadOnlyRecommended, Object Origin, Object Delimiter, Object Editable, Object Notify, Object Converter, Object AddToMru) +0

            Web.SystemMng.Import.ReadExcel(String strPPath, String filename, String UserName) in d:\sites\monitorcheck\web\systemmng\import.aspx.cs:166

            Web.SystemMng.Import.btnConfirm_Click(Object sender, EventArgs e) in d:\sites\monitorcheck\web\systemmng\import.aspx.cs:105

            System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

            System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57

            System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18

            System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33

            System.Web.UI.Page.ProcessRequestMain() +1292

            


版本信息: Microsoft .NET Framework 版本:1.1.4322.2407; ASP.NET 版本:1.1.4322.2407


我照着网友提供的解决方法“ 配置Dcom。运行Dcomcnfg.exe,找到Excel应用程序,配置其属性,身份验证级别选无,身份标识选"交互式用户",安全性页面,启动和访问均给everyone。
还是不行呀!!!

我现在附上我设置的图片,让高手帮我指点一下,看哪里设置有错??
System.Runtime.InteropServices.COMException: 服务器出现意外情况

System.Runtime.InteropServices.COMException: 服务器出现意外情况

你可能感兴趣的:(exception)