Complied DLL causes createobject to fail 
Author Message
 Complied DLL causes createobject to fail

All,

I have a DLL that initially I comiled and it ran fine on ISS5.0 through
Com+. Then I made minor modifications to a SQL statement that added one more
field to the result set. After recompiling the DLL and recreating the COm
application I can no longer create any of the objects in any of the classes
in the DLL. Now the kicker is when I run the DLL in the VB6.0 IDE and test
it in the immediate window the classes work fine using a NEW declaration but
fail with teh exact same message as my web app if I switch and use the
CreateObject method.

Has anyone seen any behavior like this. I have spent untold hours in
newgroups and in the MSDN and have found nothing even remotely similar to
this reaction.

This is the message I receive:
System Error &H80004005 (-2147467259). Unspecified error

Thanks much,
John



Fri, 15 Aug 2003 11:22:21 GMT  
 Complied DLL causes createobject to fail
Hi,
  Did you re-register the new updated DLL on the Web Server
using regsrv32.exe

If the interface has changed in anyway you need to re-register
the DLL.

Note:
(1) Stop IIS4.0 (You don't have to in IIS5.0)
(2) Copy in new DLL
(3) register DLL using regsvr32.exe myDLL.DLL
(4) Start IIS4.0 Service

Try the Server.CreateObject statement again.

There are more tips, code and answers for all
programming at http://www.FreeDeveloperTips.com

Tipster

Quote:
-----Original Message-----

All,

I have a DLL that initially I comiled and it ran fine on ISS5.0 through
Com+. Then I made minor modifications to a SQL statement that added one more
field to the result set. After recompiling the DLL and recreating the COm
application I can no longer create any of the objects in any of the classes
in the DLL. Now the kicker is when I run the DLL in the VB6.0 IDE and test
it in the immediate window the classes work fine using a NEW declaration but
fail with teh exact same message as my web app if I switch and use the
CreateObject method.

Has anyone seen any behavior like this. I have spent untold hours in
newgroups and in the MSDN and have found nothing even remotely similar to
this reaction.

This is the message I receive:
System Error &H80004005 (-2147467259). Unspecified error

Thanks much,
John

.



Mon, 18 Aug 2003 21:03:51 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. DLL recompile causes Client to fail

2. ado access problem in complied dll

3. eVB CreateObject Function Causes Memory Leak

4. CreateObject Sometimes silently fails

5. call to Server.CreateObject failed ? please help

6. CreateObject fails - sometimes

7. SMTP mail via ASP: CreateObject CDONTS fails

8. CreateObject in VisualStudio fails!

9. CreateObject("Excel.Application") Fails on NT

10. VB CreateObject example fails

11. CreateObject Fails

12. Server.CreateObject fails

 

 
Powered by phpBB® Forum Software