473,382 Members | 1,526 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,382 software developers and data experts.

Application Restart happens for each page

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 rename change notification". I moved the web log
file out of the web folder but still get the same error and the
message. I am not changing any directory names, writing, deleting or
changing any files in the web folder. I have a few aspx pages with the
code behind files in the App_Code folder. This project references other
projects which are in the same solution in VS2005. I am at my wits end
with this now .. Any pointers or guidance is very much appreciated.

Thanx in Advance,
Amol.

Jun 10 '06 #1
3 1885
Do you have a virus scanner running? If so, have you made sure that it is
set not to scan the directories that contain your apps?

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Frontpage

<am**********@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
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 rename change notification". I moved the web log
file out of the web folder but still get the same error and the
message. I am not changing any directory names, writing, deleting or
changing any files in the web folder. I have a few aspx pages with the
code behind files in the App_Code folder. This project references other
projects which are in the same solution in VS2005. I am at my wits end
with this now .. Any pointers or guidance is very much appreciated.

Thanx in Advance,
Amol.

Jun 10 '06 #2

I have turned off the virus scanner too. This is the message I get in
event log from the logging code I have added in Application_End event.

_shutDownMessage=Directory rename change notification for
'C:\CBORD\FMS_2005\UI\NetMenu'.
NetMenu dir change or directory rename
HostingEnvironment caused shutdown

_shutDownStack= at System.Environment.GetStackTrace(Exception e,
Boolean needFileInfo)
at System.Environment.get_StackTrace()
at System.Web.HttpRuntime.ShutdownAppDomain()
at System.Web.Hosting.HostingEnvironment.ShutdownThis AppDomainOnce()
at System.Web.Hosting.HostingEnvironment.InitiateShut downWorkItemC

My web project is of type web site. There is no change to directory
names, no files added or deleted.
Amol.

Mark Fitzpatrick wrote:
Do you have a virus scanner running? If so, have you made sure that it is
set not to scan the directories that contain your apps?

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Frontpage

<am**********@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
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 rename change notification". I moved the web log
file out of the web folder but still get the same error and the
message. I am not changing any directory names, writing, deleting or
changing any files in the web folder. I have a few aspx pages with the
code behind files in the App_Code folder. This project references other
projects which are in the same solution in VS2005. I am at my wits end
with this now .. Any pointers or guidance is very much appreciated.

Thanx in Advance,
Amol.


Jun 11 '06 #3
Hi,

as the msg indicates something is still triggering change notifications e.g
kind of causing that. usually it is changes in content directories or just
creating/deleting them
See: http://blogs.msdn.com/toddca/archive...01/499144.aspx

Are you absolutely sure that nothing is changing anything?

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
<am**********@gmail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...

I have turned off the virus scanner too. This is the message I get in
event log from the logging code I have added in Application_End event.

_shutDownMessage=Directory rename change notification for
'C:\CBORD\FMS_2005\UI\NetMenu'.
NetMenu dir change or directory rename
HostingEnvironment caused shutdown

_shutDownStack= at System.Environment.GetStackTrace(Exception e,
Boolean needFileInfo)
at System.Environment.get_StackTrace()
at System.Web.HttpRuntime.ShutdownAppDomain()
at System.Web.Hosting.HostingEnvironment.ShutdownThis AppDomainOnce()
at System.Web.Hosting.HostingEnvironment.InitiateShut downWorkItemC

My web project is of type web site. There is no change to directory
names, no files added or deleted.
Amol.

Mark Fitzpatrick wrote:
Do you have a virus scanner running? If so, have you made sure that it is
set not to scan the directories that contain your apps?

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Frontpage

<am**********@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
> 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 rename change notification". I moved the web log
> file out of the web folder but still get the same error and the
> message. I am not changing any directory names, writing, deleting or
> changing any files in the web folder. I have a few aspx pages with the
> code behind files in the App_Code folder. This project references other
> projects which are in the same solution in VS2005. I am at my wits end
> with this now .. Any pointers or guidance is very much appreciated.
>
> Thanx in Advance,
> Amol.
>

Jun 12 '06 #4

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

Similar topics

3
by: Matt Calhoon | last post by:
Hi there, I have a webfarm which contains several ii6 web servers. A .net web application is running fine on all servers except one where I will occasionally get the error below; If I restart...
2
by: evangeline | last post by:
We have ASP application running on IIS 5.1 and Windows 2000 server. The ASP application has few Application variables setup in global.asa. Something like this: Application.Lock()...
11
by: Timothy Shih | last post by:
Hi, I am having a freezing issue with my application. My application serves several remotable objects, all of which must be initialized before their use. Furthermore, some of them depend on each...
2
by: Jacek Jurkowski | last post by:
Could anybody help me to write proper code to restart my application? public static void OnRestartRequest() { ... } Restart is needed after exception handled and may occur anytime in...
1
by: Steven Spits | last post by:
Hi group, We have installed our first ASP.NET WebApp on our preproduction server. The site stores some general user information in session variables that are needed in every page. So loosing...
7
by: Greg Collins [MVP] | last post by:
Hi, I couldn't find what I was looking for by searching the newsgroup, but perhaps these have already been discussed somewhere. This is a bit long with a lot of interrelated questions. What I've...
3
by: Pint | last post by:
I would like to know if there is a programatic way to force the Application object to restart. I have a hosted website where I will be unable to control the webserver (eg:iisreset), and I would...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.