Solved

Component re-Building Problem

Posted on 2002-06-24
6
164 Views
Last Modified: 2010-05-02
When I create an ActiveX DLL Project in VB and create a component and then Make it xyz.dll from File Menu, it creates a dll. The problem is that when I change something in project and Re-compile it with same name, a dialog box appear "Permission denied xyz.dll".
what is solution.
I am using VB6 Enterprise Ed.
Windows 2000 prof.
0
Comment
Question by:AhmadKhan
6 Comments
 
LVL 1

Accepted Solution

by:
fparie earned 50 total points
ID: 7106607
Something is locking your DLL. It could be:

- the web server that has used you DLL (this will keep it locked until you restart the web server service (IISAdmin) ).
- another instance of VB that has your DLL referenced (close it and you're done)

Good luck
francois
0
 
LVL 1

Expert Comment

by:Madmarlin
ID: 7106705
Rather than compile your DLL.
Why done you run it in debug mode through the VB enviroment untill testing has proven to have passed then simply compile then...

Remember to set the Dll running forst and I'd suggest late binding while debugging to make life easier..

Good luck Madmarlin
0
 
LVL 5

Expert Comment

by:rpai
ID: 7107812
There is some process or application that is still holding reference to your object when you try to re-compile it with the changes and hence the error.
- Make sure all you close all the applications that might be referencing you dll.
- Also, if this object is installed in MTS on your machine. Make sure you run MtxStop, before re-compiling.
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 5

Expert Comment

by:bob_online
ID: 7107929
I encounter this sometimes when the only thing referencing it is VB itself.  If this is the case, close the project, close VB, restart VB, reopen the project and you should be good to go.
0
 

Author Comment

by:AhmadKhan
ID: 7109806
Thanks for all
My Problem is solved to stop the IISADMIN
0
 

Author Comment

by:AhmadKhan
ID: 7109810
I've find the solution from MSDN
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

832 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