473,662 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2141
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]
"Applicatio n 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_GlobalResou rces or App_LocalResour ces 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_WebReferenc es 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$******** ******@TK2MSFTN GP04.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$******** ******@TK2MSFTN GP04.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]
"Applicatio n 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_GlobalResou rces or App_LocalResour ces 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_WebReferenc es 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$******** ******@TK2MSFTN GP04.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
4446
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 folder of the website ??? Thank you. Greg
5
1569
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 site and I right click on the default web site folder, do I choose "New Site" or "New Vitural Directory" I am guessing that I would choose "Virtual Directory", but I was not sure. When I follow thought on Virtual Directory option, when I look at the...
2
1959
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 configuration settings. I did a post here Thursday and a response from "JIMCO Software" gave us clues about "Application Restarts" and an associated PerfMon counter we could use to monitor restarts. After watching the PerfMon counter, it turns out...
4
2452
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 throughout my office. One of the more accessed tables, which only has 3000 rows, take almost 30 seconds to open through their application. MISys insists that it is a db2 tweaking problem and to check my configuration settings. When I select the...
3
1894
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 Restart' for every new aspx page. This is causing application state to be lost. I added code to Application_End method in the Global.ascx.cs to log the application restart to event log and the message I am seeing from IIS process is "Directory...
1
2633
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 any other changes that restart the application? Will modify a code-behind .cs/.vb which calls a class in the App_Code folder restart the application?
5
2631
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. In a nutshell, I understand how this can be considered desireable by some, but I am not one of those people. My situation is that we have a root site (hosted @ http://www.mydomain.com) in the root application folder '/'.
0
1131
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, modifying or deleting global.asax or web.config. 3. Adding, modifying or creating any assemblies in the /bin folder 4. Adding, modifying, or deleting localization resources from the App_GlobalResources or App_LocalResources folders.
1
4610
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 contents of the page at runtime via the web interface and we do a XSLT transformation and store the contents of the .aspx pages in the database. The .aspx pages are hooked to a well known code behind in an assembly that is deployed as a assembly in the...
0
8435
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
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
8857
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8768
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
8547
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
8633
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
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.