Results 1 to 9 of 9

Thread: COM component for ASP

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Posts
    24

    Question COM component for ASP

    Hi There,

    I developed a COM component for ASP that retrieve data for Oracle database. It works fine, however, every time I have to change it, recompile it. When I try to overlay the one old one, it give an error, even after I unregistered it. I have to reboot so it releases it. Then I can copy it over.

    Is it possible to overcome this.??

    Regards
    mch

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Don't reboot.... simply stop the Web Services. UnRegister the DLL, copy the DLL over the old one, and reregister it. Then re-start web services.
    It sucks, but it has to do with the way IIS pools threads and connections.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Posts
    24

    Thumbs up

    Thank you for your quick response, however I think I did try that.
    I am not sure if I did it in the same sequence, but I will give it a try. I'll let you know..

    You are right on the Money about Management.....

    Regards
    mch

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Posts
    24
    Well I did try one more time, but does not work, I still have to reboot.

    I was wondering if this has to do with the ObjectControl deactivate event ??

    Regards
    mch

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    I don't know..... In my past experice, I found that all I needed to do was stop all web services (web publishing, IIS, everything) then unregister the dll, copy, register, then restart everything...... sound like in your case though, reboot is the only option..
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Posts
    24

    Question

    Can you register the DLL in a server other than where the IIS is running? Is that possible at all ?? I wonder how the DLL can be found??

    Would appreciate your input so very much.

    Regards
    mch

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Originally posted by Mike Chaple
    Can you register the DLL in a server other than where the IIS is running? Is that possible at all ?? I wonder how the DLL can be found??

    Would appreciate your input so very much.

    Regards
    Yes, you can do that. I have never personally done, but I know it can. There is a second parameter of CreateObject that you can set to tell it what server to get the object from. But.... I think you'll still have the same problem as IIS will continue to hold the reference.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Posts
    24

    Smile

    Well, I probably misunderstood you, when you say stop the web service, I was stooping IIS form the Admin Console. That does not work for me. Today I decided to stop the IIS Admin Service from SERVICES at the Control Panel. That works for me, not an elegant solution but better than reboot.

    I am sure that you relay meant to stop the Service the way I did today.

    I want to thank you for all your help.

    The direction I am heading is to have a COM component server, so I can unload traffic from the IIS and have a better control over COM Development/Deployment. I am trying to find the Server,createobject parameter that allow me to point to a COM Server in the same Network, but no luck yet.
    mch

  9. #9
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Originally posted by Mike Chaple
    Well, I probably misunderstood you, when you say stop the web service, I was stooping IIS form the Admin Console. That does not work for me. Today I decided to stop the IIS Admin Service from SERVICES at the Control Panel. That works for me, not an elegant solution but better than reboot.

    I am sure that you relay meant to stop the Service the way I did today.

    I want to thank you for all your help.

    The direction I am heading is to have a COM component server, so I can unload traffic from the IIS and have a better control over COM Development/Deployment. I am trying to find the Server,createobject parameter that allow me to point to a COM Server in the same Network, but no luck yet.
    Sorry I wasn't clear either. Yeah, I did mean stopping IIS from the SERVICS screen.
    The server parameter works like this:
    VB Code:
    1. Set myCOMObj = Server.CreateObject("MyProgID","SomeOtherServerHere")
    -- At least that's how I've been lead to believe it works....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width