Re: System.Runtime.InteropServices.COMException: Error
From: Klaus H. Probst (usenet001_at_vbbox.com)
Date: 04/14/04
- Next message: Klaus H. Probst: "Re: string length"
- Previous message: Klaus H. Probst: "Re: Windows Service application"
- In reply to: Andy Li: "System.Runtime.InteropServices.COMException: Error"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Apr 2004 23:31:43 -0700
My experience with VB# in this area is pretty much null, but if
Server.CreateObject works in ASP.NET the way it does on classic ASP then
"iPower" is definitely not a valid progid and that's what the error is
telling you ("the object is not registered").
You need to use a fully qualified ProgID, like "ADODB.Recordset" or
"Scripting.FileSystemObject"
-- ____________________ Klaus H. Probst, MVP http://www.vbbox.com/ "Andy Li" <ahl@knowledgewindow.com> wrote in message news:uEmuU4MIEHA.4092@TK2MSFTNGP11.phx.gbl... > Hi, > > I am trying to migrate an old asp/com application into asp.net on a windows > 2003 server. after i registered the dll on sever, I got the following error. > The dll works fine on the win2k server. I used regsvr32 xxx.dll and it > indicated that com has been registered successfully. I tried to added the > aspcompat="true" to make the page single threaded. Still I got the same > error message. > > Is there any other setting I need to do on Win2K3 to make the old dll work > on .Net framework? I heard that the Interop makes old COM objects work on > .net, but don't have to configure it if any. Any help is really appreciated. > > Andy Li > > Attached Error message: > > -------------------------------------------------------------------------- -- > ---- > > Server Error in '/newton' Application. > -------------------------------------------------------------------------- -- > ---- > > COM object with CLSID {A2484F33-6B3A-4AFA-BF64-395990F533F9} is either not > valid or not registered. > Description: An unhandled exception occurred during the execution of the > current web request. Please review the stack trace for more information > about the error and where it originated in the code. > > Exception Details: System.Runtime.InteropServices.COMException: COM object > with CLSID {A2484F33-6B3A-4AFA-BF64-395990F533F9} is either not valid or not > registered. > > Source Error: > > Line 25: > Line 26: 'On Error Resume Next > Line 27: V2 = Server.CreateObject("iPower") > > Source File: E:\newton\web\SystemSelftest_orig.aspx Line: 27 > > Stack Trace: > > [COMException (0x80040154): COM object with CLSID > {A2484F33-6B3A-4AFA-BF64-395990F533F9} is either not valid or not > registered.] > System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0 > System.Activator.CreateInstance(Type type, Boolean nonPublic) +66 > System.Web.HttpServerUtility.CreateObject(String progID) +163 > ASP.SystemSelfTest_orig_aspx.__Render__control1(HtmlTextWriter __output, > Control parameterContainer) in E:\newton\web\SystemSelftest_orig.aspx:27 > System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27 > System.Web.UI.Control.Render(HtmlTextWriter writer) +7 > System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243 > System.Web.UI.Page.ProcessRequestMain() +1929 > > > > -------------------------------------------------------------------------- -- > ---- > Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET > Version:1.1.4322.573 > >
- Next message: Klaus H. Probst: "Re: string length"
- Previous message: Klaus H. Probst: "Re: Windows Service application"
- In reply to: Andy Li: "System.Runtime.InteropServices.COMException: Error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading