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

Must I Restart IIS?

While coding .aspx pages and testing them in IE, I sometimes get the error
"Server Error in '/' Application". There is really no error. I have found
that if I restart IIS and reload the same page everything works. My question
is: Is there another way I can cause IIS to re-load whatever has gone bad
without shutting down all web sites with a restart?

I've tried stopping/starting the site, unloading just the offending
application and those methods don't work.

Thanks
Nov 18 '05 #1
5 2238
JPL
Is the Internal Server Error coming from IIS or ASP.Net?
If its from ASP.Net it will be formatted and have pretty
colors and much coolness ;)

I recommend you find out what is causing the server error
instead of just mitigating with a restart.

JPL
-----Original Message-----
While coding .aspx pages and testing them in IE, I sometimes get the error"Server Error in '/' Application". There is really no error. I have foundthat if I restart IIS and reload the same page everything works. My questionis: Is there another way I can cause IIS to re-load whatever has gone badwithout shutting down all web sites with a restart?

I've tried stopping/starting the site, unloading just the offendingapplication and those methods don't work.

Thanks
.

Nov 18 '05 #2
I have encountered the same problem. I don't know what caused it either....
As I am relatively new to ASP.NET, I don't know how to troubleshoot an issue
like this, so I restarted my IIS too. All the sudden I was getting errors
that weren't there before and couldn't find a cause programmatically.
rebooted, errors went away. It's only happened once so far.....

I'll be interested to see what others have found.

Andrea
"Rick Lemons" <ri***@cdldata.com> wrote in message
news:uN**************@TK2MSFTNGP11.phx.gbl...
While coding .aspx pages and testing them in IE, I sometimes get the error
"Server Error in '/' Application". There is really no error. I have found
that if I restart IIS and reload the same page everything works. My question is: Is there another way I can cause IIS to re-load whatever has gone bad
without shutting down all web sites with a restart?

I've tried stopping/starting the site, unloading just the offending
application and those methods don't work.

Thanks

Nov 18 '05 #3

"JPL" <jp*****@hotmail.com> wrote in message
news:02****************************@phx.gbl...
Is the Internal Server Error coming from IIS or ASP.Net?
If its from ASP.Net it will be formatted and have pretty
colors and much coolness ;)

I recommend you find out what is causing the server error
instead of just mitigating with a restart.


Yes, but sometimes finding this error can be very difficult:
I frequently get errors from the asp.net system that first say there is
an error in machine.config (I have *never* changed anything there)
and lower down that the system could not access some dll of my application.
This dll usually has not changed since the last succesful run.
Sometimes a rebuild "fixes" this problem. This seems to me that the
error is not in *my* code but somewhere in the .Net system
or the operating system.

If the rebuild doesn't fix it, then I usually close Studio, kill
aspnet_wp.exe
process and remove all my dll's. Then a complete rebuild and then
it works (usually).

Hans Kesting
Nov 18 '05 #4
It is an ASP.NET error. I get the pretty color page. There is no error to
find out anything about. I've looked and looked and being unable to find
anything I re-started IIS and it goes away. Sometimes I can make a change
that could not possibly cause an error and I get the general error page on
the next load. I simply re-start IIS and reload the same page (with no
change) and it's OK. As a matter of fact, once I get this non-error error, I
can't even load any .aspx pages. Even ones that I haven't touched in days
give the same error page. Once IIS is reloaded, all the pages work again.
It's like things get out of sync or something.

There is no error to fix, I have customErrors mode="On". I think the error
is even before it checks this parameter. Most error give me a description
but not this type.
"JPL" <jp*****@hotmail.com> wrote in message
news:02****************************@phx.gbl...
Is the Internal Server Error coming from IIS or ASP.Net?
If its from ASP.Net it will be formatted and have pretty
colors and much coolness ;)

I recommend you find out what is causing the server error
instead of just mitigating with a restart.

JPL
-----Original Message-----
While coding .aspx pages and testing them in IE, I

sometimes get the error
"Server Error in '/' Application". There is really no

error. I have found
that if I restart IIS and reload the same page everything

works. My question
is: Is there another way I can cause IIS to re-load

whatever has gone bad
without shutting down all web sites with a restart?

I've tried stopping/starting the site, unloading just the

offending
application and those methods don't work.

Thanks
.

Nov 18 '05 #5
Yes. I get that a lot too. Sometimes I have to do a complete rebuild instead
of just building the member I'm working on. When that doesn't work an IIS
restart usually clears it up.
"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:eX**************@TK2MSFTNGP12.phx.gbl...

"JPL" <jp*****@hotmail.com> wrote in message
news:02****************************@phx.gbl...
Is the Internal Server Error coming from IIS or ASP.Net?
If its from ASP.Net it will be formatted and have pretty
colors and much coolness ;)

I recommend you find out what is causing the server error
instead of just mitigating with a restart.

Yes, but sometimes finding this error can be very difficult:
I frequently get errors from the asp.net system that first say there is
an error in machine.config (I have *never* changed anything there)
and lower down that the system could not access some dll of my

application. This dll usually has not changed since the last succesful run.
Sometimes a rebuild "fixes" this problem. This seems to me that the
error is not in *my* code but somewhere in the .Net system
or the operating system.

If the rebuild doesn't fix it, then I usually close Studio, kill
aspnet_wp.exe
process and remove all my dll's. Then a complete rebuild and then
it works (usually).

Hans Kesting

Nov 18 '05 #6

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

Similar topics

0
by: bk | last post by:
hi, i'm using pythonwin 2.2.3 my programm reads and write the outlook-adress book using COM. for this i have to use the makepy utility. after i have run the utiltity everything is fine and i...
1
by: Piotr Trawiński | last post by:
I have this notorious problem: at some point pgsql simply hangs up and requires a restart. --------------------------------------------------------------------------- -------...
18
by: amdishigh | last post by:
We are experiencing the following problems concerning ASP.NET: our ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0 environment, experience frequent session timeout problem....
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...
3
by: John A Grandy | last post by:
In ASP.NET 1.1 and/or 2.0 ..... Is it possible to configure a web-app so that replacement of an .xml file ( physically located under the virtual dir root ) with a newer version of the file...
6
by: Leonardo Curros | last post by:
Hello, I would like to know what's the best way to restart one service. I would like to do it from the service itself. Is this possible? I try it with ServiceController.stop()...
8
by: kenneth fleckenstein nielsen | last post by:
hi guru's I want to restart my webservice when ever it throws an exception that isn't cought. can i do that by web.config or iss or how ??
3
by: MarkusJNZ | last post by:
Hi, I have two different applications running on 2003 both in two different vitrual directories. One application runs on the .NET framework 1.1 whilst the other runs on 2.0. If I change the...
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...
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...
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
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,...
0
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,...
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...

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.