DLL "Permission Denied Error"


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: DLL "Permission Denied Error"

  1. #1
    kishore Guest

    DLL "Permission Denied Error"

    Hi..
    I have created a Activex DLL in Visual Basic.
    When i create it for first time i am able to use it in ASP without
    problem

    After i add new method or delete a method or changing any code it
    is giving problems.

    ------------------------------------
    Main Doubt::
    When i try to Make DLL for second time it is giving an
    error message stating "Permission Denied"

    I tried to solve it in the following ways:

    1) Unregistereing the DLL
    After Unregistering DLL also i
    am not able to delete that first DLL.

    2) STOPping IIS service.
    3) Logoff and Login again not solve
    my problem


    If I reboot the system i am able to delete the existing
    DLL or overwriting DLL.

    Is there any Good way to solve this problem instead of Rebooting
    system every time you made changes to the DLL.
    ------------------------------------------
    Can You suggest me how to follow the Verion Compatiblity and Project
    Compatibilty and Class ID.


    waiting for your reply...
    Thank you very much in advance,
    Krishna Kishroe









  2. #2
    Harish Kumar Guest

    Re: DLL "Permission Denied Error"


    Krishna,

    This is in response to your first question -

    One solution for this is stopping the re-starting the MTS (if you had registered).
    This would clear all the instances of the DLL that remains open. You can
    stop and restart MTS using the following -

    net stop iisadmin /y
    mtxstop
    net start w3svc

    However please note that the foll. services will also be stopped -

    WWW Publishing Service
    SMTP
    FTP
    Site Server ILS Service
    IIS Admin Service

    You need to note down these services and re-start explicitly.

    If you don't want to stop & start the service, you can rewrite the DLL in
    such a way so that it can run in its own separate memory space. Using the
    IIS MMC -
    1. right click the virtual directory that contains yr application
    2. select properties
    3. In the application settings, enter the name for the application
    4. check the box to run in a separate memory space. In IIS5, if you set the
    application protection to high, the application will run in a process isolated
    from other ASP applications and web server.

    Once the application is running, by bringing up the properties page again,
    you can remove the application. You can re-write the DLL and you can create
    the application again. However note that you need to re-register the DLL
    explicity by using regsvr32.

    Coming to your second question, may be you can refer to this article -
    http://support.microsoft.com/support.../Q281/6/30.ASP

    HTH,
    Harish Kumar



    "kishore" <ykrishna_kishore@yahoo.com> wrote:
    >Hi..
    > I have created a Activex DLL in Visual Basic.
    > When i create it for first time i am able to use it in ASP without
    >problem
    >
    > After i add new method or delete a method or changing any code

    it
    >is giving problems.
    >
    >------------------------------------
    > Main Doubt::
    > When i try to Make DLL for second time it is giving

    an
    >error message stating "Permission Denied"
    >
    > I tried to solve it in the following ways:
    >
    > 1) Unregistereing the DLL
    > After Unregistering DLL also

    i
    >am not able to delete that first DLL.
    >
    > 2) STOPping IIS service.
    > 3) Logoff and Login again not solve
    >my problem
    >
    >
    > If I reboot the system i am able to delete the existing
    >DLL or overwriting DLL.
    >
    > Is there any Good way to solve this problem instead of Rebooting
    >system every time you made changes to the DLL.
    >------------------------------------------
    > Can You suggest me how to follow the Verion Compatiblity and Project
    >Compatibilty and Class ID.
    >
    >
    >waiting for your reply...
    >Thank you very much in advance,
    >Krishna Kishroe
    >
    >
    >
    >
    >
    >
    >
    >



  3. #3
    Paul Clement Guest

    Re: DLL "Permission Denied Error"

    On Mon, 26 Nov 2001 18:11:04 +0530, "kishore" <ykrishna_kishore@yahoo.com> wrote:

    Hi..
    I have created a Activex DLL in Visual Basic.
    When i create it for first time i am able to use it in ASP without
    problem

    After i add new method or delete a method or changing any code it
    is giving problems.

    ------------------------------------
    Main Doubt::
    When i try to Make DLL for second time it is giving an
    error message stating "Permission Denied"

    I tried to solve it in the following ways:

    1) Unregistereing the DLL
    After Unregistering DLL also i
    am not able to delete that first DLL.

    2) STOPping IIS service.
    3) Logoff and Login again not solve
    my problem


    If I reboot the system i am able to delete the existing
    DLL or overwriting DLL.

    Is there any Good way to solve this problem instead of Rebooting
    system every time you made changes to the DLL.
    ------------------------------------------
    Can You suggest me how to follow the Verion Compatiblity and Project
    Compatibilty and Class ID.


    waiting for your reply...
    Thank you very much in advance,
    Krishna Kishroe

    See the following for Personal Web Server:

    http://support.microsoft.com/support.../Q200/2/60.ASP

    With IIS you can stop and start the IIS services:

    Run the Services Control Panel applet.
    Stop the IIS Admin Service (this will stop the WWWPS as well).
    Replace your DLL.
    Start the World Wide Web Publishing Service.


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

  4. #4
    srinu Guest

    Re: DLL "Permission Denied Error"


    Hi,

    The best way to modify the dll is to take the following steps.. it is always
    better and safe...
    1. stop the IIS
    2. shut down the application in com+/MTS and delete the components
    3. unregister the dll
    4. delete dll and related files....
    5. register the new dll
    6. deploy it on com+/MTS
    7. start the IIS

    this will make sure that u have registered the component sucessfully...
    Let me know if there is any better way .. i m following this method..

    regards,
    srinu...


    Paul Clement <UseAdddressAtEndofMessage@swspectrum.com> wrote:
    >On Mon, 26 Nov 2001 18:11:04 +0530, "kishore" <ykrishna_kishore@yahoo.com>

    wrote:
    >
    > Hi..
    > I have created a Activex DLL in Visual Basic.
    > When i create it for first time i am able to use it in ASP without
    > problem
    >
    > After i add new method or delete a method or changing any code

    it
    > is giving problems.
    >
    > ------------------------------------
    > Main Doubt::
    > When i try to Make DLL for second time it is giving

    an
    > error message stating "Permission Denied"
    >
    > I tried to solve it in the following ways:
    >
    > 1) Unregistereing the DLL
    > After Unregistering DLL also

    i
    > am not able to delete that first DLL.
    >
    > 2) STOPping IIS service.
    > 3) Logoff and Login again not

    solve
    > my problem
    >
    >
    > If I reboot the system i am able to delete the existing
    > DLL or overwriting DLL.
    >
    > Is there any Good way to solve this problem instead of Rebooting
    > system every time you made changes to the DLL.
    > ------------------------------------------
    > Can You suggest me how to follow the Verion Compatiblity and Project
    > Compatibilty and Class ID.
    >
    >
    > waiting for your reply...
    > Thank you very much in advance,
    > Krishna Kishroe
    >
    >See the following for Personal Web Server:
    >
    >http://support.microsoft.com/support.../Q200/2/60.ASP
    >
    >With IIS you can stop and start the IIS services:
    >
    >Run the Services Control Panel applet.
    >Stop the IIS Admin Service (this will stop the WWWPS as well).
    >Replace your DLL.
    >Start the World Wide Web Publishing Service.
    >
    >
    >Paul ~~~ pclement@ameritech.net
    >Microsoft MVP (Visual Basic)



  5. #5
    rakesh Guest

    Re: DLL "Permission Denied Error"


    You can check ,the checkbox for increment the version number while
    compling your dll. This will make sure every time new version is
    complied old version gets replaced.

    Best of luck

    RG

    Paul Clement <UseAdddressAtEndofMessage@swspectrum.com> wrote:
    >On Mon, 26 Nov 2001 18:11:04 +0530, "kishore" <ykrishna_kishore@yahoo.com>

    wrote:
    >
    > Hi..
    > I have created a Activex DLL in Visual Basic.
    > When i create it for first time i am able to use it in ASP without
    > problem
    >
    > After i add new method or delete a method or changing any code

    it
    > is giving problems.
    >
    > ------------------------------------
    > Main Doubt::
    > When i try to Make DLL for second time it is giving

    an
    > error message stating "Permission Denied"
    >
    > I tried to solve it in the following ways:
    >
    > 1) Unregistereing the DLL
    > After Unregistering DLL also

    i
    > am not able to delete that first DLL.
    >
    > 2) STOPping IIS service.
    > 3) Logoff and Login again not

    solve
    > my problem
    >
    >
    > If I reboot the system i am able to delete the existing
    > DLL or overwriting DLL.
    >
    > Is there any Good way to solve this problem instead of Rebooting
    > system every time you made changes to the DLL.
    > ------------------------------------------
    > Can You suggest me how to follow the Verion Compatiblity and Project
    > Compatibilty and Class ID.
    >
    >
    > waiting for your reply...
    > Thank you very much in advance,
    > Krishna Kishroe
    >
    >See the following for Personal Web Server:
    >
    >http://support.microsoft.com/support.../Q200/2/60.ASP
    >
    >With IIS you can stop and start the IIS services:
    >
    >Run the Services Control Panel applet.
    >Stop the IIS Admin Service (this will stop the WWWPS as well).
    >Replace your DLL.
    >Start the World Wide Web Publishing Service.
    >
    >
    >Paul ~~~ pclement@ameritech.net
    >Microsoft MVP (Visual Basic)



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center