473,406 Members | 2,956 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,406 software developers and data experts.

Application Restart on folder creation

In our application, we merge documents for our clients. The directory
structure is as follows:

webroot
->bin
->Documents
->Company
-> Company X
-> Company Y
If I create a new folder under Company:

webroot
->bin
->Documents
->Company
-> Company X
-> Company Y
-> New Company

The application immediately restarts. Nothing is in the Event log.
What am I missing?

Kind Regards
Ray Booysen
Jun 23 '06 #1
3 2134
Hi Ray,

It sounds like your merges are touching the file system in a way (or
location) that affects the application's root. Is it possible to do your
merging in a separate application area?

Here's more on restarts:

http://msdn2.microsoft.com/en-us/library/ms178473.aspx

Ken
Microsoft MVP [ASP.NET]
"Application Restarts

Modifying the source code of your Web application will cause ASP.NET to
recompile source files into assemblies. When you modify the top-level items
in your application, all other assemblies in the application that reference
the top-level assemblies are recompiled as well.

In addition, modifying, adding, or deleting certain types of files within
the application's known folders will cause the application to restart. The
following actions will cause an application restart:

Adding, modifying, or deleting assemblies from the application's Bin folder.

Adding, modifying, or deleting localization resources from the
App_GlobalResources or App_LocalResources folders.

Adding, modifying, or deleting the application's Global.asax file.

Adding, modifying, or deleting source code files in the App_Code directory.

Adding, modifying, or deleting Profile configuration.

Adding, modifying, or deleting Web service references in the
App_WebReferences directory.

Adding, modifying, or deleting the application's Web.config file.

When an application restart is required, ASP.NET will serve all pending
requests from the existing application domain and the old assemblies before
restarting the application domain and loading the new assemblies."
"Ray Booysen" <rj***********@rjb.za.net> wrote in message
news:u$**************@TK2MSFTNGP04.phx.gbl...
In our application, we merge documents for our clients. The directory
structure is as follows:

webroot
->bin
->Documents
->Company
-> Company X
-> Company Y
If I create a new folder under Company:

webroot
->bin
->Documents
->Company
-> Company X
-> Company Y
-> New Company

The application immediately restarts. Nothing is in the Event log. What
am I missing?

Kind Regards
Ray Booysen

Jun 23 '06 #2
Are you sure 'Company' is not a web application in IIS?

I would recommend keeping all your files outside the virtual directory
anyway. It would eliminate this problem, and eliminate the possibility that
someone simply browses to the right folder,e tc.

"Ray Booysen" <rj***********@rjb.za.net> wrote in message
news:u$**************@TK2MSFTNGP04.phx.gbl...
In our application, we merge documents for our clients. The directory
structure is as follows:

webroot
->bin
->Documents
->Company
-> Company X
-> Company Y
If I create a new folder under Company:

webroot
->bin
->Documents
->Company
-> Company X
-> Company Y
-> New Company

The application immediately restarts. Nothing is in the Event log. What
am I missing?

Kind Regards
Ray Booysen

Jun 23 '06 #3
Hi Ken. I'll have a look at this.

I can't unfortunately without a big rewrite of the file handling. I
wrote a user control that allows clients to view their own files. And
the control exposes the URLs of the files to allow downloading. This
would obviously need a change.

Its strange as I use the .NET Framework to create the folders. Anyway,
I'll test more and let the newsgroup know of any findings I have.

Cheers
Ray
Ken Cox [Microsoft MVP] wrote:
Hi Ray,

It sounds like your merges are touching the file system in a way (or
location) that affects the application's root. Is it possible to do your
merging in a separate application area?

Here's more on restarts:

http://msdn2.microsoft.com/en-us/library/ms178473.aspx

Ken
Microsoft MVP [ASP.NET]
"Application Restarts

Modifying the source code of your Web application will cause ASP.NET to
recompile source files into assemblies. When you modify the top-level items
in your application, all other assemblies in the application that reference
the top-level assemblies are recompiled as well.

In addition, modifying, adding, or deleting certain types of files within
the application's known folders will cause the application to restart. The
following actions will cause an application restart:

Adding, modifying, or deleting assemblies from the application's Bin folder.

Adding, modifying, or deleting localization resources from the
App_GlobalResources or App_LocalResources folders.

Adding, modifying, or deleting the application's Global.asax file.

Adding, modifying, or deleting source code files in the App_Code directory.

Adding, modifying, or deleting Profile configuration.

Adding, modifying, or deleting Web service references in the
App_WebReferences directory.

Adding, modifying, or deleting the application's Web.config file.

When an application restart is required, ASP.NET will serve all pending
requests from the existing application domain and the old assemblies before
restarting the application domain and loading the new assemblies."
"Ray Booysen" <rj***********@rjb.za.net> wrote in message
news:u$**************@TK2MSFTNGP04.phx.gbl...
In our application, we merge documents for our clients. The directory
structure is as follows:

webroot
->bin
->Documents
->Company
-> Company X
-> Company Y
If I create a new folder under Company:

webroot
->bin
->Documents
->Company
-> Company X
-> Company Y
-> New Company

The application immediately restarts. Nothing is in the Event log. What
am I missing?

Kind Regards
Ray Booysen


Jun 23 '06 #4

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

Similar topics

3
by: MisterG | last post by:
Hi, In my code, I rename a folder and then the asp.net application restarts ! So i've lost my session variables ... How is it possible for the application asp.net to restart when you rename a...
5
by: Jim Heavey | last post by:
Hello, I am trying to figure out how to put my application onto the server. I am deploying to a Windows 2000 Server When I bring up Internet Services Manager and navigate to the Default Web...
2
by: James Hunter Ross | last post by:
Friends, We have been experiencing unexpected Application Timeout issues in our ASP 1.1 application. We eventually read-up on aspnet_wp (or w3wp) "recycling" and various related concepts...
4
by: Ray | last post by:
Does anyone out there have experience with using Db2 8.2 with a program called MISys (also known as ACCPAC). I am having some problems with the application running exteremly slow on workstations...
3
by: amolkasbekar | last post by:
Hi All, I have a asp.net application that I am migrating from 1.1 to 2.0. The App runs fine in 1.1. My setup is Winxp with IIS5. However, when I run the app in 2.0, IIS is doing an 'Application...
1
by: Brian Simmons | last post by:
Hi All, I know that if you modify the web.config file or any file in the App_Code subfolder, that ASP.net 2.0 will "restart" the application (i.e. clear out any sessions, etc...). Are there...
5
by: IUnknown | last post by:
Ok, we are all aware of the situation where modifying the folder structure (adding files, folders, deleting files, etc) will result in ASP.NET triggering a recompilation/restart of the application....
0
by: Juan T. Llibre | last post by:
Here's the updated list of file changes which trigger Aplication restarts : 1. Adding, modifying, or deleting any source code file in any application folder ( *.cs, *.vb, etc. ) 2. Adding,...
1
by: Sriram Srivatsan | last post by:
Hi We are trying to build an application where we render some of the .aspx pages from the database using a class derived from System.Web.Hosting.VirtualPathProvider. Users configure the...
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: 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
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...
0
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...
0
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...
0
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...
0
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,...

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.