zoukankan      html  css  js  c++  java
  • 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。
    还是不行呀!!!

    我现在附上我设置的图片,让高手帮我指点一下,看哪里设置有错??



  • 相关阅读:
    idea报错。Error:Failed to load project configuration: cannot parse xml file E:project.ideaworkspace.xml: Error on line 1: 前言中不允许有内容。
    数据库索引的使用
    sql查询每个学生的最高成绩mysql语句
    Tomcat下没有编译后的class文件
    fullpage中大的图片超过一屏怎么在手机端滑动显示?
    springmvc拦截器的配置、使用
    过滤器、拦截器中重定向无限循环问题解决
    Linux下的Memcache安装
    Windows下的Memcache安装
    jQuery学习资源参考教程网址推荐
  • 原文地址:https://www.cnblogs.com/huazai8204/p/985730.html
Copyright © 2011-2022 走看看