Server Application Unavailable

G

Guest

Running XP Pro, FP 2003, IIS5.1, .NET Framework 1.1.
..aspx pages created in FP 2003 give the above error when I try to test them
in the browser IE6.0
The error log gives the following info:
aspnet_wp.exe could not be started. The error code for the failure is
80004005. This error can be caused when the worker process account has
insufficient rights to read the .NET Framework files. Please ensure that the
..NET Framework is correctly installed and that the ACLs on the installation
directory allow access to the configured account.

ASP pages run OK

Do not have a clue how to fix this.

Bob Fraser
 
H

Harikumar H [MSFT]

Hi Bob,

Check the followin KB articles.

http://support.microsoft.com/default.aspx?scid=kb;en-us;316675
http://support.microsoft.com/default.aspx?scid=kb;en-us;825738

Hope this helps


regards

Hari
MSFT

This posting is provided "as is" with no warranties and confers no rights
--------------------
| Running XP Pro, FP 2003, IIS5.1, .NET Framework 1.1.
| .aspx pages created in FP 2003 give the above error when I try to test
them
| in the browser IE6.0
| The error log gives the following info:
| aspnet_wp.exe could not be started. The error code for the failure is
| 80004005. This error can be caused when the worker process account has
| insufficient rights to read the .NET Framework files. Please ensure that
the
| .NET Framework is correctly installed and that the ACLs on the
installation
| directory allow access to the configured account.
|
| ASP pages run OK
|
| Do not have a clue how to fix this.
|
| Bob Fraser
|
 
J

Jim Cheshire \(JIMCO\)

Bob said:
Running XP Pro, FP 2003, IIS5.1, .NET Framework 1.1.
.aspx pages created in FP 2003 give the above error when I try to
test them in the browser IE6.0
The error log gives the following info:
aspnet_wp.exe could not be started. The error code for the failure is
80004005. This error can be caused when the worker process account has
insufficient rights to read the .NET Framework files. Please ensure
that the .NET Framework is correctly installed and that the ACLs on
the installation directory allow access to the configured account.

ASP pages run OK

Do not have a clue how to fix this.

Bob Fraser

Bob,

This simply means that the ASP.NET worker process (aspnet_wp.exe) couldn't
start for some reason. This could be caused by a permissions problem or a
user rights problem.

The first thing to try would be this:

1. Go to a command prompt.
2. Change into the c:\windows\microsoft.net\framework\v1.1.4322 directory.
3. Run the following command:
aspnet_regiis -u
4. Run the following command:
aspnet_regiis -i

When you do that, it will "reinstall" ASP.NET, but it will also correct any
permissions for the account. If the above doesn't work, delete the ASPNET
account and then complete the above steps again.

--
Jim Cheshire
JIMCO
Charity-ware Add-ins for FrontPage
http://www.jimcoaddins.com

Author of Special Edition Using Microsoft Office FrontPage 2003
 
G

Guest

Thanks for the prompt reply.

Have tried all your suggestions and am now getting the following message
when I try to test a .aspx page:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'c:\inetpub\wwwroot\'. The
directory does not exist or is not accessible because of security settings.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot access
application directory 'c:\inetpub\wwwroot\'. The directory does not exist or
is not accessible because of security settings.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): Server cannot access application directory
'c:\inetpub\wwwroot\'. The directory does not exist or is not accessible
because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +965
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
 
J

Jim Cheshire \(JIMCO\)

Bob said:
Thanks for the prompt reply.

Have tried all your suggestions and am now getting the following
message when I try to test a .aspx page:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'c:\inetpub\wwwroot\'. The
directory does not exist or is not accessible because of security
settings. Description: An unhandled exception occurred during the
execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.

Bob,

Make sure that the process account (ASPNET by default) has the default
permissions to the wwwroot folder. Default permissions would be Read &
Execute, List Folder Contents, and Read.

One thing that will remove these permissions is running a Check Server
Health in FrontPage 2002 Server Extensions and allowing the Server
Extensions to tighten security.

--
Jim Cheshire
JIMCO
Charity-ware Add-ins for FrontPage
http://www.jimcoaddins.com

Author of Special Edition Using Microsoft Office FrontPage 2003
 
G

Guest

Jim

Thanks for your patience.

You were right about the FP permissions.
I think I have fixed them but when I try to test a .aspx page I am being
asked for a login and password.
I have tried logging in as ASPNET with a password ASPNET/aspnet and also
with my machine login and password but get a 401 error.
I am sure this is a stupid question, but if I do logon as ASPNET is there a
default password. When I looked at changing the ASPNET password I was given
all sorts of warnings about the implications of this.
Bob.
 
J

Jim Cheshire \(JIMCO\)

Bob said:
Jim

Thanks for your patience.

You were right about the FP permissions.
I think I have fixed them but when I try to test a .aspx page I am
being asked for a login and password.
I have tried logging in as ASPNET with a password ASPNET/aspnet and
also with my machine login and password but get a 401 error.
I am sure this is a stupid question, but if I do logon as ASPNET is
there a default password. When I looked at changing the ASPNET
password I was given all sorts of warnings about the implications of
this.
Bob.

What is the status code? There are many different 401 errors. Without
knowing which you are seeing, it's impossible to say.

The password for ASPNET is auto-generated. It is a non-interactive account
and you can't log on with it. Something else is wrong.

--
Jim Cheshire
JIMCO
Charity-ware Add-ins for FrontPage
http://www.jimcoaddins.com

