cannot update dll file in second time

Posted on 2002-07-10
Last Modified: 2010-04-17
I'm using VB6 (ActiveX DLL) to create the .cls file then make the dll file from there.

After the file was made. I used asp with vbscript to call it. Yes i can call out the data from there.

Now the question is the first time i can make the dll but when i found an error or i change the .cls file in VB i want to make the new version of the dll file, it will prompt out "premission denied". Why i cannot make the second dll file with same name the 1st dll?

my OS is window 2000
Question by:MaxTo
  • 4
  • 3
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7142773
This is because the DLL is in use, eventually by VB itself. Stop all the applications that use this DLL, restart VB (or uncheck the references to that DLL, close the project references, reopen to check again).


Author Comment

ID: 7142860
I had follow as what you said Stop all the applications that use this DLL, restart VB (or uncheck the references to that DLL, close the project references, reopen to check again). But it still appear the same problem, the dll file is still in used.

The dll file only can make the changing after i restart my PC.

Did i need to do some changing in the window registry? If so how to do that?
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7142879
If the DLL is still in use after you stopped all the applications, you have some components in the DLL that do not get released properly, and which may have some circular references that keeps them alive.
You might send me your source code of the dll so i could check... (see my profile for the email address)

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.


Author Comment

ID: 7142912
okay thanks, i will attact all my source code to you.
LVL 142

Accepted Solution

Guy Hengel [angelIII / a3] earned 50 total points
ID: 7143013
I see that you use the DLL by a web page, in which case you need to restart the IIS server:;EN-US;Q200998&

The article refers to debugging the DLL, but the main point is that you need to restart IIS as it doesn't free the DLL. This is terribly problematic in case of a production server, so the relevant DLL's need to be tested!



Author Comment

ID: 7145128
i follow as what you said and the website. But why i cannot find the "set as start page" in my Visual InterDev,
all the debug tools is disable for me to used.

I close the IIS web service also got cannot re-make the dll file again.

Author Comment

ID: 7145140
okay now i foound the solution is what u teach close the IIS service then recompile the dll again, it was work.
but if you have more nice solution please teach me

here the point for u.
LVL 22

Expert Comment

ID: 7154159
For debugging ActiveX DLL's you'd better not use InterDev.

However with the correct settings within VB6 and IIS you don't have to restart the IIS Service.

Go to the IIS's website properties and make sure that anonymous log in is desiabled. Now within VB6 you go to the projects properties and in the debug tab you place the url to the site which makes use of the ActiveX DLL. When the object is instantiated on the server it will use the VB6 running version.

that way you do not have to restart the w3svc webservice.


Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 108
wordmultiple challenge 12 136
detecting  the added row index in a datagridview 3 71
How to Convert a Quote to an Order in SalesForce 2 45
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question