Hi;
I copied a new set of files over to my ASP.NET dir (and subdirs) on our test
server. This replaced every file for the app. When I first then tried to
bring it up, I got the below error.
After I bounced IIS, then it worked fine. log4net.dll is in the Bin
directory. What is going on here - this makes no sense to me.
[FileLoadException: Could not load file or assembly 'log4net' or one of its
dependencies. The process cannot access the file because it is being used by
another process. (Exception from HRESULT: 0x80070020)]
[FileLoadException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of
its dependencies. The process cannot access the file because it is being used
by another process. (Exception from HRESULT: 0x80070020)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of
its dependencies. The process cannot access the file because it is being used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory() +3487241
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +378
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of
its dependencies. The process cannot access the file because it is being used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
+57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of
its dependencies. The process cannot access the file because it is being used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3434943
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +252
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.210
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm 8 8832
It sounds to me like some process was still holding onto references to these
modules. Does it happen consistently?
Sysinterals.com has some utilities you can use to find out what processes
are holding onto what libraries. Sounds to me like some ASP.Net process was
just not behaving well...
--
~~~~~~~~~~~
Ben Rush http://www.ben-rush.net/blog
"David Thielen" <th*****@nospam.nospamwrote in message
news:8F**********************************@microsof t.com...
Hi;
I copied a new set of files over to my ASP.NET dir (and subdirs) on our
test
server. This replaced every file for the app. When I first then tried to
bring it up, I got the below error.
After I bounced IIS, then it worked fine. log4net.dll is in the Bin
directory. What is going on here - this makes no sense to me.
[FileLoadException: Could not load file or assembly 'log4net' or one of
its
dependencies. The process cannot access the file because it is being used
by
another process. (Exception from HRESULT: 0x80070020)]
[FileLoadException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
+141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory()
+3487241
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo
ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +378
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
+57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3434943
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +252
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.210
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
Yes it happens consistently but when I use the sysinternals tools it does not
show another app locking it.
And in this case - how would another app have it locked so it can't be read
when I had just copied it to that computer? I was able to overwrite it in the
copy so at that point nothing had it locked. And the next thing I did was try
to bring up the website.
This is very weird.
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Ben Rush" wrote:
It sounds to me like some process was still holding onto references to these
modules. Does it happen consistently?
Sysinterals.com has some utilities you can use to find out what processes
are holding onto what libraries. Sounds to me like some ASP.Net process was
just not behaving well...
--
~~~~~~~~~~~
Ben Rush http://www.ben-rush.net/blog
"David Thielen" <th*****@nospam.nospamwrote in message
news:8F**********************************@microsof t.com...
Hi;
I copied a new set of files over to my ASP.NET dir (and subdirs) on our
test
server. This replaced every file for the app. When I first then tried to
bring it up, I got the below error.
After I bounced IIS, then it worked fine. log4net.dll is in the Bin
directory. What is going on here - this makes no sense to me.
[FileLoadException: Could not load file or assembly 'log4net' or one of
its
dependencies. The process cannot access the file because it is being used
by
another process. (Exception from HRESULT: 0x80070020)]
[FileLoadException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
+141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory()
+3487241
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo
ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +378
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
+57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3434943
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +252
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.210
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
Do you, by any chance, have the indexing service turned on ?
The indexing service has been known to cause errors like that one.
You might want to exclude the .Net Framework temp directory, the system temp
directory and the wwwroot and subdirectories from the indexing service's search.
Or, maybe, an antivirus system is interfering ?
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"David Thielen" <th*****@nospam.nospamwrote in message
news:90**********************************@microsof t.com...
Yes it happens consistently but when I use the sysinternals tools it does not
show another app locking it.
And in this case - how would another app have it locked so it can't be read
when I had just copied it to that computer? I was able to overwrite it in the
copy so at that point nothing had it locked. And the next thing I did was try
to bring up the website.
This is very weird.
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Ben Rush" wrote:
>It sounds to me like some process was still holding onto references to these modules. Does it happen consistently?
Sysinterals.com has some utilities you can use to find out what processes are holding onto what libraries. Sounds to me like some ASP.Net process was just not behaving well...
-- ~~~~~~~~~~~ Ben Rush http://www.ben-rush.net/blog
"David Thielen" <th*****@nospam.nospamwrote in message news:8F**********************************@microso ft.com...
Hi;
I copied a new set of files over to my ASP.NET dir (and subdirs) on our
test
server. This replaced every file for the app. When I first then tried to
bring it up, I got the below error.
After I bounced IIS, then it worked fine. log4net.dll is in the Bin
directory. What is going on here - this makes no sense to me.
[FileLoadException: Could not load file or assembly 'log4net' or one of
its
dependencies. The process cannot access the file because it is being used
by
another process. (Exception from HRESULT: 0x80070020)]
[FileLoadException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
+141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory()
+3487241
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo
ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +378
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
+57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3434943
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +252
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.210
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
have you tried to delete the fields in temporary aspnet folder?
Daniel
"David Thielen" <th*****@nospam.nospamwrote in message
news:8F**********************************@microsof t.com...
Hi;
I copied a new set of files over to my ASP.NET dir (and subdirs) on our
test
server. This replaced every file for the app. When I first then tried to
bring it up, I got the below error.
After I bounced IIS, then it worked fine. log4net.dll is in the Bin
directory. What is going on here - this makes no sense to me.
[FileLoadException: Could not load file or assembly 'log4net' or one of
its
dependencies. The process cannot access the file because it is being used
by
another process. (Exception from HRESULT: 0x80070020)]
[FileLoadException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
+141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory()
+3487241
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo
ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +378
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
+57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3434943
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +252
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.210
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
It is weird, especially since the sysinternals tool isn't showing what is
locking it down. Perhaps something more low-level is holding onto it - an
antivirus software tool, perhaps?
--
~~~~~~~~~~~
Ben Rush http://www.ben-rush.net/blog
"David Thielen" <th*****@nospam.nospamwrote in message
news:90**********************************@microsof t.com...
Yes it happens consistently but when I use the sysinternals tools it does
not
show another app locking it.
And in this case - how would another app have it locked so it can't be
read
when I had just copied it to that computer? I was able to overwrite it in
the
copy so at that point nothing had it locked. And the next thing I did was
try
to bring up the website.
This is very weird.
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Ben Rush" wrote:
>It sounds to me like some process was still holding onto references to these modules. Does it happen consistently?
Sysinterals.com has some utilities you can use to find out what processes are holding onto what libraries. Sounds to me like some ASP.Net process was just not behaving well...
-- ~~~~~~~~~~~ Ben Rush http://www.ben-rush.net/blog
"David Thielen" <th*****@nospam.nospamwrote in message news:8F**********************************@microso ft.com...
Hi;
I copied a new set of files over to my ASP.NET dir (and subdirs) on our
test
server. This replaced every file for the app. When I first then tried
to
bring it up, I got the below error.
After I bounced IIS, then it worked fine. log4net.dll is in the Bin
directory. What is going on here - this makes no sense to me.
[FileLoadException: Could not load file or assembly 'log4net' or one of
its
dependencies. The process cannot access the file because it is being
used
by
another process. (Exception from HRESULT: 0x80070020)]
[FileLoadException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or
one
of
its dependencies. The process cannot access the file because it is
being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
+141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly
'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or
one
of
its dependencies. The process cannot access the file because it is
being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory()
+3487241
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo
ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName)
+180
System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled()
+378
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or
one
of
its dependencies. The process cannot access the file because it is
being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
+57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled()
+612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters)
+456
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or
one
of
its dependencies. The process cannot access the file because it is
being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3434943
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context)
+88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)
+252
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.210
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
The indexing service is disabled and no anti-virus. This is a test server so
it's pretty vanilla.
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Juan T. Llibre" wrote:
Do you, by any chance, have the indexing service turned on ?
The indexing service has been known to cause errors like that one.
You might want to exclude the .Net Framework temp directory, the system temp
directory and the wwwroot and subdirectories from the indexing service's search.
Or, maybe, an antivirus system is interfering ?
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"David Thielen" <th*****@nospam.nospamwrote in message
news:90**********************************@microsof t.com...
Yes it happens consistently but when I use the sysinternals tools it does not
show another app locking it.
And in this case - how would another app have it locked so it can't be read
when I had just copied it to that computer? I was able to overwrite it in the
copy so at that point nothing had it locked. And the next thing I did was try
to bring up the website.
This is very weird.
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Ben Rush" wrote:
It sounds to me like some process was still holding onto references to these
modules. Does it happen consistently?
Sysinterals.com has some utilities you can use to find out what processes
are holding onto what libraries. Sounds to me like some ASP.Net process was
just not behaving well...
--
~~~~~~~~~~~
Ben Rush http://www.ben-rush.net/blog
"David Thielen" <th*****@nospam.nospamwrote in message
news:8F**********************************@microsof t.com...
Hi;
I copied a new set of files over to my ASP.NET dir (and subdirs) on our
test
server. This replaced every file for the app. When I first then tried to
bring it up, I got the below error.
After I bounced IIS, then it worked fine. log4net.dll is in the Bin
directory. What is going on here - this makes no sense to me.
[FileLoadException: Could not load file or assembly 'log4net' or one of
its
dependencies. The process cannot access the file because it is being used
by
another process. (Exception from HRESULT: 0x80070020)]
[FileLoadException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
+141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory()
+3487241
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo
ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +378
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
+57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3434943
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +252
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.210
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
I will try that next time. But I would hope that IIS/ASP does not trip over
something like that.
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"daniel #" wrote:
have you tried to delete the fields in temporary aspnet folder?
Daniel
"David Thielen" <th*****@nospam.nospamwrote in message
news:8F**********************************@microsof t.com...
Hi;
I copied a new set of files over to my ASP.NET dir (and subdirs) on our
test
server. This replaced every file for the app. When I first then tried to
bring it up, I got the below error.
After I bounced IIS, then it worked fine. log4net.dll is in the Bin
directory. What is going on here - this makes no sense to me.
[FileLoadException: Could not load file or assembly 'log4net' or one of
its
dependencies. The process cannot access the file because it is being used
by
another process. (Exception from HRESULT: 0x80070020)]
[FileLoadException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
+141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String
assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory()
+3487241
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo
ai)
+46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection
compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.CodeDirectoryCompiler.GetCo deDirectoryAssembly(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDir ectory(VirtualPath
virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet
excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +378
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
+57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): Could not load file or assembly 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one
of
its dependencies. The process cannot access the file because it is being
used
by another process. (Exception from HRESULT: 0x80070020)]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3434943
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +252
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.210
--
thanks - dave
david_at_windward_dot_net http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
Hi Dave,
When you copy new content into your ASP.NET site, have you also copy the
Log4net dll and overwrite the original one? I suspect that the problem may
due to the shadow copied log4net assembly(in ASP.NET temporary folder) be
locked. Have you tried putting the log4net assembly into GAC to see whether
you'll suffer the same problem. also, when testing ,you can also change the
<compilation debug="xxx" /to false so as to make the dynamic compilation
as release condition.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mark |
last post by:
I am loading source files into several iframes, with each load happening
after some user-generated event (like clicking a button). The loading works
but I need to determine when the source file is...
|
by: Daniel |
last post by:
Is there any way for System.IO.StreamWriter Write method to write out part
of the string to file. such as if the machine is shut down half way through?
or does the file not actually exist until the...
|
by: Bruce |
last post by:
I thought that I had read somewhere before about a limit to the number of
DLL's that could be loaded by a 32 bit application when it is run on Windows
98/ME operating systems.
But I can't seem...
|
by: Jéjé |
last post by:
Hi,
I continue to have some problem with localization in my custom controls.
I have some custom controls which are webparts in sharepoint.
these controls are localized (english & french)
...
|
by: John Dougherty |
last post by:
I am using the filestream feature in VB.NET to create a file. However, I am not able to delete or overwrite the file until the app closes down. I am using the .Close( ) method on the filestream...
|
by: balakrishnan.dinesh |
last post by:
Hellow Friends,
In my webpage, CSS file is not loaded somestimes,I dont
know why it is so? ... Im having HTTP analyser in my browser, I have
cheked through, it shows
"Error Internet Connection...
|
by: David Thielen |
last post by:
Hi;
I have an audit file that is opened in append more and locks other apps from
writing to it. When I stop and restart IIS my web app cannot open the file
because it is locked by another...
|
by: Boris |
last post by:
We have some .NET 1.1 DLLs which we want to use in a ASP.NET 1.1 web page
(actually one is a real .NET DLL in Managed C++ while the others are native
Windows DLLs). First we copied all of the DLLs...
|
by: Pancakes |
last post by:
Hello all, this is my first post in these forums, so bear with me if I've broken a few rules here or there.
Anyhow, I would like to ask if anyone if familiar with the XBee Pro, here, and...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
|
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,...
| |