Code Coverage by Clover.NET

ASP.NET Error -- Access is denied

View: New views
3 Messages — Rating Filter:   Alert me  

ASP.NET Error -- Access is denied

by Glenn E. Lanier, II :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've just started using NLog in my ASP.NET application with the current project and have run into an unusual problem (for me, anyway) the past few days. From time to time, I get the following error when attempting a debug session (actually, it has happened even when I am not debugging from VS, but with the debug build).
 
Any idea what is wrong and/or how to correct it? Usually, restarting IIS and rebuilding will fix it, but not always.

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: 'NLog'.

Source Error:

Line 196:				<add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197:				<add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198:				<add assembly="*"/>
Line 199:			</assemblies>
Line 200:		</compilation>

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

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

=== Pre-bind state information ===
LOG: DisplayName = NLog
 (Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/jsu_dl/VSDonation
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: NLog
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/vsdonation/4d85e152/e156a2c0/NLog.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/vsdonation/4d85e152/e156a2c0/NLog/NLog.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/jsu_dl/VSDonation/bin/NLog.DLL.
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: NLog, Version=0.9.5.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c


Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
 
Thanks.
 
--G

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Re: ASP.NET Error -- Access is denied

by Andrew.Stone.IS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Check that you don't have index server running,  It likes to grab hold of
your temp asp.net files.

;)
Stonie



                                                                           
             "Glenn E. Lanier,                                            
             II"                                                          
             <glenn_lanier@net                                          To
             zero.net>                 <nlog-list@...>  
             Sent by:                                                   cc
             nlog-list-bounces                                            
             @lists.sourceforg                                     Subject
             e.net                     [Nlog-list] ASP.NET Error -- Access
                                       is denied                          
                                                                           
             20/10/2006 07:22                                              
             AM                                                            
                                                                           
                                                                           
                                                                           




I've just started using NLog in my ASP.NET application with the current
project and have run into an unusual problem (for me, anyway) the past few
days. From time to time, I get the following error when attempting a debug
session (actually, it has happened even when I am not debugging from VS,
but with the debug build).

Any idea what is wrong and/or how to correct it? Usually, restarting IIS
and rebuilding will fix it, but not always.
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: 'NLog'.

Source Error:
                                                                           
 Line 196:                                              <add                
 assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral,  
 PublicKeyToken=b03f5f7f11d50a3a"/>                                        
 Line 197:                                              <add                
 assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral,          
 PublicKeyToken=b03f5f7f11d50a3a"/>                                        
 Line 198:                                              <add assembly="*"/>
 Line 199:                                  </assemblies>                  
 Line 200:                      </compilation>                              
                                                                           



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

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'NLog' could not be loaded.
                                                                           
 === Pre-bind state information ===                                        
 LOG: DisplayName = NLog                                                    
  (Partial)                                                                
 LOG: Appbase = file:///c:/inetpub/wwwroot/jsu_dl/VSDonation                
 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: NLog                                          
 LOG: Attempting download of new URL                                        
 file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET    
 Files/vsdonation/4d85e152/e156a2c0/NLog.DLL.                              
 LOG: Attempting download of new URL                                        
 file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET    
 Files/vsdonation/4d85e152/e156a2c0/NLog/NLog.DLL.                          
 LOG: Attempting download of new URL                                        
 file:///c:/inetpub/wwwroot/jsu_dl/VSDonation/bin/NLog.DLL.                
 LOG: Publisher policy file is not found.                                  
 LOG: No redirect found in host configuration file                          
 (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).              
 LOG: Using machine configuration file from                                
 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.        
 LOG: Post-policy reference: NLog, Version=0.9.5.0, Culture=neutral,        
 PublicKeyToken=5120e14c03d0593c                                            
                                                                           
                                                                           




Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

Thanks.

--G

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list



-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CAUTION: This message may contain privileged and confidential information
intended only for the use of the addressee named above.
If you are not the intended recipient of this message, you are hereby
notified that any use, dissemination,distribution, or reproduction of this
message is prohibited.
If you have received this message in error, please notify the local office
of Coca-Cola Amatil Limited immediately.
Any views expressed in this message are those of the individual sender and
may not necessarily reflect the views of Coca-Cola Amatil Limited.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Re: ASP.NET Error -- Access is denied

by Glenn E. Lanier, II :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: Andrew.Stone.IS@...
> [mailto:Andrew.Stone.IS@...]
> Sent: Thursday, October 19, 2006 6:37 PM

> Check that you don't have index server running,  It likes to
> grab hold of
> your temp asp.net files.

> Stonie

Thanks, that seems to be working so far.

--G

> Any idea what is wrong and/or how to correct it? Usually,
> restarting IIS

> 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: 'NLog'.
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list
LightInTheBox - Buy quality products at wholesale price