Solved

Component re-Building Problem

Posted on 2002-06-24
6
153 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

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