[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


cannot update dll file in second time

Posted on 2002-07-10
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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)


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.


Author Comment

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

Accepted Solution

Guy Hengel [angelIII / a3] earned 150 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:

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

656 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