1.我在把程序集安装到COM+中时,出现下面的情况???????????D:\visual.net源程序\Code\Com\bin\Debug>regsvcs Com.dll
Microsoft (R) .NET Framework Services Installation Utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.警告:类“Com.Com”没有类接口,这意味着非托管晚期绑定调用无法利用 AutoComplete 方
法。
已安装的程序集:
程序集:D:\visual.net源程序\Code\Com\bin\Debug\Com.dll
应用程序:Coms
类型库:D:\visual.net源程序\Code\Com\bin\Debug\Com.tlb2.我在web应用程序中引用上面的Com.dll程序集时,又出现下面的错误??????“/成绩查询”应用程序中的服务器错误。
--------------------------------------------------------------------------------HRESULT 中的异常:0x80131904。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Runtime.InteropServices.COMException: HRESULT 中的异常:0x80131904。源错误:
行 100: conn.Close();
行 101: }*/
行 102: Com.Com com=new Com.Com();
行 103: //string password=com.GenerateMD5Hash(userpwd1.Value);
行 104: bool IsValid=com.UserCheck(userid1.Value,userpwd1.Value,usertype1.Value);
源文件: c:\inetpub\wwwroot\成绩查询\secure\login.aspx.cs 行: 102 堆栈跟踪:
[COMException (0x80131904): HRESULT 中的异常:0x80131904。]
System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) +0
System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri) +581
System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType)
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj) +74
成绩查询.Secure.Login.btnlogin_ServerClick(Object sender, EventArgs e) in c:\inetpub\wwwroot\成绩查询\secure\login.aspx.cs:102
System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e)
System.Web.UI.HtmlControls.HtmlInputButton.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()我想这应该是COM+引用出现的问题把,但是我不知道如何解决???
谢谢高手的指教!!!
Microsoft (R) .NET Framework Services Installation Utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.警告:类“Com.Com”没有类接口,这意味着非托管晚期绑定调用无法利用 AutoComplete 方
法。
已安装的程序集:
程序集:D:\visual.net源程序\Code\Com\bin\Debug\Com.dll
应用程序:Coms
类型库:D:\visual.net源程序\Code\Com\bin\Debug\Com.tlb2.我在web应用程序中引用上面的Com.dll程序集时,又出现下面的错误??????“/成绩查询”应用程序中的服务器错误。
--------------------------------------------------------------------------------HRESULT 中的异常:0x80131904。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Runtime.InteropServices.COMException: HRESULT 中的异常:0x80131904。源错误:
行 100: conn.Close();
行 101: }*/
行 102: Com.Com com=new Com.Com();
行 103: //string password=com.GenerateMD5Hash(userpwd1.Value);
行 104: bool IsValid=com.UserCheck(userid1.Value,userpwd1.Value,usertype1.Value);
源文件: c:\inetpub\wwwroot\成绩查询\secure\login.aspx.cs 行: 102 堆栈跟踪:
[COMException (0x80131904): HRESULT 中的异常:0x80131904。]
System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) +0
System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri) +581
System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType)
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj) +74
成绩查询.Secure.Login.btnlogin_ServerClick(Object sender, EventArgs e) in c:\inetpub\wwwroot\成绩查询\secure\login.aspx.cs:102
System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e)
System.Web.UI.HtmlControls.HtmlInputButton.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()我想这应该是COM+引用出现的问题把,但是我不知道如何解决???
谢谢高手的指教!!!
解决方案 »
- 关于下载时绝对路径,在线等
- sqldatareader关闭问题
- 跪求一个学习dataGridView的链接!
- VB中Winsock控件在C#中实现的问题
- 一个有很有意思的API问题,PostMessage/SendMessage/keybd_event
- 写一个程序自动生成无限条记录的文本文件
- 求教大侠关于“[OleDbException (0x80004005): 未指定的错误]”
- vb.net 和c#各自在哪些领域有优势?有何区别?
- [求助]问一个关于远程文件确定的菜鸟问题,怎么判断远程文件和文件夹??
- vs.net2005与pb9调试问题
- 菜死人不填命:创建不了asp.net应用程序
- 请问在WebForm中如何去访问Web.config
郁闷啊???
郁闷啊????
郁闷啊
我不知道说什么好了