Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 8th, 2004, 02:03 AM
Authorized User
 
Join Date: May 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to saravananedu
Default Invalid ProgId ASP 0177 (0x800401F3)

Dears...
   I've used a dll (which is created in vb) in my asp application.
   the dllname is customerRegis and the class name is customer
   i registered that dll on the machine where the application is running using regsvr32 <pathname>
so i've used the statement in asp as
   set objcust=server.createobject("customerRegis.custome r")
   and Its Working!... but after... i do changes in my class module and make dll by overwritting the existing dll..and then unregister and register that dll.
 now I got an error as ASP 0177 (0x800401F3) Invalid ProgId

pls..guide me..




Yours,
Saran
__________________
Best Regards,
Saran.
 
Old June 8th, 2004, 02:12 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

While creating the component again, have u made any chenges to compatibility?

Om Prakash
 
Old June 8th, 2004, 02:42 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

It's quite possible that IIS is still using the old GUID to refer to the DLL. If you're recompiling without binary compatibility, your project gets a new GUID every time you recompile.
It looks like you need to restart IIS before you un and reregister the DLL.

To avoid all this hassle, host your DLL inside a COM+ package. That's quite easy to do, and will make a lot of things (including recompiling) a lot easier. Look here for more info:

http://authors.aspalliance.com/nothi...ngmn_96&aid=96

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 8th, 2004, 06:21 AM
Authorized User
 
Join Date: May 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to saravananedu
Default

hi...
thanks for ur reply.
actually i didn't set any compatablity option. ie. it's in no compatablity always.

Quote:
quote:Originally posted by om_prakash
 While creating the component again, have u made any chenges to compatibility?

Om Prakash
Yours,
Saran
 
Old June 8th, 2004, 07:24 AM
Authorized User
 
Join Date: May 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to saravananedu
Default

hi imar,
thanks for ur reply.
is there any other way apart from MTS/COM+ choice?
because i found little difficulty on COM+ package.
it's a simple object. so i don't want to go into com+.


Yours,
Saran
 
Old June 8th, 2004, 07:31 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think restarting IIS should release the lock on the DLL as well.

However, personally, I think that setting up a COM+ package once is much less work than restarting IIS once. Since you probably need to restart IIS many times, I suggest you take another look at COM+. Following the FAQ I pointed you to should take less than 10 minutes. After that, things are as easy as replacing the DLL and restarting the COM+ package.

Don't forget to set binary compatibility on your project.....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid class string ASP 0177 (0x800401F3) crmpicco Classic ASP Basics 12 June 16th, 2007 11:44 PM
Server object, ASP 0177 (0x800401F3) crmpicco Classic ASP Professional 2 May 1st, 2006 02:23 PM
Invalid class string - : 0x800401F3 not24 C# 2005 1 March 16th, 2006 04:53 PM
Error : Server Object, ASP 0177(0x800401F3) InsouciantCoquette Classic ASP Components 2 February 21st, 2006 09:26 PM
Invalid ProgID attribute kimmy VB Components 1 August 4th, 2004 10:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.