Deal of the Month: 50% Discount on Windows 7 (Limited Amazon.com offer) Main Page | Report this Page
.NET DotNet Forum Index  »  ASP.NET Forum  »  dll access denied
Page 1 of 1    

dll access denied

Author Message
byrd48
Posted: Wed Nov 09, 2005 9:44 pm
Guest
I have a dll I use in a VS project and it seems at random, when I
debug, I will get an application config error (posted below) stating
that access is denied. I can debug multiple times and then out of the
blue, start getting this error. Is there a way to see if another
process has it locked?
Thanks,

Jon

Server Error in '/jpg' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'qqMail'.

Source Error:


Line 256: <add assembly="System.EnterpriseServices,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 257: <add assembly="System.Web.Mobile,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 258: <add assembly="*"/>
Line 259: </assemblies>
Line 260:


Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config
Line: 258

Assembly Load Trace: The following information can be helpful to
determine why the assembly 'qqMail' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = qqMail
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/jpg
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: qqMail
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/jpg/4e3a0e9d/931153c7/qqMail.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/jpg/4e3a0e9d/931153c7/qqMail/qqMail.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/jpg/bin/qqMail.DLL.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: qqMail, Version=4.0.2016.38570,
Culture=neutral, PublicKeyToken=null




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET Version:1.1.4322.573
 
byrd48
Posted: Sat Nov 12, 2005 7:50 am
Guest
I'm getting frustrated with this. I've debugged the project probably
20 times this morning, and on the 21st attempt, I'm getting access
denied errors for the reference dll in the project.
Is asp.net not releasing it after debugging? Any idea how I can find
out what process has it locked and stop it?
Thanks in advance.

Jon
 
Greg Gilman
Posted: Sun Nov 13, 2005 3:51 pm
Guest
I've had the same thing, works for a while then stops. This happens to me
when I create a reference to a dll in the \bin folder of my project.

If you're referencing directly in \bin, try this:
1. move it to the root application folder.
2. include it in the project (so is shows up in solution explorer).
3. in the properties of the file change the build action so it will be
copied to the \bin folder automatically.


On Sat, 12 Nov 2005 04:50:35 -0800, byrd48 <byrd.48@rocketmail.com> wrote:

Quote:
I'm getting frustrated with this. I've debugged the project probably
20 times this morning, and on the 21st attempt, I'm getting access
denied errors for the reference dll in the project.
Is asp.net not releasing it after debugging? Any idea how I can find
out what process has it locked and stop it?
Thanks in advance.

Jon




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Sun Nov 08, 2009 9:39 am