Error message I don't understand (newbie Q)

P

Peter Morris

Hi folks, just learning ASP.Net programming in C#, working
my way through some books on the subject. Being a newbie
I'm not certain wether this is a problem with dotNET, IIS
or security, so I'm posting this question to all the relevent groups.

I'm currently working on the Security chapter. I've entered the
example from the book using Windows authentication and
Forms authentication. When I run the programs I get the following
message in my browser:

===========================
Server Application Unavailable
The web application you are attempting to access on this
web server is currently unavailable. Please hit the "Refresh"
button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of
this specific request failure can be found in the application event
log of the web server. Please review this log entry to discover
what caused this error to occur.
============================

I don't understand this error message - WHICH web application
is currently unavailable? The program I've just typed in? But it's
there, how come its not available?

Here's the logging information I get.

#Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port
cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes
cs-bytes time-taken cs-version cs-host cs(User-Agent) cs(Cookie) cs(Referer)

2004-03-19 18:35:45 ******* - W3SVC1 HOME ******* GET
/Simple+Form+Login/Login.aspx - 500 0 846 243 2734 HTTP/1.1 localhost
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322) - -

(I've replaced my IP number with ****** just in case some hacker can use
it to crack my computer, I'm not sure if that's possible but I dont want to
risk it)

I can't see any indication of what the error is. Any ideas?
 
K

Kevin Spencer

Hi Peter,

I can't tell you why you're getting this error, but I can tell you where to
look for an answer, and I can tell you what the "Application" referred to
is. The Application is the ASP.Net worker process that is running. In IIS,
you can configure a virtual directory as an Application. This means that all
ASP.Net pages in or under this folder (that are not in another folder
configured as an Application) run their code in the same Application Domain,
or memory space.

As to what is causing this, I don't know. But here is a link to a bunch of
Knowledge Base articles about the subject:

http://support.microsoft.com/search...&maxResults=150&Titles=false&numDays=&InCC=on

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
K

Ken Schaefer

a) In your IIS Manager (Start -> Settings -> Control Panel -> Admin Tools ->
IIS Manager) you can define "Web Applications". This is the application that
the error is speaking of. By default, each website is a single application,
however you can optionally split parts of a website into separate
applications (so that a single website consists of a number of web
applications)

b) The IIS log file is recording a HTTP status of 500, which indicate
"Internel Server Error" which is consistent with the error message you are
seeing in your browser. IIS has received the request (hence the logged
request), but is unable to service it. IIS is saying that details of the
error have been logged to the Windows Event Log

c) The Windows Event Log is viewed using the Event Viewer. This is located
in the same Admin Tools folder that the IIS Manager is located in. Please
use it to browse the Event Log. If you see any glaring errors (usually
marked a red stop icon), post the event ID, source and description please.

Cheers
Ken

: Hi folks, just learning ASP.Net programming in C#, working
: my way through some books on the subject. Being a newbie
: I'm not certain wether this is a problem with dotNET, IIS
: or security, so I'm posting this question to all the relevent groups.
:
: I'm currently working on the Security chapter. I've entered the
: example from the book using Windows authentication and
: Forms authentication. When I run the programs I get the following
: message in my browser:
:
: ===========================
: Server Application Unavailable
: The web application you are attempting to access on this
: web server is currently unavailable. Please hit the "Refresh"
: button in your web browser to retry your request.
: Administrator Note: An error message detailing the cause of
: this specific request failure can be found in the application event
: log of the web server. Please review this log entry to discover
: what caused this error to occur.
: ============================
:
: I don't understand this error message - WHICH web application
: is currently unavailable? The program I've just typed in? But it's
: there, how come its not available?
:
: Here's the logging information I get.
:
: #Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port
: cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes
: cs-bytes time-taken cs-version cs-host cs(User-Agent) cs(Cookie)
cs(Referer)
:
: 2004-03-19 18:35:45 ******* - W3SVC1 HOME ******* GET
: /Simple+Form+Login/Login.aspx - 500 0 846 243 2734 HTTP/1.1 localhost
: Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322) - -
:
: (I've replaced my IP number with ****** just in case some hacker can use
: it to crack my computer, I'm not sure if that's possible but I dont want
to
: risk it)
:
: I can't see any indication of what the error is. Any ideas?
:
:
 
P

Peter Morris

c) The Windows Event Log is viewed using the Event Viewer. This is located
in the same Admin Tools folder that the IIS Manager is located in. Please
use it to browse the Event Log. If you see any glaring errors (usually
marked a red stop icon), post the event ID, source and description please.

Here are the two errors generated.

Source - .NET Runtime
Category - None
Event - 0
Description:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry information
or message DLL files to display messages from a remote computer. You
may be able to use the /AUXSOURCE= flag to retrieve this description;
see Help and Support for details. The following information is part of the
event: .NET Runtime version 1.1.4322.573- aspnet_wp.exe - Common
Language Runtime Debugging Services: Application has generated an
exception that could not be handled.
Process id=0xa80 (2688), Thread id=0x524 (1316).
Click OK to terminate the application.
Click CANCEL to debug the application..

Source ASP.NET 1.1.4322.0
Category - none
Event - 1000
Description -
aspnet_wp.exe (PID: 2688) stopped unexpectedly.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top