Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2005, 11:01 AM
Registered User
 
Join Date: Mar 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to haji_mb Send a message via Yahoo to haji_mb
Default Permission Denied while creating dll

Hi, I have created a dll in VB6 and am using it in the ASP page,
If I change the code and make the dll again, the dll is replaced but If I run the ASP page in the browser and then try to make the dll there is an error raised saying
"Permission Denied :[filename]" and when i try to delete the dll it says
"Cannot delete [filename]: There has been a sharing violation
The source or destination file may be in use"
Please tell me what to do, why is this happening?
Please help.


With regards
Haji Muffadal
 
Old March 23rd, 2005, 01:49 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

When you run the ASP, the .dll is loaded into memory, and you cannot change it till that is no longer true.

If you stop the internet server you should be able to overwrite the .dll

If you run the application from within the IDE you won't have this problem.
You can start the component without necessarily running the browser by setting Project|<Prj-name>Properties|Debugging: Wait for component to be created.
This way the dll will start under the auspices of the IDE, but an independent browser can runn it. You can put break points in the IDE at any time, and the next call to that location with the BP will stop the IDE.
When you stop the IDE, the component can again be overwritten.





Similar Threads
Thread Thread Starter Forum Replies Last Post
(0x800A0046) Permission denied,not IIS permission! David Hay Classic ASP Basics 3 April 30th, 2006 10:47 PM
Permission denied tksarun Classic ASP Components 0 March 11th, 2005 03:01 AM
Permission Denied hamidmq Javascript How-To 2 March 10th, 2005 09:41 AM
Permission denied in acessing dll files sobhamuktha VB Components 6 February 4th, 2005 08:17 AM
permission denied creating directory chexm8 PHP How-To 1 June 9th, 2003 04:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.