Solved

cannot update dll file in second time

Posted on 2002-07-10
8
277 Views
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
0
Comment
Question by:MaxTo
  • 4
  • 3
8 Comments
 
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).

CHeers
0
 

Author Comment

by:MaxTo
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?
0
 
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)

CHeers
0
 

Author Comment

by:MaxTo
ID: 7142912
okay thanks, i will attact all my source code to you.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 142

Accepted Solution

by:
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:
http://support.microsoft.com/directory/article.asp?ID=KB;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!

CHeers

0
 

Author Comment

by:MaxTo
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.
0
 

Author Comment

by:MaxTo
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.
0
 
LVL 22

Expert Comment

by:CJ_S
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.

CJ
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about a problem I had getting the GPS LocationListener working.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now