Re: System.Runtime.InteropServices.COMException: Error

From: Klaus H. Probst (usenet001_at_vbbox.com)
Date: 04/14/04


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
>
>


Relevant Pages

  • System.Runtime.InteropServices.COMException: Error
    ... The dll works fine on the win2k server. ... COM object with CLSID is either not ... System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27 ...
    (microsoft.public.dotnet.general)
  • Re: Class not registered error
    ... about purging OCX information? ... getting the property dialog and then selecting the Custom ... >> Next I went to Google and used the text message (minus the CLSID) as ... >> ssdggrid so I had a look at some other suspicious looking dll files. ...
    (microsoft.public.vb.general.discussion)
  • Re: VCL.NET revisited...
    ... Ever noticed the size of the .NET Framework directory? ... Back to DLL Hell deployment? ... Delphi apps were/are mostly single exe only and any ... DevCo spinoff: Unmanaged Delphi W32. ...
    (borland.public.delphi.non-technical)
  • Re: Smart Pointers Class not registered error
    ... > which uses smart pointers to access the capability given by these objects. ... > Having stepped through to this point the CLSID provided appears to be the ... > Regsvr32 reports as having succeeded, when called on the appropriate DLL. ... > All the appropriate items appear to exist in the Windows registry. ...
    (microsoft.public.vc.atl)
  • Re: DShowNET - create instance of Clsid.FilterGraph fails?
    ... I don't know how much you know about COM, but a CLSID is usually associated ... with a DLL or exe which acts as a COM server once it is called properly. ... This DLL or exe is installed on your machine (unless you are using DCOM, ...
    (microsoft.public.win32.programmer.directx.managed)

Loading