dll access denied

B

byrd48

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
 
B

byrd48

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
 
G

Greg Gilman

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top