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 143

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 143

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)

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

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

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Recommendation vb6 to or others 14 178
Object Oriented Programming, C#, referencing, scoping. 13 69
BATCH to EXE Converter 2 39
troubleshoot a python script 8 26
A short article about problems I had with the new location API and permissions in Marshmallow
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

830 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