Author of Special Edition Using Microsoft Office FrontPage 2003
 
G

Guest

Jim

I thought I was almost there!!

When I try to run .aspx page in the browser the message "website found -
waiting on reply appears" then a user name and password window appears.
If I click Cancel then the following error is displayed:

Server Error in '/' Application
--------------------------------------------------------------------------------

Access is denied.
Description: An error occurred while accessing the resources required to
serve this request. You might not have permission to view the requested
resources.

Error message 401.3: You do not have permission to view this directory or
page using the credentials you supplied (access denied due to ACLs). Ask the
Web server's administrator to give you access to
'c:\inetpub\wwwroot\dynpage.aspx'.


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

If I try more than three successive logons then I get a 401.1 error.

other thoughts:

If I try to create a virtual directory in IIS using the Wizard I get the
choice of inheriting the user rights of the root web. If I answer yes to
this question it tells me that the root web has no access rights set. I
don't know if this is significant.

Once again, thanks for perseveing with me.

Bob
 
J

Jim Cheshire \(JIMCO\)

Bob said:
Jim

I thought I was almost there!!

When I try to run .aspx page in the browser the message "website
found - waiting on reply appears" then a user name and password
window appears.
If I click Cancel then the following error is displayed:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Access is denied.
Description: An error occurred while accessing the resources required
to serve this request. You might not have permission to view the
requested resources.

Error message 401.3: You do not have permission to view this
directory or page using the credentials you supplied (access denied
due to ACLs). Ask the Web server's administrator to give you access to
'c:\inetpub\wwwroot\dynpage.aspx'.


Bob,

Try browsing to an image file, a text file, or an HTML file. Anything
that's not ASP.NET. If that fails as well, you are dealing with a
permissions problem.

--
Jim Cheshire
JIMCO
Charity-ware Add-ins for FrontPage
http://www.jimcoaddins.com

Author of Special Edition Using Microsoft Office FrontPage 2003
 
G

Guest

Jim

..asp and .htm pages work OK.

Is there anything in the Local Security Settings that would force a login
and password?
 
J

Jim Cheshire \(JIMCO\)

Bob said:
Jim

.asp and .htm pages work OK.

Is there anything in the Local Security Settings that would force a
login and password?

In that case, I'll bet it's something in your web.config file that's doing
it. Can you post it?

--
Jim Cheshire
JIMCO
Charity-ware Add-ins for FrontPage
http://www.jimcoaddins.com

Author of Special Edition Using Microsoft Office FrontPage 2003
 
G

Guest

Jim

I am new to IIS and XP Pro.

When I search for the web.config file I get loads of hits. Where exactly is
this file located?

Bob.
 
J

Jim Cheshire \(JIMCO\)

Bob said:
Jim

I am new to IIS and XP Pro.

When I search for the web.config file I get loads of hits. Where
exactly is this file located?

Bob.

Bob,

The one I'm talking about is located in the root of the Web application.

I highly recommend that you educate yourself on this technology. There is a
lot of information available on MSDN on ASP.NET and IIS 6.

--
Jim Cheshire
JIMCO
Charity-ware Add-ins for FrontPage
http://www.jimcoaddins.com

Author of Special Edition Using Microsoft Office FrontPage 2003
 
G

Guest

Hi Jim

I have been doing some research as you suggested. Seems quite a complex
subject but I am beginning to get there.

I think I have got it working!

Noticed that, although the wwwroot folder had aspnet permissions, the .aspx
files in them did not. When I gave one of these aspnet permission through
the Proprties/Security TAG I was able to run it in the browser without the
password problem.

I also used the the IIS control panel to give the default web anonymous
access to ASPNET. It was set at defaultweb/IWAM*** (something or other)
I have since written a .aspx page in FP 2003 and it runs OK. I was
concerned that I would need to give every .aspx page ASPNET permission
individually by accessing the wwwroot folder but new .aspx pages seem to be
OK.

I don't know if I am completely out of the woods with this but at least I
can start learning ASP.NET.

Many thanks for all your help and may I wish you a happy New Year.

Bob.
 
J

Jim Cheshire \(JIMCO\)

Bob said:
Hi Jim

I have been doing some research as you suggested. Seems quite a
complex subject but I am beginning to get there.

I think I have got it working!

Noticed that, although the wwwroot folder had aspnet permissions,
the .aspx files in them did not. When I gave one of these aspnet
permission through the Proprties/Security TAG I was able to run it in
the browser without the password problem.

I also used the the IIS control panel to give the default web
anonymous access to ASPNET. It was set at defaultweb/IWAM***
(something or other)
I have since written a .aspx page in FP 2003 and it runs OK. I was
concerned that I would need to give every .aspx page ASPNET permission
individually by accessing the wwwroot folder but new .aspx pages seem
to be OK.

I don't know if I am completely out of the woods with this but at
least I can start learning ASP.NET.

Many thanks for all your help and may I wish you a happy New Year.

Hi Bob,

I'm glad to help. The ASP.NET technology is among the most exciting for
Internet application developers in many years. It will serve you well to
get up to speed on it. I highly recommend Dino Esposito's book, Programming
Microsoft ASP.NET. It is an excellent book.

You should really leave the anonymous account in IIS configured as
IUSR_<machine_name> unless you have a specific need to set it otherwise.

--
Jim Cheshire
JIMCO
Charity-ware Add-ins for FrontPage
http://www.jimcoaddins.com

Author of Special Edition Using Microsoft Office FrontPage 2003
 

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