sharing violation file may be in use

Discussion in 'ASP General' started by Carlos Azevedo, Oct 1, 2004.

  1. After a ASP page call a DLL I cant't delete the DLL anymore.
    "There has been a sharing violation file may be in use"


    please help
    Carlos Azevedo, Oct 1, 2004
    #1
    1. Advertising

  2. Carlos Azevedo

    Steven Burn Guest

    Are you destroying the object after you have created it?

    e.g.

    Set objSomething = Server.CreateObject("Whatever")

    '// rest of your script

    Set objSomething = Nothing

    --

    Regards

    Steven Burn
    Ur I.T. Mate Group
    www.it-mate.co.uk

    Keeping it FREE!


    "Carlos Azevedo" <Carlos > wrote in message
    news:...
    > After a ASP page call a DLL I cant't delete the DLL anymore.
    > "There has been a sharing violation file may be in use"
    >
    >
    > please help
    >
    Steven Burn, Oct 1, 2004
    #2
    1. Advertising

  3. If you are not using COM+, the DLL is loaded into IIS process space. If you
    have registered the DLL with COM+, the DLL is loaded into a COM+ process
    until it releases it (3 mins default).

    So, depending on how you have registered the DLL, you can either

    1. Stop IIS process, which releases the DLL. (use iisreset.exe)
    2. Shutdown the COM+ package

    After this, you should be able to delete the DLL. But before you do,
    unregister it to avoid missing references.

    --
    Manohar Kamath
    Editor, .netWire
    www.dotnetwire.com


    "Carlos Azevedo" <Carlos > wrote in message
    news:...
    > After a ASP page call a DLL I cant't delete the DLL anymore.
    > "There has been a sharing violation file may be in use"
    >
    >
    > please help
    >
    Manohar Kamath, Oct 1, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sam Iam
    Replies:
    0
    Views:
    447
    Sam Iam
    Jan 31, 2004
  2. James
    Replies:
    2
    Views:
    2,405
    Patrice
    May 2, 2006
  3. Rahmi Acar
    Replies:
    5
    Views:
    427
    Karl Heinz Buchegger
    Jul 28, 2003
  4. Aahz
    Replies:
    0
    Views:
    388
  5. kingchuffalo
    Replies:
    0
    Views:
    866
    kingchuffalo
    Sep 21, 2008
Loading...

Share This Page