我添加引用后,报下面的错误!!!!
“/VTRANS”应用程序中的服务器错误。
--------------------------------------------------------------------------------Automation 错误
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Runtime.InteropServices.COMException: Automation 错误源错误:
行 1170: strErrMsg = myGetErrMsg();
行 1171: //2.3导入
行 1172: blnRtn = clsValidCar.ImportExcelFromWeb(strSystemCode,ref strImportRlt,ref intTotalNum,ref intSuccessNum,strDir,ref intCounts,strErrMsg);
行 1173:
行 1174: //3.删除文件
源文件: d:\inetpub\wwwroot\vtrans\trailer\tscc08_carrierassignmentsearch.aspx.cs 行: 1172 堆栈跟踪:
[COMException (0x80010108): Automation 错误]
ValidCarImport.CM22_ValidCarWebClass.ImportExcelFromWeb(String strSystemCode, String& strImportRlt, Int16& intTotalNum, Int16& intSuccessNum, String strDir, Int16& intCounts, String strMsgString) +0
VTRANS.Trailer.TSCC08_CarrierAssignmentSearch.btnSubmit_Click(Object sender, EventArgs e) in d:\inetpub\wwwroot\vtrans\trailer\tscc08_carrierassignmentsearch.aspx.cs:1172
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
“/VTRANS”应用程序中的服务器错误。
--------------------------------------------------------------------------------Automation 错误
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Runtime.InteropServices.COMException: Automation 错误源错误:
行 1170: strErrMsg = myGetErrMsg();
行 1171: //2.3导入
行 1172: blnRtn = clsValidCar.ImportExcelFromWeb(strSystemCode,ref strImportRlt,ref intTotalNum,ref intSuccessNum,strDir,ref intCounts,strErrMsg);
行 1173:
行 1174: //3.删除文件
源文件: d:\inetpub\wwwroot\vtrans\trailer\tscc08_carrierassignmentsearch.aspx.cs 行: 1172 堆栈跟踪:
[COMException (0x80010108): Automation 错误]
ValidCarImport.CM22_ValidCarWebClass.ImportExcelFromWeb(String strSystemCode, String& strImportRlt, Int16& intTotalNum, Int16& intSuccessNum, String strDir, Int16& intCounts, String strMsgString) +0
VTRANS.Trailer.TSCC08_CarrierAssignmentSearch.btnSubmit_Click(Object sender, EventArgs e) in d:\inetpub\wwwroot\vtrans\trailer\tscc08_carrierassignmentsearch.aspx.cs:1172
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
解决方案 »
- 利用WebConfigurationManager修改web.config 问题
- 求asp.net 压缩文件代码!
- <a href='MyPhoto.aspx?DelID=<%# Eval("album_id") %>&index=hddnPageIndex.value' />
- visual studio2008怎样使第一个DIV移至网页的最顶端
- asp.net中Fill的问题
- 为什么firefox有时候点两次提交才能进到下一个页面啊?是不是因为放到upanel空间里面了吗?
- 控件中的控件
- webservice中的例外处理
- 帮忙看看
- 怎样截获或改变发送邮件的目的地
- 请教一下数据库的问题
- NET+XML开发,能不能在XML生成一个类似数据库ID的东西,谢谢帮忙。
2。如添加.net的dll一样把这个dll添加引用。(.net会自动包装这个dll)
3。实例化,访问。
语法
regsvr32 [/u] [/s] [/n] [/i[:cmdline]] DllName
参数
/u
未注册服务器。
/s
指定 regsvr32 安静运行,且不显示任何消息框。
/n
指定不调用 DllRegisterServer。此选项必须与 /i 共同使用。
/i:cmdline
调用 DllInstall 将它传递到可选的 [cmdline]。在与 /u 共同使用时,它卸载 .dll。
DllName
指定要注册的 .dll 文件名。
/?
在命令提示符下显示帮助。
示例
要为“Active Directory Schema”注册 .dll,请键入:
regsvr32 schmmgmt.dll
格式化图例
格式 含义
斜体 用户必须提供的信息
粗体 用户必须准确键入的要显示的元素
省略号 (...) 在命令行中可多次重复的参数
中括号 ([]) 可选项
大括号 ({});选项用竖线 (|) 分隔。例如:{even|odd} 用户必须从选项集合中选择一个
Courier 字体 代码或程序输出
2。如添加.net的dll一样把这个dll添加引用。(.net会自动包装这个dll)
3。实例化,访问。
http://www.tongyi.net/article/20011018/200110182440.shtml