473,770 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Intermittent MissingFieldExc eption


Hi,

I have a problem where my ASP.NET application occasionally generates a
MissingFieldExc eption exception. This unexpectedly happened on my development
box, and so I was able to extract some information from the debugger:

The field that is "missing" is called 'logger'. Here's it's description
taken from ildasm.exe:

..field public static class [log4net]log4net.ILog logger

This field is in a class called 'Utility', which is in an assembly called
'Infrastructure '. This Infrastructure' s assembly manifest shows that the
log4net assembly is referenced thus:

..assembly extern log4net
{
.publickeytoken = (07 01 22 69 AF 86 3A C7 )
.ver 1:2:9:0
}

The log4net assembly is a strongly named assembly, but it isn't in the GAC.
I have a suspicion that the fact that the assembly is strongly named may be
relevant, because the problem never occurs with our other assemblies.

System.AppDomai n.CurrentDomain .GetAssemblies( ) showed that there were 40
assemblies loaded. The MissingFieldExc eption exception was being generated
because the Infrastructure assembly wasn't loading properly. When I called
GetTypes() on the Infrastructure assembly, a ReflectionTypeL oadException
exception was thrown saying that "One or more of the types in the assembly
unable to load". Here are the exception's details (taken from the Visual
Studio watch window):

- System.AppDomai n.CurrentDomain .GetAssemblies( )[14].GetTypes() {"One or
more of the types in the assembly unable to
load."} System.Reflecti on.ReflectionTy peLoadException
+ System.SystemEx ception {"One or more of the types in the assembly unable
to load."} System.SystemEx ception
+ _classes {Length=72} System.Type[]
- _exceptions {Length=4} System.Exceptio n[]
- [0] {"log4net"} System.IO.FileL oadException
- System.IO.IOExc eption {System.IO.File LoadException} System.IO.IOExc eption
- System.SystemEx ception {"Access is denied:
'log4net'."} System.SystemEx ception
- System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
System.Object {System.IO.File LoadException} System.Object
_className null string
_COMPlusExcepti onCode -532459699 int
_exceptionMetho d <undefined value> System.Reflecti on.MethodBase
_exceptionMetho dString null string
_helpURL null string
_HResult -2147024891 int
_innerException { } System.Exceptio n
_message "Access is denied: 'log4net'." string
_remoteStackInd ex 0 int
_remoteStackTra ceString null string
_source null string
_stackTrace <undefined value> System.Object
_stackTraceStri ng null string
_xcode -532459699 int
_xptrs 0 int
HelpLink null string
HResult -2147024891 int
InnerException { } System.Exceptio n
Message "Access is denied: 'log4net'." string
Source null string
StackTrace null string
TargetSite <undefined value> System.Reflecti on.MethodBase
_fileName "log4net" string
_fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
log4net, Version=1.2.9.0 , Culture=neutral , PublicKeyToken= 07012269af863ac 7\n
(Fully-specified)\r\nL OG: Appbase =
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting download
of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
Attempting download of new URL
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL.\r\ n" string
FileName "log4net" string
FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
log4net, Version=1.2.9.0 , Culture=neutral , PublicKeyToken= 07012269af863ac 7\n
(Fully-specified)\r\nL OG: Appbase =
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting download
of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
Attempting download of new URL
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL.\r\ n" string
Message "Access is denied: 'log4net'." string
- [1] {"log4net"} System.IO.FileL oadException
- System.IO.IOExc eption {System.IO.File LoadException} System.IO.IOExc eption
- System.SystemEx ception {"Access is denied:
'log4net'."} System.SystemEx ception
- System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
System.Object {System.IO.File LoadException} System.Object
_className null string
_COMPlusExcepti onCode -532459699 int
_exceptionMetho d <undefined value> System.Reflecti on.MethodBase
_exceptionMetho dString null string
_helpURL null string
_HResult -2147024891 int
_innerException { } System.Exceptio n
_message "Access is denied: 'log4net'." string
_remoteStackInd ex 0 int
_remoteStackTra ceString null string
_source null string
_stackTrace <undefined value> System.Object
_stackTraceStri ng null string
_xcode -532459699 int
_xptrs 0 int
HelpLink null string
HResult -2147024891 int
InnerException { } System.Exceptio n
Message "Access is denied: 'log4net'." string
Source null string
StackTrace null string
TargetSite <undefined value> System.Reflecti on.MethodBase
_fileName "log4net" string
_fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
log4net, Version=1.2.9.0 , Culture=neutral , PublicKeyToken= 07012269af863ac 7\n
(Fully-specified)\r\nL OG: Appbase =
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting download
of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
Attempting download of new URL
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL.\r\ n" string
FileName "log4net" string
FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
log4net, Version=1.2.9.0 , Culture=neutral , PublicKeyToken= 07012269af863ac 7\n
(Fully-specified)\r\nL OG: Appbase =
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting download
of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
Attempting download of new URL
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL.\r\ n" string
Message "Access is denied: 'log4net'." string
- [2] {"log4net"} System.IO.FileL oadException
- System.IO.IOExc eption {System.IO.File LoadException} System.IO.IOExc eption
- System.SystemEx ception {"Access is denied:
'log4net'."} System.SystemEx ception
- System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
System.Object {System.IO.File LoadException} System.Object
_className null string
_COMPlusExcepti onCode -532459699 int
_exceptionMetho d <undefined value> System.Reflecti on.MethodBase
_exceptionMetho dString null string
_helpURL null string
_HResult -2147024891 int
_innerException { } System.Exceptio n
_message "Access is denied: 'log4net'." string
_remoteStackInd ex 0 int
_remoteStackTra ceString null string
_source null string
_stackTrace <undefined value> System.Object
_stackTraceStri ng null string
_xcode -532459699 int
_xptrs 0 int
HelpLink null string
HResult -2147024891 int
InnerException { } System.Exceptio n
Message "Access is denied: 'log4net'." string
Source null string
StackTrace null string
TargetSite <undefined value> System.Reflecti on.MethodBase
_fileName "log4net" string
_fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
log4net, Version=1.2.9.0 , Culture=neutral , PublicKeyToken= 07012269af863ac 7\n
(Fully-specified)\r\nL OG: Appbase =
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting download
of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
Attempting download of new URL
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL.\r\ n" string
FileName "log4net" string
FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
log4net, Version=1.2.9.0 , Culture=neutral , PublicKeyToken= 07012269af863ac 7\n
(Fully-specified)\r\nL OG: Appbase =
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting download
of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
Attempting download of new URL
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL.\r\ n" string
Message "Access is denied: 'log4net'." string
- [3] {"log4net"} System.IO.FileL oadException
- System.IO.IOExc eption {System.IO.File LoadException} System.IO.IOExc eption
- System.SystemEx ception {"Access is denied:
'log4net'."} System.SystemEx ception
- System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
System.Object {System.IO.File LoadException} System.Object
_className null string
_COMPlusExcepti onCode -532459699 int
_exceptionMetho d <undefined value> System.Reflecti on.MethodBase
_exceptionMetho dString null string
_helpURL null string
_HResult -2147024891 int
_innerException { } System.Exceptio n
_message "Access is denied: 'log4net'." string
_remoteStackInd ex 0 int
_remoteStackTra ceString null string
_source null string
_stackTrace <undefined value> System.Object
_stackTraceStri ng null string
_xcode -532459699 int
_xptrs 0 int
HelpLink null string
HResult -2147024891 int
InnerException { } System.Exceptio n
Message "Access is denied: 'log4net'." string
Source null string
StackTrace null string
TargetSite <undefined value> System.Reflecti on.MethodBase
_fileName "log4net" string
_fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
log4net, Version=1.2.9.0 , Culture=neutral , PublicKeyToken= 07012269af863ac 7\n
(Fully-specified)\r\nL OG: Appbase =
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting download
of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
Attempting download of new URL
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL.\r\ n" string
FileName "log4net" string
FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
log4net, Version=1.2.9.0 , Culture=neutral , PublicKeyToken= 07012269af863ac 7\n
(Fully-specified)\r\nL OG: Appbase =
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting download
of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
Attempting download of new URL
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL.\r\ n" string
Message "Access is denied: 'log4net'." string
+ LoaderException s {Length=4} System.Exceptio n[]
+ Types {Length=72} System.Type[]
As you can see, .NET is failing to load the log4net assembly because of an
"acccess is denied" error. But the file
C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL did
exist, and didn't have any strange security permission settings. In fact, the
assembly had been loaded - it was in the list of assemblies in the current
domain:

- [17] {System.Reflect ion.Assembly} System.Reflecti on.Assembly
System.Object {System.Reflect ion.Assembly} System.Object
_DontTouchThis 206431072 int
- Cache {System.Reflect ion.Cache.Inter nalCache} System.Reflecti on.Cache.Intern alCache
System.Object {System.Reflect ion.Cache.Inter nalCache} System.Object
Item <cannot view indexed property> System.Object
- m_cache {Length=2} System.Reflecti on.Cache.Intern alCacheItem[]
- [0] {System.Reflect ion.Cache.Inter nalCacheItem} System.Reflecti on.Cache.Intern alCacheItem
- System.ValueTyp e {System.Reflect ion.Cache.Inter nalCacheItem} System.ValueTyp e
System.Object {System.Reflect ion.Cache.Inter nalCacheItem} System.Object
Key AssemblyName System.Reflecti on.Cache.CacheO bjType
- Value "log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7" System.Object
string "log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7" string
- [1] {System.Reflect ion.Cache.Inter nalCacheItem} System.Reflecti on.Cache.Intern alCacheItem
- System.ValueTyp e {System.Reflect ion.Cache.Inter nalCacheItem} System.ValueTyp e
System.Object {System.Reflect ion.Cache.Inter nalCacheItem} System.Object
Key EmptyElement System.Reflecti on.Cache.CacheO bjType
Value <undefined value> System.Object
m_numItems 1 int
MinCacheSize 2 int
CodeBase "file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL" string
EntryPoint <undefined value> System.Reflecti on.MethodInfo
EscapedCodeBase "file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL" string
+ Evidence {System.Securit y.Policy.Eviden ce} System.Security .Policy.Evidenc e
FullName "log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7" string
GlobalAssemblyC ache false bool
ImageRuntimeVer sion "v1.1.4322" string
Location @"c:\windows\mi crosoft.net\fra mework\v1.1.432 2\temporary asp.net
files\applysour ce\f27b5c84\cde ddc66\assembly\ dl2\c30d5406\00 341f6d_f898c501 \log4net.dll" string
m_assemblyData <undefined value> System.Reflecti on.Emit.Assembl yBuilderData
- m_cachedData {System.Reflect ion.Cache.Inter nalCache} System.Reflecti on.Cache.Intern alCache
System.Object {System.Reflect ion.Cache.Inter nalCache} System.Object
Item <cannot view indexed property> System.Object
- m_cache {Length=2} System.Reflecti on.Cache.Intern alCacheItem[]
- [0] {System.Reflect ion.Cache.Inter nalCacheItem} System.Reflecti on.Cache.Intern alCacheItem
- System.ValueTyp e {System.Reflect ion.Cache.Inter nalCacheItem} System.ValueTyp e
System.Object {System.Reflect ion.Cache.Inter nalCacheItem} System.Object
Key AssemblyName System.Reflecti on.Cache.CacheO bjType
- Value "log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7" System.Object
string "log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7" string
- [1] {System.Reflect ion.Cache.Inter nalCacheItem} System.Reflecti on.Cache.Intern alCacheItem
- System.ValueTyp e {System.Reflect ion.Cache.Inter nalCacheItem} System.ValueTyp e
System.Object {System.Reflect ion.Cache.Inter nalCacheItem} System.Object
Key EmptyElement System.Reflecti on.Cache.CacheO bjType
Value <undefined value> System.Object
m_numItems 1 int
MinCacheSize 2 int
ModuleResolve <undefined value> System.Reflecti on.ModuleResolv eEventHandler
s_localFilePref ix "file:" string
The MissingFieldExc eption happens on a machine that doesn't have Visual
Studio installed, so the problem can't be due to the build process locking
the DLL. In fact, as the problem is intermittent and won't go away until we
force ASP.NET to reload the application (by re-saving the web.config file), I
don't think it's an external system locking the file at all. One minute
ASP.NET can load the assembly fine, the next it just seems to get confused.

Looking through past posts, it appears that a few other people are also
seeing this problem, but no-one seems to have identified the cause yet. I'm
hoping that the "access is denied" exception shown above will help someone
work out what's going on.

- Lee

Nov 19 '05 #1
3 2041
HI Lee,

Welcome to ASPNET newsgroup.
Regarding on the problem you mentioned, I think the problem is just due to
the Log4net 's assembly is a strong-named assembly and be put in the
asp.net application's private bin path. Currently the ASP.NET application
host dosn't support strong-named assembly in private bin dir, we should
always put strong-named ones into GAC. At runtime, asp.net will shadow copy
the private assemblies in the private bin dir , however for strong-named
ones in it, they may not be shadow copied so that after the appdomain(of
the application) restart, we'll encountering loading type/assembly failed
for those assemblies. Also, from the fusion log you attached, we can find
the the runtime locate the asp.net temporary dir didn't find the copied one
and locate the assembly in private bin dir but failed to load it.

Please try put all the strong-named assemblies in your app's private bin
dir and register them in GAC to see whether this do the work. In addition
,here 're some kb articles discussing on some other existing issue when
deploying strong-named assembly in asp.net app's private bin path:

http://support.microsoft.com/?id=813833

http://support.microsoft.com/?id=813830

Hope also helps. Thanks,
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: Intermittent MissingFieldExc eption
| thread-index: AcWzwCzOmnwAiKd QTaW8YeD0n1xIAw ==
| X-WBNR-Posting-Host: 194.200.242.250
| From: "=?Utf-8?B?TGVlIENoYXB tYW4=?=" <Le********@new sgroup.nospam>
| Subject: Intermittent MissingFieldExc eption
| Date: Wed, 7 Sep 2005 08:24:02 -0700
| Lines: 350
| Message-ID: <86************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1229 09
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| Hi,
|
| I have a problem where my ASP.NET application occasionally generates a
| MissingFieldExc eption exception. This unexpectedly happened on my
development
| box, and so I was able to extract some information from the debugger:
|
| The field that is "missing" is called 'logger'. Here's it's description
| taken from ildasm.exe:
|
| .field public static class [log4net]log4net.ILog logger
|
| This field is in a class called 'Utility', which is in an assembly called
| 'Infrastructure '. This Infrastructure' s assembly manifest shows that the
| log4net assembly is referenced thus:
|
| .assembly extern log4net
| {
| .publickeytoken = (07 01 22 69 AF 86 3A C7 )
| .ver 1:2:9:0
| }
|
| The log4net assembly is a strongly named assembly, but it isn't in the
GAC.
| I have a suspicion that the fact that the assembly is strongly named may
be
| relevant, because the problem never occurs with our other assemblies.
|
| System.AppDomai n.CurrentDomain .GetAssemblies( ) showed that there were 40
| assemblies loaded. The MissingFieldExc eption exception was being
generated
| because the Infrastructure assembly wasn't loading properly. When I
called
| GetTypes() on the Infrastructure assembly, a ReflectionTypeL oadException
| exception was thrown saying that "One or more of the types in the
assembly
| unable to load". Here are the exception's details (taken from the Visual
| Studio watch window):
|
| - System.AppDomai n.CurrentDomain .GetAssemblies( )[14].GetTypes() {"One or
| more of the types in the assembly unable to
| load."} System.Reflecti on.ReflectionTy peLoadException
| + System.SystemEx ception {"One or more of the types in the assembly
unable
| to load."} System.SystemEx ception
| + _classes {Length=72} System.Type[]
| - _exceptions {Length=4} System.Exceptio n[]
| - [0] {"log4net"} System.IO.FileL oadException
| - System.IO.IOExc eption {System.IO.File LoadException}
System.IO.IOExc eption
| - System.SystemEx ception {"Access is denied:
| 'log4net'."} System.SystemEx ception
| - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| System.Object {System.IO.File LoadException} System.Object
| _className null string
| _COMPlusExcepti onCode -532459699 int
| _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| _exceptionMetho dString null string
| _helpURL null string
| _HResult -2147024891 int
| _innerException { } System.Exceptio n
| _message "Access is denied: 'log4net'." string
| _remoteStackInd ex 0 int
| _remoteStackTra ceString null string
| _source null string
| _stackTrace <undefined value> System.Object
| _stackTraceStri ng null string
| _xcode -532459699 int
| _xptrs 0 int
| HelpLink null string
| HResult -2147024891 int
| InnerException { } System.Exceptio n
| Message "Access is denied: 'log4net'." string
| Source null string
| StackTrace null string
| TargetSite <undefined value> System.Reflecti on.MethodBase
| _fileName "log4net" string
| _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
..DLL.\r\n" string
| FileName "log4net" string
| FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
..DLL.\r\n" string
| Message "Access is denied: 'log4net'." string
| - [1] {"log4net"} System.IO.FileL oadException
| - System.IO.IOExc eption {System.IO.File LoadException}
System.IO.IOExc eption
| - System.SystemEx ception {"Access is denied:
| 'log4net'."} System.SystemEx ception
| - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| System.Object {System.IO.File LoadException} System.Object
| _className null string
| _COMPlusExcepti onCode -532459699 int
| _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| _exceptionMetho dString null string
| _helpURL null string
| _HResult -2147024891 int
| _innerException { } System.Exceptio n
| _message "Access is denied: 'log4net'." string
| _remoteStackInd ex 0 int
| _remoteStackTra ceString null string
| _source null string
| _stackTrace <undefined value> System.Object
| _stackTraceStri ng null string
| _xcode -532459699 int
| _xptrs 0 int
| HelpLink null string
| HResult -2147024891 int
| InnerException { } System.Exceptio n
| Message "Access is denied: 'log4net'." string
| Source null string
| StackTrace null string
| TargetSite <undefined value> System.Reflecti on.MethodBase
| _fileName "log4net" string
| _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
..DLL.\r\n" string
| FileName "log4net" string
| FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
..DLL.\r\n" string
| Message "Access is denied: 'log4net'." string
| - [2] {"log4net"} System.IO.FileL oadException
| - System.IO.IOExc eption {System.IO.File LoadException}
System.IO.IOExc eption
| - System.SystemEx ception {"Access is denied:
| 'log4net'."} System.SystemEx ception
| - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| System.Object {System.IO.File LoadException} System.Object
| _className null string
| _COMPlusExcepti onCode -532459699 int
| _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| _exceptionMetho dString null string
| _helpURL null string
| _HResult -2147024891 int
| _innerException { } System.Exceptio n
| _message "Access is denied: 'log4net'." string
| _remoteStackInd ex 0 int
| _remoteStackTra ceString null string
| _source null string
| _stackTrace <undefined value> System.Object
| _stackTraceStri ng null string
| _xcode -532459699 int
| _xptrs 0 int
| HelpLink null string
| HResult -2147024891 int
| InnerException { } System.Exceptio n
| Message "Access is denied: 'log4net'." string
| Source null string
| StackTrace null string
| TargetSite <undefined value> System.Reflecti on.MethodBase
| _fileName "log4net" string
| _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
..DLL.\r\n" string
| FileName "log4net" string
| FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
..DLL.\r\n" string
| Message "Access is denied: 'log4net'." string
| - [3] {"log4net"} System.IO.FileL oadException
| - System.IO.IOExc eption {System.IO.File LoadException}
System.IO.IOExc eption
| - System.SystemEx ception {"Access is denied:
| 'log4net'."} System.SystemEx ception
| - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| System.Object {System.IO.File LoadException} System.Object
| _className null string
| _COMPlusExcepti onCode -532459699 int
| _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| _exceptionMetho dString null string
| _helpURL null string
| _HResult -2147024891 int
| _innerException { } System.Exceptio n
| _message "Access is denied: 'log4net'." string
| _remoteStackInd ex 0 int
| _remoteStackTra ceString null string
| _source null string
| _stackTrace <undefined value> System.Object
| _stackTraceStri ng null string
| _xcode -532459699 int
| _xptrs 0 int
| HelpLink null string
| HResult -2147024891 int
| InnerException { } System.Exceptio n
| Message "Access is denied: 'log4net'." string
| Source null string
| StackTrace null string
| TargetSite <undefined value> System.Reflecti on.MethodBase
| _fileName "log4net" string
| _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
..DLL.\r\n" string
| FileName "log4net" string
| FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
..DLL.\r\n" string
| Message "Access is denied: 'log4net'." string
| + LoaderException s {Length=4} System.Exceptio n[]
| + Types {Length=72} System.Type[]
|
|
| As you can see, .NET is failing to load the log4net assembly because of
an
| "acccess is denied" error. But the file
| C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net.DLL
did
| exist, and didn't have any strange security permission settings. In fact,
the
| assembly had been loaded - it was in the list of assemblies in the
current
| domain:
|
| - [17] {System.Reflect ion.Assembly} System.Reflecti on.Assembly
| System.Object {System.Reflect ion.Assembly} System.Object
| _DontTouchThis 206431072 int
- Cache {System.Reflect ion.Cache.Inter nalCache}
System.Reflecti on.Cache.Intern alCache
| System.Object {System.Reflect ion.Cache.Inter nalCache} System.Object
| Item <cannot view indexed property> System.Object
| - m_cache {Length=2} System.Reflecti on.Cache.Intern alCacheItem[]
- [0] {System.Reflect ion.Cache.Inter nalCacheItem}
System.Reflecti on.Cache.Intern alCacheItem
- System.ValueTyp e {System.Reflect ion.Cache.Inter nalCacheItem}
System.ValueTyp e
| System.Object {System.Reflect ion.Cache.Inter nalCacheItem} System.Object
| Key AssemblyName System.Reflecti on.Cache.CacheO bjType
| - Value "log4net, Version=1.2.9.0 , Culture=neutral ,
| PublicKeyToken= 07012269af863ac 7" System.Object
| string "log4net, Version=1.2.9.0 , Culture=neutral ,
| PublicKeyToken= 07012269af863ac 7" string
- [1] {System.Reflect ion.Cache.Inter nalCacheItem}
System.Reflecti on.Cache.Intern alCacheItem
- System.ValueTyp e {System.Reflect ion.Cache.Inter nalCacheItem}
System.ValueTyp e
| System.Object {System.Reflect ion.Cache.Inter nalCacheItem} System.Object
| Key EmptyElement System.Reflecti on.Cache.CacheO bjType
| Value <undefined value> System.Object
| m_numItems 1 int
| MinCacheSize 2 int
CodeBase
"file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4ne
t.DLL" string
| EntryPoint <undefined value> System.Reflecti on.MethodInfo
EscapedCodeBase
"file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4ne
t.DLL" string
| + Evidence {System.Securit y.Policy.Eviden ce}
System.Security .Policy.Evidenc e
| FullName "log4net, Version=1.2.9.0 , Culture=neutral ,
| PublicKeyToken= 07012269af863ac 7" string
| GlobalAssemblyC ache false bool
| ImageRuntimeVer sion "v1.1.4322" string
| Location @"c:\windows\mi crosoft.net\fra mework\v1.1.432 2\temporary
asp.net
|
files\applysour ce\f27b5c84\cde ddc66\assembly\ dl2\c30d5406\00 341f6d_f898c501 \
log4net.dll" string
| m_assemblyData <undefined value>
System.Reflecti on.Emit.Assembl yBuilderData
- m_cachedData {System.Reflect ion.Cache.Inter nalCache}
System.Reflecti on.Cache.Intern alCache
| System.Object {System.Reflect ion.Cache.Inter nalCache} System.Object
| Item <cannot view indexed property> System.Object
| - m_cache {Length=2} System.Reflecti on.Cache.Intern alCacheItem[]
- [0] {System.Reflect ion.Cache.Inter nalCacheItem}
System.Reflecti on.Cache.Intern alCacheItem
- System.ValueTyp e {System.Reflect ion.Cache.Inter nalCacheItem}
System.ValueTyp e
| System.Object {System.Reflect ion.Cache.Inter nalCacheItem} System.Object
| Key AssemblyName System.Reflecti on.Cache.CacheO bjType
| - Value "log4net, Version=1.2.9.0 , Culture=neutral ,
| PublicKeyToken= 07012269af863ac 7" System.Object
| string "log4net, Version=1.2.9.0 , Culture=neutral ,
| PublicKeyToken= 07012269af863ac 7" string
- [1] {System.Reflect ion.Cache.Inter nalCacheItem}
System.Reflecti on.Cache.Intern alCacheItem
- System.ValueTyp e {System.Reflect ion.Cache.Inter nalCacheItem}
System.ValueTyp e
| System.Object {System.Reflect ion.Cache.Inter nalCacheItem} System.Object
| Key EmptyElement System.Reflecti on.Cache.CacheO bjType
| Value <undefined value> System.Object
| m_numItems 1 int
| MinCacheSize 2 int
| ModuleResolve <undefined value>
System.Reflecti on.ModuleResolv eEventHandler
| s_localFilePref ix "file:" string
|
|
| The MissingFieldExc eption happens on a machine that doesn't have Visual
| Studio installed, so the problem can't be due to the build process
locking
| the DLL. In fact, as the problem is intermittent and won't go away until
we
| force ASP.NET to reload the application (by re-saving the web.config
file), I
| don't think it's an external system locking the file at all. One minute
| ASP.NET can load the assembly fine, the next it just seems to get
confused.
|
| Looking through past posts, it appears that a few other people are also
| seeing this problem, but no-one seems to have identified the cause yet.
I'm
| hoping that the "access is denied" exception shown above will help
someone
| work out what's going on.
|
| - Lee
|
|

Nov 19 '05 #2

Thanks Steven. Yes, we ran with the log4net assembly in the GAC in test last
night and didn't get a reoccurrence of the problem. Thanks especially for the
KB 813833 link - that's just the sort of evidence we need to push this change
through to production.

Regards,
- Lee
"Steven Cheng[MSFT]" wrote:
HI Lee,

Welcome to ASPNET newsgroup.
Regarding on the problem you mentioned, I think the problem is just due to
the Log4net 's assembly is a strong-named assembly and be put in the
asp.net application's private bin path. Currently the ASP.NET application
host dosn't support strong-named assembly in private bin dir, we should
always put strong-named ones into GAC. At runtime, asp.net will shadow copy
the private assemblies in the private bin dir , however for strong-named
ones in it, they may not be shadow copied so that after the appdomain(of
the application) restart, we'll encountering loading type/assembly failed
for those assemblies. Also, from the fusion log you attached, we can find
the the runtime locate the asp.net temporary dir didn't find the copied one
and locate the assembly in private bin dir but failed to load it.

Please try put all the strong-named assemblies in your app's private bin
dir and register them in GAC to see whether this do the work. In addition
,here 're some kb articles discussing on some other existing issue when
deploying strong-named assembly in asp.net app's private bin path:

http://support.microsoft.com/?id=813833

http://support.microsoft.com/?id=813830

Hope also helps. Thanks,
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: Intermittent MissingFieldExc eption
| thread-index: AcWzwCzOmnwAiKd QTaW8YeD0n1xIAw ==
| X-WBNR-Posting-Host: 194.200.242.250
| From: "=?Utf-8?B?TGVlIENoYXB tYW4=?=" <Le********@new sgroup.nospam>
| Subject: Intermittent MissingFieldExc eption
| Date: Wed, 7 Sep 2005 08:24:02 -0700
| Lines: 350
| Message-ID: <86************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1229 09
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| Hi,
|
| I have a problem where my ASP.NET application occasionally generates a
| MissingFieldExc eption exception. This unexpectedly happened on my
development
| box, and so I was able to extract some information from the debugger:
|
| The field that is "missing" is called 'logger'. Here's it's description
| taken from ildasm.exe:
|
| .field public static class [log4net]log4net.ILog logger
|
| This field is in a class called 'Utility', which is in an assembly called
| 'Infrastructure '. This Infrastructure' s assembly manifest shows that the
| log4net assembly is referenced thus:
|
| .assembly extern log4net
| {
| .publickeytoken = (07 01 22 69 AF 86 3A C7 )
| .ver 1:2:9:0
| }
|
| The log4net assembly is a strongly named assembly, but it isn't in the
GAC.
| I have a suspicion that the fact that the assembly is strongly named may
be
| relevant, because the problem never occurs with our other assemblies.
|
| System.AppDomai n.CurrentDomain .GetAssemblies( ) showed that there were 40
| assemblies loaded. The MissingFieldExc eption exception was being
generated
| because the Infrastructure assembly wasn't loading properly. When I
called
| GetTypes() on the Infrastructure assembly, a ReflectionTypeL oadException
| exception was thrown saying that "One or more of the types in the
assembly
| unable to load". Here are the exception's details (taken from the Visual
| Studio watch window):
|
| - System.AppDomai n.CurrentDomain .GetAssemblies( )[14].GetTypes() {"One or
| more of the types in the assembly unable to
| load."} System.Reflecti on.ReflectionTy peLoadException
| + System.SystemEx ception {"One or more of the types in the assembly
unable
| to load."} System.SystemEx ception
| + _classes {Length=72} System.Type[]
| - _exceptions {Length=4} System.Exceptio n[]
| - [0] {"log4net"} System.IO.FileL oadException
| - System.IO.IOExc eption {System.IO.File LoadException}
System.IO.IOExc eption
| - System.SystemEx ception {"Access is denied:
| 'log4net'."} System.SystemEx ception
| - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| System.Object {System.IO.File LoadException} System.Object
| _className null string
| _COMPlusExcepti onCode -532459699 int
| _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| _exceptionMetho dString null string
| _helpURL null string
| _HResult -2147024891 int
| _innerException { } System.Exceptio n
| _message "Access is denied: 'log4net'." string
| _remoteStackInd ex 0 int
| _remoteStackTra ceString null string
| _source null string
| _stackTrace <undefined value> System.Object
| _stackTraceStri ng null string
| _xcode -532459699 int
| _xptrs 0 int
| HelpLink null string
| HResult -2147024891 int
| InnerException { } System.Exceptio n
| Message "Access is denied: 'log4net'." string
| Source null string
| StackTrace null string
| TargetSite <undefined value> System.Reflecti on.MethodBase
| _fileName "log4net" string
| _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
.DLL.\r\n" string
| FileName "log4net" string
| FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
.DLL.\r\n" string
| Message "Access is denied: 'log4net'." string
| - [1] {"log4net"} System.IO.FileL oadException
| - System.IO.IOExc eption {System.IO.File LoadException}
System.IO.IOExc eption
| - System.SystemEx ception {"Access is denied:
| 'log4net'."} System.SystemEx ception
| - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| System.Object {System.IO.File LoadException} System.Object
| _className null string
| _COMPlusExcepti onCode -532459699 int
| _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| _exceptionMetho dString null string
| _helpURL null string
| _HResult -2147024891 int
| _innerException { } System.Exceptio n
| _message "Access is denied: 'log4net'." string
| _remoteStackInd ex 0 int
| _remoteStackTra ceString null string
| _source null string
| _stackTrace <undefined value> System.Object
| _stackTraceStri ng null string
| _xcode -532459699 int
| _xptrs 0 int
| HelpLink null string
| HResult -2147024891 int
| InnerException { } System.Exceptio n
| Message "Access is denied: 'log4net'." string
| Source null string
| StackTrace null string
| TargetSite <undefined value> System.Reflecti on.MethodBase
| _fileName "log4net" string
| _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
.DLL.\r\n" string
| FileName "log4net" string
| FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
.DLL.\r\n" string
| Message "Access is denied: 'log4net'." string
| - [2] {"log4net"} System.IO.FileL oadException
| - System.IO.IOExc eption {System.IO.File LoadException}
System.IO.IOExc eption
| - System.SystemEx ception {"Access is denied:
| 'log4net'."} System.SystemEx ception
| - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| System.Object {System.IO.File LoadException} System.Object
| _className null string
| _COMPlusExcepti onCode -532459699 int
| _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| _exceptionMetho dString null string
| _helpURL null string
| _HResult -2147024891 int
| _innerException { } System.Exceptio n
| _message "Access is denied: 'log4net'." string
| _remoteStackInd ex 0 int
| _remoteStackTra ceString null string
| _source null string
| _stackTrace <undefined value> System.Object
| _stackTraceStri ng null string
| _xcode -532459699 int
| _xptrs 0 int
| HelpLink null string
| HResult -2147024891 int
| InnerException { } System.Exceptio n
| Message "Access is denied: 'log4net'." string
| Source null string
| StackTrace null string
| TargetSite <undefined value> System.Reflecti on.MethodBase
| _fileName "log4net" string
| _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL
|
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
.DLL.\r\n" string
| FileName "log4net" string
| FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| log4net, Version=1.2.9.0 , Culture=neutral ,
PublicKeyToken= 07012269af863ac 7\n
| (Fully-specified)\r\nL OG: Appbase =
| file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| Version=0.0.0.4 4, Culture=neutral , PublicKeyToken= null.\r\n===\n\ r\nLOG:
| Attempting download of new URL
| file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
| Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
download
| of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| ASP.NET Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| Attempting download of new URL

Nov 19 '05 #3
Glad that those suggestions are of assistance.

Also, thank you for choosing Microsoft!

Best Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Intermittent MissingFieldExc eption
| thread-index: AcW0WkmQdZZFEvM 4R4qcivym1FY2gg ==
| X-WBNR-Posting-Host: 194.200.242.250
| From: "=?Utf-8?B?TGVlIENoYXB tYW4=?=" <Le********@new sgroup.nospam>
| References: <86************ *************** *******@microso ft.com>
<AD************ **@TK2MSFTNGXA0 2.phx.gbl>
| Subject: RE: Intermittent MissingFieldExc eption
| Date: Thu, 8 Sep 2005 02:47:12 -0700
| Lines: 312
| Message-ID: <20************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA03.phx.gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3425 74
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| Thanks Steven. Yes, we ran with the log4net assembly in the GAC in test
last
| night and didn't get a reoccurrence of the problem. Thanks especially for
the
| KB 813833 link - that's just the sort of evidence we need to push this
change
| through to production.
|
| Regards,
| - Lee
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > HI Lee,
| >
| > Welcome to ASPNET newsgroup.
| > Regarding on the problem you mentioned, I think the problem is just due
to
| > the Log4net 's assembly is a strong-named assembly and be put in the
| > asp.net application's private bin path. Currently the ASP.NET
application
| > host dosn't support strong-named assembly in private bin dir, we should
| > always put strong-named ones into GAC. At runtime, asp.net will shadow
copy
| > the private assemblies in the private bin dir , however for
strong-named
| > ones in it, they may not be shadow copied so that after the
appdomain(of
| > the application) restart, we'll encountering loading type/assembly
failed
| > for those assemblies. Also, from the fusion log you attached, we can
find
| > the the runtime locate the asp.net temporary dir didn't find the copied
one
| > and locate the assembly in private bin dir but failed to load it.
| >
| > Please try put all the strong-named assemblies in your app's private
bin
| > dir and register them in GAC to see whether this do the work. In
addition
| > ,here 're some kb articles discussing on some other existing issue
when
| > deploying strong-named assembly in asp.net app's private bin path:
| >
| > http://support.microsoft.com/?id=813833
| >
| > http://support.microsoft.com/?id=813830
| >
| > Hope also helps. Thanks,
| >
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | Thread-Topic: Intermittent MissingFieldExc eption
| > | thread-index: AcWzwCzOmnwAiKd QTaW8YeD0n1xIAw ==
| > | X-WBNR-Posting-Host: 194.200.242.250
| > | From: "=?Utf-8?B?TGVlIENoYXB tYW4=?=" <Le********@new sgroup.nospam>
| > | Subject: Intermittent MissingFieldExc eption
| > | Date: Wed, 7 Sep 2005 08:24:02 -0700
| > | Lines: 350
| > | Message-ID: <86************ *************** *******@microso ft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| > | NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
| > | Xref: TK2MSFTNGXA01.p hx.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:1229 09
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| > |
| > |
| > | Hi,
| > |
| > | I have a problem where my ASP.NET application occasionally generates
a
| > | MissingFieldExc eption exception. This unexpectedly happened on my
| > development
| > | box, and so I was able to extract some information from the debugger:
| > |
| > | The field that is "missing" is called 'logger'. Here's it's
description
| > | taken from ildasm.exe:
| > |
| > | .field public static class [log4net]log4net.ILog logger
| > |
| > | This field is in a class called 'Utility', which is in an assembly
called
| > | 'Infrastructure '. This Infrastructure' s assembly manifest shows that
the
| > | log4net assembly is referenced thus:
| > |
| > | .assembly extern log4net
| > | {
| > | .publickeytoken = (07 01 22 69 AF 86 3A C7 )
| > | .ver 1:2:9:0
| > | }
| > |
| > | The log4net assembly is a strongly named assembly, but it isn't in
the
| > GAC.
| > | I have a suspicion that the fact that the assembly is strongly named
may
| > be
| > | relevant, because the problem never occurs with our other assemblies.
| > |
| > | System.AppDomai n.CurrentDomain .GetAssemblies( ) showed that there were
40
| > | assemblies loaded. The MissingFieldExc eption exception was being
| > generated
| > | because the Infrastructure assembly wasn't loading properly. When I
| > called
| > | GetTypes() on the Infrastructure assembly, a
ReflectionTypeL oadException
| > | exception was thrown saying that "One or more of the types in the
| > assembly
| > | unable to load". Here are the exception's details (taken from the
Visual
| > | Studio watch window):
| > |
| > | - System.AppDomai n.CurrentDomain .GetAssemblies( )[14].GetTypes() {"One
or
| > | more of the types in the assembly unable to
| > | load."} System.Reflecti on.ReflectionTy peLoadException
| > | + System.SystemEx ception {"One or more of the types in the assembly
| > unable
| > | to load."} System.SystemEx ception
| > | + _classes {Length=72} System.Type[]
| > | - _exceptions {Length=4} System.Exceptio n[]
| > | - [0] {"log4net"} System.IO.FileL oadException
| > | - System.IO.IOExc eption {System.IO.File LoadException}
| > System.IO.IOExc eption
| > | - System.SystemEx ception {"Access is denied:
| > | 'log4net'."} System.SystemEx ception
| > | - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| > | System.Object {System.IO.File LoadException} System.Object
| > | _className null string
| > | _COMPlusExcepti onCode -532459699 int
| > | _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| > | _exceptionMetho dString null string
| > | _helpURL null string
| > | _HResult -2147024891 int
| > | _innerException { } System.Exceptio n
| > | _message "Access is denied: 'log4net'." string
| > | _remoteStackInd ex 0 int
| > | _remoteStackTra ceString null string
| > | _source null string
| > | _stackTrace <undefined value> System.Object
| > | _stackTraceStri ng null string
| > | _xcode -532459699 int
| > | _xptrs 0 int
| > | HelpLink null string
| > | HResult -2147024891 int
| > | InnerException { } System.Exceptio n
| > | Message "Access is denied: 'log4net'." string
| > | Source null string
| > | StackTrace null string
| > | TargetSite <undefined value> System.Reflecti on.MethodBase
| > | _fileName "log4net" string
| > | _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| > | log4net, Version=1.2.9.0 , Culture=neutral ,
| > PublicKeyToken= 07012269af863ac 7\n
| > | (Fully-specified)\r\nL OG: Appbase =
| > |
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| > | Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| > | Version=0.0.0.4 4, Culture=neutral ,
PublicKeyToken= null.\r\n===\n\ r\nLOG:
| > | Attempting download of new URL
| > | file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET
| > | Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
| > download
| > | of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| > | ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| > | Attempting download of new URL
| > |
| >
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
| > .DLL.\r\n" string
| > | FileName "log4net" string
| > | FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| > | log4net, Version=1.2.9.0 , Culture=neutral ,
| > PublicKeyToken= 07012269af863ac 7\n
| > | (Fully-specified)\r\nL OG: Appbase =
| > |
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| > | Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| > | Version=0.0.0.4 4, Culture=neutral ,
PublicKeyToken= null.\r\n===\n\ r\nLOG:
| > | Attempting download of new URL
| > | file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET
| > | Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
| > download
| > | of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| > | ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| > | Attempting download of new URL
| > |
| >
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
| > .DLL.\r\n" string
| > | Message "Access is denied: 'log4net'." string
| > | - [1] {"log4net"} System.IO.FileL oadException
| > | - System.IO.IOExc eption {System.IO.File LoadException}
| > System.IO.IOExc eption
| > | - System.SystemEx ception {"Access is denied:
| > | 'log4net'."} System.SystemEx ception
| > | - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| > | System.Object {System.IO.File LoadException} System.Object
| > | _className null string
| > | _COMPlusExcepti onCode -532459699 int
| > | _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| > | _exceptionMetho dString null string
| > | _helpURL null string
| > | _HResult -2147024891 int
| > | _innerException { } System.Exceptio n
| > | _message "Access is denied: 'log4net'." string
| > | _remoteStackInd ex 0 int
| > | _remoteStackTra ceString null string
| > | _source null string
| > | _stackTrace <undefined value> System.Object
| > | _stackTraceStri ng null string
| > | _xcode -532459699 int
| > | _xptrs 0 int
| > | HelpLink null string
| > | HResult -2147024891 int
| > | InnerException { } System.Exceptio n
| > | Message "Access is denied: 'log4net'." string
| > | Source null string
| > | StackTrace null string
| > | TargetSite <undefined value> System.Reflecti on.MethodBase
| > | _fileName "log4net" string
| > | _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| > | log4net, Version=1.2.9.0 , Culture=neutral ,
| > PublicKeyToken= 07012269af863ac 7\n
| > | (Fully-specified)\r\nL OG: Appbase =
| > |
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| > | Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| > | Version=0.0.0.4 4, Culture=neutral ,
PublicKeyToken= null.\r\n===\n\ r\nLOG:
| > | Attempting download of new URL
| > | file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET
| > | Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
| > download
| > | of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| > | ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| > | Attempting download of new URL
| > |
| >
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
| > .DLL.\r\n" string
| > | FileName "log4net" string
| > | FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| > | log4net, Version=1.2.9.0 , Culture=neutral ,
| > PublicKeyToken= 07012269af863ac 7\n
| > | (Fully-specified)\r\nL OG: Appbase =
| > |
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| > | Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| > | Version=0.0.0.4 4, Culture=neutral ,
PublicKeyToken= null.\r\n===\n\ r\nLOG:
| > | Attempting download of new URL
| > | file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET
| > | Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
| > download
| > | of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| > | ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| > | Attempting download of new URL
| > |
| >
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
| > .DLL.\r\n" string
| > | Message "Access is denied: 'log4net'." string
| > | - [2] {"log4net"} System.IO.FileL oadException
| > | - System.IO.IOExc eption {System.IO.File LoadException}
| > System.IO.IOExc eption
| > | - System.SystemEx ception {"Access is denied:
| > | 'log4net'."} System.SystemEx ception
| > | - System.Exceptio n {"Access is denied: 'log4net'." } System.Exceptio n
| > | System.Object {System.IO.File LoadException} System.Object
| > | _className null string
| > | _COMPlusExcepti onCode -532459699 int
| > | _exceptionMetho d <undefined value> System.Reflecti on.MethodBase
| > | _exceptionMetho dString null string
| > | _helpURL null string
| > | _HResult -2147024891 int
| > | _innerException { } System.Exceptio n
| > | _message "Access is denied: 'log4net'." string
| > | _remoteStackInd ex 0 int
| > | _remoteStackTra ceString null string
| > | _source null string
| > | _stackTrace <undefined value> System.Object
| > | _stackTraceStri ng null string
| > | _xcode -532459699 int
| > | _xptrs 0 int
| > | HelpLink null string
| > | HResult -2147024891 int
| > | InnerException { } System.Exceptio n
| > | Message "Access is denied: 'log4net'." string
| > | Source null string
| > | StackTrace null string
| > | TargetSite <undefined value> System.Reflecti on.MethodBase
| > | _fileName "log4net" string
| > | _fusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| > | log4net, Version=1.2.9.0 , Culture=neutral ,
| > PublicKeyToken= 07012269af863ac 7\n
| > | (Fully-specified)\r\nL OG: Appbase =
| > |
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| > | Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| > | Version=0.0.0.4 4, Culture=neutral ,
PublicKeyToken= null.\r\n===\n\ r\nLOG:
| > | Attempting download of new URL
| > | file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET
| > | Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
| > download
| > | of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| > | ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| > | Attempting download of new URL
| > |
| >
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation/bin/log4net
| > .DLL.\r\n" string
| > | FileName "log4net" string
| > | FusionLog "=== Pre-bind state information ===\r\nLOG: DisplayName =
| > | log4net, Version=1.2.9.0 , Culture=neutral ,
| > PublicKeyToken= 07012269af863ac 7\n
| > | (Fully-specified)\r\nL OG: Appbase =
| > |
file:///C:/Environments/XXXX/Development/YYYY/Apply/Presentation\r\ nLOG:
| > | Initial PrivatePath = bin\r\nCalling assembly : Infrastructure,
| > | Version=0.0.0.4 4, Culture=neutral ,
PublicKeyToken= null.\r\n===\n\ r\nLOG:
| > | Attempting download of new URL
| > | file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
ASP.NET
| > | Files/applysource/f27b5c84/cdeddc66/log4net.DLL.\r\ nLOG: Attempting
| > download
| > | of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary
| > | ASP.NET
Files/applysource/f27b5c84/cdeddc66/log4net/log4net.DLL.\r\ nLOG:
| > | Attempting download of new URL
|

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
292
by: deevoy | last post by:
Hi- I'm developing a asp.net web application and everything has proven fine on the dev and acceptance environment. We've moved the code up to our windows server 2003 prod environment and get the following intermittent error when browsing the web page through a client browser (the action causing this is paging though a datagrid- although it randomly errors, rather than erroring all the time): ________________ Invalid character in a...
8
5047
by: trinitypete | last post by:
Hi all I have a strange problem with IIS windows pass through authentication. Heres the setup IIS running with Windows Authentication for our intranet site. ACL has been set to everyone for all web directories. This is all on a windows 2003 server. We add the intranet site to the intranet zone so the windows credentials will automatically get passed to IIS 90% of the time it works fine, but Intermittently we get access forbidden -...
0
1199
by: Mark | last post by:
Hi... I have an asp.Net application set up on one server with a collection of dlls in /bin. My boss simply did an xcopy of the whole file tree to his server so he could work with it at home over the weekend, and on *his* box, the application is throwing a MissingFieldException over a field that one dll is referencing in another. Now, the files are the same on both systems. The .pdb files are the same on both systems, yet the asp.Net...
2
1867
by: Mike Krajewski | last post by:
We are having an intermittent problem using an ExecuteScalar command on a asp.NET page accessing SQL Server. 2 characters of the sql statement get intermittently altered. The code looks as follows: SqlCommand command = new SqlCommand("SELECT fkOWSStatusID FROM vwUsersCleanups WHERE pkCleanupID = 123", connection); object nReturn = command.ExecuteScalar(); About 10% of the time, the 'rs' in vwUsersCleanups get altered into...
1
8957
by: Jo Yoshida | last post by:
http://groups.google.com/groups?hl=en&lr=&threadm=F9A88B8F-6DDD-405C-9559-B2379ABE8CA7%40microsoft.com&rnum=1&prev=/groups%3Fq%3DSystem.MissingFieldException:%2BField%2Bnot%2Bfound%26hl%3Den%26lr%3D%26selm%3DF9A88B8F-6DDD-405C-9559-B2379ABE8CA7%2540microsoft.com%26rnum%3D1%26filter%3D0 The above thread is old but has anyone come up with a solution to this issue? The intermittent problem started after I added a UserControl that contains a...
1
1228
by: deevoy | last post by:
Hi- I'm developing a asp.net web application and everything has proven fine on the dev and acceptance environment. We've moved the code up to our windows server 2003 prod environment and get the following intermittent error when browsing the web page through a client browser (the action causing this is paging though a datagrid- although it randomly errors, rather than erroring all the time):
0
1224
by: Shane C | last post by:
Intermittent Error: Server was unable to process request  Object reference not set to an instance of an object I have windows application that references a XML web service on our web server. The application sends and receives information fine most of the time. We do, mostly during peak usage hours, receive the above mentioned error. 1. What would cause the intermittent nature? 2. What can be done to fix this problem?
8
1867
by: Dave | last post by:
I am getting an intermittent database error on my asp page. I am using Access 2003 with classic ASP. The error is this: Microsoft JET Database Engine Error 80040e10 No value given for one or more required parameters /subweb/search.asp, line 163 Line 163 is starred below:
1
2233
by: Roger Miller | last post by:
I'll try to keep my explanation as simple as I can but leave in the relevant details. We're developing in c#. Our main application can dynamically load assemblies ( plugins) that support a certain interface (to do "extra" functions). Our intent is that these assemblies won't be updated once fielded, and should be ok, as long as the interface they're built upon doesn't change. Actually it can change, you just only add things, not...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10057
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10002
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9869
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3970
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3575
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.