473,378 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Restarting IIS to build...

I have a development unit running XP Pro and I cannot get it to build a web
project without restarting IIS.

There errors in the task list are....

! Could not copy temporary files to the output directory
! The file'bin\project1.dll' cannot be copied to the run directory. The
process cannot access the file because it is being used by another process.
! The file'bin\project1.pdb' cannot be copied to the run directory. The
process cannot access the file because it is being used by another process.

The only difference between this unit and the other two running identical
installations is that I set the IIS default home directory to f:\wwwroot
instead of going along with the default c:\intepub\wwwroot folder.

This is not a permissions problem because it writes fine once IIS has been
restarted. I compared all other IIS properties and came up with nothing.

From my best diagnosis so far... I would say this is an issue with the GAC?

--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz
Secure Hosting and Development Solutions for ASP, ASP.NET, SQL Server, and
Access
Nov 18 '05 #1
3 1875
This is really a very annoying problem.

Probably you have a Web Application that has a reference to the
project1.dll, both of them are loaded in the same solution.
So, the ASP.NET worker process locks the files they have references, and
when Visual Studio.NET tries to overwrite the project1.dll, it cannot be
done because aspnet_wp.exe is already locking it.

Try building project1.dll on another separate solution

Sds

Daniel

"Jerry Boone" <je***@antech.biz.killspam> wrote in message
news:MZ*****************@newssvr11.news.prodigy.co m...
I have a development unit running XP Pro and I cannot get it to build a web project without restarting IIS.

There errors in the task list are....

! Could not copy temporary files to the output directory
! The file'bin\project1.dll' cannot be copied to the run directory. The
process cannot access the file because it is being used by another process. ! The file'bin\project1.pdb' cannot be copied to the run directory. The
process cannot access the file because it is being used by another process.
The only difference between this unit and the other two running identical
installations is that I set the IIS default home directory to f:\wwwroot
instead of going along with the default c:\intepub\wwwroot folder.

This is not a permissions problem because it writes fine once IIS has been
restarted. I compared all other IIS properties and came up with nothing.

From my best diagnosis so far... I would say this is an issue with the GAC?
--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz
Secure Hosting and Development Solutions for ASP, ASP.NET, SQL Server, and
Access

Nov 18 '05 #2
Hmm... Maybe I am missing something or didn't say something... how would I
build one solution using a separate solution?

The project is a vb asp.net web application and the output is the dll -- I
will explain some steps to duplicate...

I start a new vb asp.net web app, drop a label on a page, set the code
behind load event to change the text property to "hello" and build the
project.

Build... works great...
Change some code behind & build... works great...
Run the web app from within the IDE... works great...
Stop the app and make more changes & build or run.... works great...

However... start the browser and browse to the page
Change some code and build...
The errors show up in the task list and the build is not successful.
Restarting IIS releases the hold on the bin directory files and then the
build works.

--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz
Secure Hosting and Development Solutions for ASP, ASP.NET, SQL Server, and
Access
"Daniel Melo" <da****@realtelecom.com.br> wrote in message
news:Oe**************@TK2MSFTNGP10.phx.gbl...
This is really a very annoying problem.

Probably you have a Web Application that has a reference to the
project1.dll, both of them are loaded in the same solution.
So, the ASP.NET worker process locks the files they have references, and
when Visual Studio.NET tries to overwrite the project1.dll, it cannot be
done because aspnet_wp.exe is already locking it.

Try building project1.dll on another separate solution

Sds

Daniel

"Jerry Boone" <je***@antech.biz.killspam> wrote in message
news:MZ*****************@newssvr11.news.prodigy.co m...
I have a development unit running XP Pro and I cannot get it to build a

web
project without restarting IIS.

There errors in the task list are....

! Could not copy temporary files to the output directory
! The file'bin\project1.dll' cannot be copied to the run directory. The
process cannot access the file because it is being used by another

process.
! The file'bin\project1.pdb' cannot be copied to the run directory. The
process cannot access the file because it is being used by another

process.

The only difference between this unit and the other two running identical installations is that I set the IIS default home directory to f:\wwwroot
instead of going along with the default c:\intepub\wwwroot folder.

This is not a permissions problem because it writes fine once IIS has been restarted. I compared all other IIS properties and came up with nothing.
From my best diagnosis so far... I would say this is an issue with the

GAC?

--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz
Secure Hosting and Development Solutions for ASP, ASP.NET, SQL Server, and Access


Nov 18 '05 #3
Jerry,

I has a very similiar problem but mine was related to the Indexing Service
running on my W2K machine, which I had to disable. I was then able to
compile and run my .NET web application without restarting IIS every time.

Aiax

"Jerry Boone" <je***@antech.biz.killspam> wrote in message
news:MZ*****************@newssvr11.news.prodigy.co m...
I have a development unit running XP Pro and I cannot get it to build a web project without restarting IIS.

There errors in the task list are....

! Could not copy temporary files to the output directory
! The file'bin\project1.dll' cannot be copied to the run directory. The
process cannot access the file because it is being used by another process. ! The file'bin\project1.pdb' cannot be copied to the run directory. The
process cannot access the file because it is being used by another process.
The only difference between this unit and the other two running identical
installations is that I set the IIS default home directory to f:\wwwroot
instead of going along with the default c:\intepub\wwwroot folder.

This is not a permissions problem because it writes fine once IIS has been
restarted. I compared all other IIS properties and came up with nothing.

From my best diagnosis so far... I would say this is an issue with the GAC?
--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz
Secure Hosting and Development Solutions for ASP, ASP.NET, SQL Server, and
Access

Nov 18 '05 #4

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

Similar topics

1
by: Phil S | last post by:
My server is randomly restarting every few minutes or so, and I can't figure out why. What would cause this to happen, aside from some evil person sitting at the console? I did manage to catch it...
0
by: LJ | last post by:
I have been getting this message and can't resolve the problem. I have checked the AntiVirus software and added the application directory to the exculsion list. The application is on a web farm,...
4
by: Hari Koduru | last post by:
Hi All, I am getting the following exception in an ASP.NET application. Exception Details: System.InvalidOperationException: Application is restarting. I have been to the following Support...
1
by: Scott Lezberg | last post by:
We have an web application and the ASP .NET service keeps restarting for no apparent reason. I understand the recyclying concept and I see the event logged but is there any way to determine what...
3
by: Si Chen | last post by:
Hello. It seems that every time I make a change to pg_hba.conf, I have to restart the database server for the new authentication to take effect. Is there a way to have the server use the new...
7
by: GTi | last post by:
Does anyone have any good code for a self restarting application? Sometimes I need to exit my application and start it again, what is the best method of doing this in a windows form application....
9
by: woolley.dean | last post by:
The problem we are having is with the worker process restarting after one minute of being started up. We had a website running in .Net 1.1 and switched it over to .Net 2.0. The site is running on...
9
by: walterbyrd | last post by:
I think I have read somewhere that using Python to develop web-applications requires some restarting of the Apache server, whereas PHP does not. Also, I seem to remember reading something about...
4
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... Following the samples online, we implemented a windows service in .Net. Like most services, there's a worker thread actually doing stuff in the background. The problem we've run into is...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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 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.