From: David Thielen on
Every time I try to build I get an error like:
Error 1 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) ASPNETCOMPILER 1 1 portal_deploy

The thing is - each time it's a different referenced DLL that is listed -
not consistently log4net.dll.

Sometimes I can get rid of the error by exiting and restarting VS 2005.
Other times I have to reboot my system.

Any ideas?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


From: Rad [Visual C# MVP] on
On Wed, 6 Dec 2006 10:10:00 -0800, David Thielen wrote:

> Every time I try to build I get an error like:
> Error 1 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) ASPNETCOMPILER 1 1 portal_deploy
>
> The thing is - each time it's a different referenced DLL that is listed -
> not consistently log4net.dll.
>
> Sometimes I can get rid of the error by exiting and restarting VS 2005.
> Other times I have to reboot my system.
>
> Any ideas?

I remember in VS 2003 the same problem would creep up if the microsoft
indexing service indexed the folder with the asp.net bin folder. You might
want to check on that
--
Bits.Bytes
http://bytes.thinkersroom.com
From: Juan T. Llibre on
re:
> 1) How do I get IISRESET on the taskbar?

Create a shorcut to "iisreset.exe" on the desktop ( no path needed )
....and drag the shortcut to the taskbar.



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" <thielen(a)nospam.nospam> wrote in message
news:43A00FEB-D651-4889-A402-C344479B30F9(a)microsoft.com...
> Hi;
>
> Two questions:
>
> 1) How do I get IISRESET on the taskbar?
>
> 2) Can that be it if I am using the VS 2005 integrated web server?
>
> thanks - dave
>
> --
> thanks - dave
> david_at_windward_dot_net
> http://www.windwardreports.com


> "Peter Bromberg [C# MVP]" wrote:
>
>> I've run into this from time to time. Besides what Rad suggested, I have an
>> icon on my taskbar that points to IISRESET. This works wonders for releasing
>> the nasty little boogers.
>> Peter


>> "David Thielen" wrote:
>>
>> > Every time I try to build I get an error like:
>> > Error 1 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) ASPNETCOMPILER 1 1 portal_deploy
>> >
>> > The thing is - each time it's a different referenced DLL that is listed -
>> > not consistently log4net.dll.
>> >
>> > Sometimes I can get rid of the error by exiting and restarting VS 2005.
>> > Other times I have to reboot my system.
>> >
>> > Any ideas?


From: Steven Cheng[MSFT] on
Hello Dave,

Have you tried checking the indexing service issue Rad has mentioned?
Also, I found that the problem assembly has a strong-name key token. Is
this problem assembly(strong-named) put in the private bin dir of your
ASP.NET web application or in GAC? If it is in private bin dir, I suggest
you install it into GAC since ASP.NET does not support strong-named
assembly in private bin dir and this could cause potential file locking or
other expected issue.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

From: David Thielen on
They are strong named but I am building them as part of the solution and
pushing them to the GAC each time I build the project would be a giant pain.

Is there a way in the solution to set this for the DLL projects?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




"Steven Cheng[MSFT]" wrote:

> Hello Dave,
>
> Have you tried checking the indexing service issue Rad has mentioned?
> Also, I found that the problem assembly has a strong-name key token. Is
> this problem assembly(strong-named) put in the private bin dir of your
> ASP.NET web application or in GAC? If it is in private bin dir, I suggest
> you install it into GAC since ASP.NET does not support strong-named
> assembly in private bin dir and this could cause potential file locking or
> other expected issue.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>