Invalid ProgID

Invalid ProgID

Post by Kris Eibe » Thu, 02 Oct 2003 00:33:56


Are you sure you've got the syntax correct? It's usually:
set oObj = server.createobject("component.class")



Hi,
I've created an ActiveX DLL in VB 6 that does nothing more
than create a connection string to a SQL2000 database and
return the string. When using it in VB6, I can access the
one method I need. However, when I attempt to instantiate
the object in ASP, I get the following error:
ASP 0177 : 800401f3
Invalid ProgID.

Obviously, it's failing to create the object at the line
where I attempt to instantiate:
set oConn=server.CreateObject("ConClass").

My question is why? After reviewing some of the threads
here, I've tried different approaches presented. I've
checked and re-checked the registry and it looks correct
and disappears from the registry when I unregister it. I'm
using Win2K Server running IIS 5.0. I have all of the
latest fixes (excpet SP4 - which the LAN guys haven't yet
authorized). I checked dcomcnfg, but it doesn't show up
there (neither by name nor ProgID).

Thus far I have tried:
Unregistering the object from it's wwwroot\FolderName
location and moving it to C:\WINNT\system and
reregistering it from there where the IUSR account should
have permission.
Changing the default login for the site from the IUSR
account to the Administrator account.
Changing the Website from ScriptsOnly to Scripts and
Executables.
Changing from a server.createobject to just a
createobject call (in wchich case the error changes
to "error '800a01ad' ActiveX component can't create
object: 'ConClass'").
Have written the code to a VBS - same results (minus
the ASP error code=0177, of course).
Changed from Scratching my head to vigorously banging
my head against the desk

I hope someone might have another approach (espcially
different from the last one) that I might try to resolve
this problem. Any insight would be greatly appreciated.

Thank you,

Craig
 
 
 

Invalid ProgID

Post by Crai » Thu, 02 Oct 2003 02:07:50

My first attempt was to use the component.class syntax and
it still gave me the Invalid ProgID error. I went to the
class syntax alone just to see if it made any difference
(since calling it by class alone worked in the VB IDE).



> Unregistering the object from it's wwwroot\FolderName >>location and moving it to C:\WINNT\system and >>reregistering it from there where the IUSR account should >>have permission. >> Changing the default login for the site from the IUSR> >account to the Administrator account.> > Changing the Website from ScriptsOnly to Scripts an>
>Executables>
> Changing from a server.createobject to just>a
>createobject call (in wchich case the error chang>s
>to "error '800a01ad' ActiveX component can't crea>e
>object: 'ConClass'">.
> Have written the code to a VBS - same results (mi>us
>the ASP error code=0177, of cours>).
> Changed from Scratching my head to vigorously ban>ing
>my head against the >es>
>
>I hope someone might have another approach (espci>lly
>different from the last one) that I might try to res>lve
>this problem. Any insight would be greatly apprecia>ed>
>
>Thank >ou>
>
>C>ai>
>> >.

 
 
 

Invalid ProgID

Post by Crai » Thu, 02 Oct 2003 06:19:25

i all,

Just wanted to let you know this appears to be a case of
PFM (pure flippin' magic). I found that the DLL
registered in the original location (under wwwroot) might
have still been in memory (even though it didn't show in a
search of the registry). It showed as an open share in
the Computer Management mmc. So, I guess it might have
been confusing the server when it was re-registered from
the c:\WINNT\system directory. Anyway, after throwing my
hands up in the air, I had one of the LAN guys re-boot the
server and -poof - the calls to the DLL started working
(using the component.class syntax, of course). Go figure.

Thanks!

Craig
and
usually:
more
the
instantiate
I'm
>>Executables>> >> Changing from a server.createobject to just>>
>>createobject call (in wchich case the error chang>>
>>to "error '800a01ad' ActiveX component can't crea>>
>>object: 'ConClass'">>
>> Have written the code to a VBS - same results (mi>>s
>>the ASP error code=0177, of cours>>.
>> Changed from Scratching my head to vigorously ban>>ng
>>my head against the >>sk>>>>
>>I hope someone might have another approach (espci>>ly
>>different from the last one) that I might try to res>>ve
>>this problem. Any insight would be greatly apprecia>>d.>>>>
>>Thank >>u,>>>>
>>C>>ig>>>>>>>> >>>.> >>> >.
 
 
 

Invalid ProgID

Post by Fric » Fri, 16 Jan 2004 06:55:09

I program projects in Visual Interdev 6, I start a new
project and works ok on muy localhost, but... when I
publish it on a web server it displays the next error:

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to
this message please visit the Microsoft Online Support
site located at:
http://www.yqcomputer.com/
/intranet/estadisticas/_ScriptLibrary/pm.asp, line 191

My email is XXXX@XXXXX.COM

I need help, please!

Thanks
 
 
 

Invalid ProgID

Post by Ray at <%s » Fri, 16 Jan 2004 07:02:48

What's on line 191? Probably a createObject of an object that doesn't exist
on your server. What's the object?

Ray at work
 
 
 

Invalid ProgID

Post by Atra » Mon, 19 Jan 2004 18:59:22

the most common reason I've seen for this recently is users trying to
access CDONTS.NewMail on XP or 2003 systems.

to the OP :

CDONTS id deprecated under these OSes - use CDO.Message instead - see
www.aspfaq.com

________________________________________
Atrax. MVP, IIS
http://www.yqcomputer.com/

newsflash : Atrax.Richedit 1.0 now released.
http://www.yqcomputer.com/

*** Sent via Developersdex http://www.yqcomputer.com/ ***
Don't just participate in USENET...get rewarded for it!