473,703 Members | 2,328 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server Unavailable - ASP.NET 2.0 on Windows XP

Hi All!

I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However,
when I tried to view this site on my local Windows XP machine, I get "Server
Unavailable". If I switch the Windows XP IIS back to ASP.NET 1.1 then I get
the Configuration Error (which is understandable because I'm trying to run
an ASP.NET 2 site with 1.1 framework).

I can however view other ASP.NET 1.1 sites on my local Windows XP machine.
It's only the problem with

I've also tried the aspnet_regiis thing as well as setting permissions on
folders as described in this article:
http://support.microsoft.com/default.aspx?kbid=811320
but no solution.

In the event log, I see these three errors every I tried to view my ASP.NET
2.0 site on my local machine...

<errors>

1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly

2.) Failed to execute the request because the ASP.NET process identity does
not have read permissions to the global assembly cache. Error: 0x80131902

3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root

Exception: System.Configur ation.Configura tionErrorsExcep tion

Message: Exception of type
'System.Configu ration.Configur ationErrorsExce ption' was thrown.

</errors>

What could be the problem?!?!?!? Plz, any solutions or pointers to solutions
are much appreciated!!!

Thank you all in advance!!!

Jon
Apr 23 '06 #1
17 5093
If you're running on Windows XP, the account which needs permissions is
MACHINENAME\ASP NET...even if you're allowing anonymous access.

Try granting access permissions to the appropiate account, as outlined above.

If you are still having problems after that, and you're impersonating some account,
save this code as "identity.a spx" and run it :

identity.aspx
========

<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security .Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity .GetCurrent.Nam e()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsI dentity.GetCurr ent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
======

Running that file will tell you which account ASP.NET is running as.
Then, assign the appropiate permissions to that account.

Also, download and run Denis Bauer's ASP.NET Version Switcher,
and make sure that you're actually running 1.1 apps against the
1.1 .Net Framework and 2.0 apps against .Net Framework 2.0.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:uT******** ******@TK2MSFTN GP04.phx.gbl...
Hi All!

I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view
this site on my local Windows XP machine, I get "Server Unavailable". If I switch the Windows XP
IIS back to ASP.NET 1.1 then I get the Configuration Error (which is understandable because I'm
trying to run an ASP.NET 2 site with 1.1 framework).

I can however view other ASP.NET 1.1 sites on my local Windows XP machine. It's only the problem
with

I've also tried the aspnet_regiis thing as well as setting permissions on folders as described in
this article:
http://support.microsoft.com/default.aspx?kbid=811320
but no solution.

In the event log, I see these three errors every I tried to view my ASP.NET 2.0 site on my local
machine...

<errors>

1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly

2.) Failed to execute the request because the ASP.NET process identity does not have read
permissions to the global assembly cache. Error: 0x80131902

3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root

Exception: System.Configur ation.Configura tionErrorsExcep tion

Message: Exception of type 'System.Configu ration.Configur ationErrorsExce ption' was thrown.

</errors>

What could be the problem?!?!?!? Plz, any solutions or pointers to solutions are much
appreciated!!!

Thank you all in advance!!!

Jon

Apr 23 '06 #2
Hi Juan,

Thanks for the reply. I've set permission to all the folders and everything
but still it doesn't work.

I've also tried the "Denis Bauer's ASP.NET Version Switcher" but that
doesn't help either.

Any other ideas?

Cheers,
Jon B

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:u5******** ******@TK2MSFTN GP02.phx.gbl...
If you're running on Windows XP, the account which needs permissions is
MACHINENAME\ASP NET...even if you're allowing anonymous access.

Try granting access permissions to the appropiate account, as outlined
above.

If you are still having problems after that, and you're impersonating some
account,
save this code as "identity.a spx" and run it :

identity.aspx
========

<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security .Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity .GetCurrent.Nam e()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsI dentity.GetCurr ent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
======

Running that file will tell you which account ASP.NET is running as.
Then, assign the appropiate permissions to that account.

Also, download and run Denis Bauer's ASP.NET Version Switcher,
and make sure that you're actually running 1.1 apps against the
1.1 .Net Framework and 2.0 apps against .Net Framework 2.0.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message
news:uT******** ******@TK2MSFTN GP04.phx.gbl...
Hi All!

I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However,
when I tried to view this site on my local Windows XP machine, I get
"Server Unavailable". If I switch the Windows XP IIS back to ASP.NET 1.1
then I get the Configuration Error (which is understandable because I'm
trying to run an ASP.NET 2 site with 1.1 framework).

I can however view other ASP.NET 1.1 sites on my local Windows XP
machine. It's only the problem with

I've also tried the aspnet_regiis thing as well as setting permissions on
folders as described in this article:
http://support.microsoft.com/default.aspx?kbid=811320
but no solution.

In the event log, I see these three errors every I tried to view my
ASP.NET 2.0 site on my local machine...

<errors>

1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly

2.) Failed to execute the request because the ASP.NET process identity
does not have read permissions to the global assembly cache. Error:
0x80131902

3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root

Exception: System.Configur ation.Configura tionErrorsExcep tion

Message: Exception of type
'System.Configu ration.Configur ationErrorsExce ption' was thrown.

</errors>

What could be the problem?!?!?!? Plz, any solutions or pointers to
solutions are much appreciated!!!

Thank you all in advance!!!

Jon


Apr 25 '06 #3
Are you still getting this error ?
2.) Failed to execute the request because the ASP.NET process identity does not have read
permissions to the global assembly cache. Error: 0x80131902

Did you run "identity.aspx" , which I provided for you ?
Which user account was returned by it ?

How did you run the example command provided by the KB ?

cacls %windir%\assemb ly /e /t /p domain\useracco unt:R

?

Have you read this article :
http://msdn.microsoft.com/library/de...aght000009.asp

?

Please review the steps in it, for creating a service account for an ASP.NET 2.0 application,
and make sure that the account retrned by "identity.a spx" has all the permissions
listed in that article.

In particular, make sure you run the following aspnet_regiis command :

aspnet_regiis -ga MachineName\Acc ountName

where "MachineName\Ac countName" is the account returned by "identity.aspx" .

Then post back your results.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:uA******** ******@TK2MSFTN GP03.phx.gbl... Hi Juan,

Thanks for the reply. I've set permission to all the folders and everything but still it doesn't
work.

I've also tried the "Denis Bauer's ASP.NET Version Switcher" but that doesn't help either.

Any other ideas?

Cheers,
Jon B

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:u5******** ******@TK2MSFTN GP02.phx.gbl...
If you're running on Windows XP, the account which needs permissions is
MACHINENAME\ASP NET...even if you're allowing anonymous access.

Try granting access permissions to the appropiate account, as outlined above.

If you are still having problems after that, and you're impersonating some account,
save this code as "identity.a spx" and run it :

identity.aspx
========

<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security .Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity .GetCurrent.Nam e()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsI dentity.GetCurr ent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
======

Running that file will tell you which account ASP.NET is running as.
Then, assign the appropiate permissions to that account.

Also, download and run Denis Bauer's ASP.NET Version Switcher,
and make sure that you're actually running 1.1 apps against the
1.1 .Net Framework and 2.0 apps against .Net Framework 2.0.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:uT******** ******@TK2MSFTN GP04.phx.gbl...
Hi All!

I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view
this site on my local Windows XP machine, I get "Server Unavailable". If I switch the Windows XP
IIS back to ASP.NET 1.1 then I get the Configuration Error (which is understandable because I'm
trying to run an ASP.NET 2 site with 1.1 framework).

I can however view other ASP.NET 1.1 sites on my local Windows XP machine. It's only the problem
with

I've also tried the aspnet_regiis thing as well as setting permissions on folders as described
in this article:
http://support.microsoft.com/default.aspx?kbid=811320
but no solution.

In the event log, I see these three errors every I tried to view my ASP.NET 2.0 site on my local
machine...

<errors>

1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly

2.) Failed to execute the request because the ASP.NET process identity does not have read
permissions to the global assembly cache. Error: 0x80131902

3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root

Exception: System.Configur ation.Configura tionErrorsExcep tion

Message: Exception of type 'System.Configu ration.Configur ationErrorsExce ption' was thrown.

</errors>

What could be the problem?!?!?!? Plz, any solutions or pointers to solutions are much
appreciated!!!

Thank you all in advance!!!

Jon


Apr 25 '06 #4
Hi Juan,

The thing is, I cannot execute any ASP.NET pages. Even your Identity.aspx
page. I keep on getting the "Server Unavailable" error. That is of course,
in ASP.NET 2. However, when I tried with ASP.NET 1.1, I get...

HOME-WKSTATION\ASPNE T

I ran the examples in KBs ***exactly*** the way it presented (with the
substitue of the variables of course).

And btw, I'm using IIS5 with WinXP not IIS6 (just telling because of the
article you've provided me was about ASP.NET 2.0 with IIS6).

Another interesting thing is when I tried to do aspnet_regiis -ga
HOME-WKSTATION\ASPNE T under v2.0.50215 folder (as described in the article),
I get "Invalid Command" and a list of switches that aspnet_regiis accepts,
which does not contains a 'ga' switch.

Plz help...

Henry

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eF******** ******@TK2MSFTN GP02.phx.gbl...
Are you still getting this error ?
2.) Failed to execute the request because the ASP.NET process identity
does not have read
permissions to the global assembly cache. Error: 0x80131902


Did you run "identity.aspx" , which I provided for you ?
Which user account was returned by it ?

How did you run the example command provided by the KB ?

cacls %windir%\assemb ly /e /t /p domain\useracco unt:R

?

Have you read this article :
http://msdn.microsoft.com/library/de...aght000009.asp

?

Please review the steps in it, for creating a service account for an
ASP.NET 2.0 application,
and make sure that the account retrned by "identity.a spx" has all the
permissions
listed in that article.

In particular, make sure you run the following aspnet_regiis command :

aspnet_regiis -ga MachineName\Acc ountName

where "MachineName\Ac countName" is the account returned by
"identity.aspx" .

Then post back your results.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message
news:uA******** ******@TK2MSFTN GP03.phx.gbl...
Hi Juan,

Thanks for the reply. I've set permission to all the folders and
everything but still it doesn't
work.

I've also tried the "Denis Bauer's ASP.NET Version Switcher" but that
doesn't help either.

Any other ideas?

Cheers,
Jon B

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:u5******** ******@TK2MSFTN GP02.phx.gbl...
If you're running on Windows XP, the account which needs permissions is
MACHINENAME\ASP NET...even if you're allowing anonymous access.

Try granting access permissions to the appropiate account, as outlined
above.

If you are still having problems after that, and you're impersonating
some account,
save this code as "identity.a spx" and run it :

identity.aspx
========

<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security .Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity .GetCurrent.Nam e()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsI dentity.GetCurr ent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
======

Running that file will tell you which account ASP.NET is running as.
Then, assign the appropiate permissions to that account.

Also, download and run Denis Bauer's ASP.NET Version Switcher,
and make sure that you're actually running 1.1 apps against the
1.1 .Net Framework and 2.0 apps against .Net Framework 2.0.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message
news:uT******** ******@TK2MSFTN GP04.phx.gbl...
Hi All!

I have a ASP.NET 2.0 site that works on the Windows 2000 Server.
However, when I tried to view
this site on my local Windows XP machine, I get "Server Unavailable".
If I switch the Windows XP
IIS back to ASP.NET 1.1 then I get the Configuration Error (which is
understandable because I'm
trying to run an ASP.NET 2 site with 1.1 framework).

I can however view other ASP.NET 1.1 sites on my local Windows XP
machine. It's only the problem
with

I've also tried the aspnet_regiis thing as well as setting permissions
on folders as described
in this article:
http://support.microsoft.com/default.aspx?kbid=811320
but no solution.

In the event log, I see these three errors every I tried to view my
ASP.NET 2.0 site on my local
machine...

<errors>

1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly

2.) Failed to execute the request because the ASP.NET process identity
does not have read
permissions to the global assembly cache. Error: 0x80131902

3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root

Exception: System.Configur ation.Configura tionErrorsExcep tion

Message: Exception of type
'System.Configu ration.Configur ationErrorsExce ption' was thrown.

</errors>

What could be the problem?!?!?!? Plz, any solutions or pointers to
solutions are much
appreciated!!!

Thank you all in advance!!!

Jon


Apr 29 '06 #5
Hi, Jon.

re:
Another interesting thing is when I tried to do aspnet_regiis -ga HOME-WKSTATION\ASPNE T under
v2.0.50215 folder (as described in the article), I get "Invalid Command"
....there's your problem.

v2.0.50215 is the beta 2 version of the .Net Framework...whi ch has many bugs.
The -ga command isn't a part of that beta version.

The released version of the .Net Framework is v2.0.50727.42

Uninstall that beta version and download/install -at least- the 2.0 redistributable :
http://www.microsoft.com/downloads/d...displaylang=en

You might want to -instead- download/install the full SDK from :
http://www.microsoft.com/downloads/d...displaylang=en

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:Oj******** ******@TK2MSFTN GP04.phx.gbl... Hi Juan,

The thing is, I cannot execute any ASP.NET pages. Even your Identity.aspx page. I keep on getting
the "Server Unavailable" error. That is of course, in ASP.NET 2. However, when I tried with
ASP.NET 1.1, I get...

HOME-WKSTATION\ASPNE T

I ran the examples in KBs ***exactly*** the way it presented (with the substitue of the variables
of course).

And btw, I'm using IIS5 with WinXP not IIS6 (just telling because of the article you've provided
me was about ASP.NET 2.0 with IIS6).

Another interesting thing is when I tried to do aspnet_regiis -ga HOME-WKSTATION\ASPNE T under
v2.0.50215 folder (as described in the article), I get "Invalid Command" and a list of switches
that aspnet_regiis accepts, which does not contains a 'ga' switch.

Plz help...

Henry "Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eF******** ******@TK2MSFTN GP02.phx.gbl...
Are you still getting this error ?
2.) Failed to execute the request because the ASP.NET process identity does not have read
permissions to the global assembly cache. Error: 0x80131902


Did you run "identity.aspx" , which I provided for you ?
Which user account was returned by it ?

How did you run the example command provided by the KB ?

cacls %windir%\assemb ly /e /t /p domain\useracco unt:R

?

Have you read this article :
http://msdn.microsoft.com/library/de...aght000009.asp

?

Please review the steps in it, for creating a service account for an ASP.NET 2.0 application,
and make sure that the account retrned by "identity.a spx" has all the permissions
listed in that article.

In particular, make sure you run the following aspnet_regiis command :

aspnet_regiis -ga MachineName\Acc ountName

where "MachineName\Ac countName" is the account returned by "identity.aspx" .

Then post back your results.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:uA******** ******@TK2MSFTN GP03.phx.gbl...
Hi Juan,

Thanks for the reply. I've set permission to all the folders and everything but still it doesn't
work.

I've also tried the "Denis Bauer's ASP.NET Version Switcher" but that doesn't help either.

Any other ideas?

Cheers,
Jon B

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:u5******** ******@TK2MSFTN GP02.phx.gbl...
If you're running on Windows XP, the account which needs permissions is
MACHINENAME\ASP NET...even if you're allowing anonymous access.

Try granting access permissions to the appropiate account, as outlined above.

If you are still having problems after that, and you're impersonating some account,
save this code as "identity.a spx" and run it :

identity.aspx
========

<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security .Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity .GetCurrent.Nam e()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsI dentity.GetCurr ent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
======

Running that file will tell you which account ASP.NET is running as.
Then, assign the appropiate permissions to that account.

Also, download and run Denis Bauer's ASP.NET Version Switcher,
and make sure that you're actually running 1.1 apps against the
1.1 .Net Framework and 2.0 apps against .Net Framework 2.0.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:uT******** ******@TK2MSFTN GP04.phx.gbl...
> Hi All!
>
> I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view
> this site on my local Windows XP machine, I get "Server Unavailable". If I switch the Windows
> XP
> IIS back to ASP.NET 1.1 then I get the Configuration Error (which is understandable because
> I'm
> trying to run an ASP.NET 2 site with 1.1 framework).
>
> I can however view other ASP.NET 1.1 sites on my local Windows XP machine. It's only the
> problem
> with
>
> I've also tried the aspnet_regiis thing as well as setting permissions on folders as described
> in this article:
> http://support.microsoft.com/default.aspx?kbid=811320
> but no solution.
>
> In the event log, I see these three errors every I tried to view my ASP.NET 2.0 site on my
> local
> machine...
>
> <errors>
>
> 1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly
>
> 2.) Failed to execute the request because the ASP.NET process identity does not have read
> permissions to the global assembly cache. Error: 0x80131902
>
> 3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root
>
> Exception: System.Configur ation.Configura tionErrorsExcep tion
>
> Message: Exception of type 'System.Configu ration.Configur ationErrorsExce ption' was thrown.
>
> </errors>
>
> What could be the problem?!?!?!? Plz, any solutions or pointers to solutions are much
> appreciated!!!
>
> Thank you all in advance!!!
>
> Jon



Apr 29 '06 #6
Hi Juan,

Thanks for the reply. I have the latest version in following folder...

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727

So I switched to that directory in Command Prompt and tried the following...

aspnet_regiis -ga HOME-WKSTATION\ASPNE T

Command worked. However, I'm still getting the "Server Unavailable" error...

Thanks again.

Jon

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eW******** ******@TK2MSFTN GP05.phx.gbl...
Hi, Jon.

re:
Another interesting thing is when I tried to do aspnet_regiis -ga
HOME-WKSTATION\ASPNE T under v2.0.50215 folder (as described in the
article), I get "Invalid Command"


...there's your problem.

v2.0.50215 is the beta 2 version of the .Net Framework...whi ch has many
bugs.
The -ga command isn't a part of that beta version.

The released version of the .Net Framework is v2.0.50727.42

Uninstall that beta version and download/install -at least- the 2.0
redistributable :
http://www.microsoft.com/downloads/d...displaylang=en

You might want to -instead- download/install the full SDK from :
http://www.microsoft.com/downloads/d...displaylang=en

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message
news:Oj******** ******@TK2MSFTN GP04.phx.gbl...
Hi Juan,

The thing is, I cannot execute any ASP.NET pages. Even your Identity.aspx
page. I keep on getting the "Server Unavailable" error. That is of
course, in ASP.NET 2. However, when I tried with ASP.NET 1.1, I get...

HOME-WKSTATION\ASPNE T

I ran the examples in KBs ***exactly*** the way it presented (with the
substitue of the variables of course).

And btw, I'm using IIS5 with WinXP not IIS6 (just telling because of the
article you've provided me was about ASP.NET 2.0 with IIS6).

Another interesting thing is when I tried to do aspnet_regiis -ga
HOME-WKSTATION\ASPNE T under v2.0.50215 folder (as described in the
article), I get "Invalid Command" and a list of switches that
aspnet_regiis accepts, which does not contains a 'ga' switch.

Plz help...

Henry

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eF******** ******@TK2MSFTN GP02.phx.gbl...
Are you still getting this error ?

> 2.) Failed to execute the request because the ASP.NET process
> identity does not have read
> permissions to the global assembly cache. Error: 0x80131902

Did you run "identity.aspx" , which I provided for you ?
Which user account was returned by it ?

How did you run the example command provided by the KB ?

cacls %windir%\assemb ly /e /t /p domain\useracco unt:R

?

Have you read this article :
http://msdn.microsoft.com/library/de...aght000009.asp

?

Please review the steps in it, for creating a service account for an
ASP.NET 2.0 application,
and make sure that the account retrned by "identity.a spx" has all the
permissions
listed in that article.

In particular, make sure you run the following aspnet_regiis command :

aspnet_regiis -ga MachineName\Acc ountName

where "MachineName\Ac countName" is the account returned by
"identity.aspx" .

Then post back your results.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message
news:uA******** ******@TK2MSFTN GP03.phx.gbl...
Hi Juan,

Thanks for the reply. I've set permission to all the folders and
everything but still it doesn't
work.

I've also tried the "Denis Bauer's ASP.NET Version Switcher" but that
doesn't help either.

Any other ideas?

Cheers,
Jon B

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:u5******** ******@TK2MSFTN GP02.phx.gbl...
> If you're running on Windows XP, the account which needs permissions
> is
> MACHINENAME\ASP NET...even if you're allowing anonymous access.
>
> Try granting access permissions to the appropiate account, as outlined
> above.
>
> If you are still having problems after that, and you're impersonating
> some account,
> save this code as "identity.a spx" and run it :
>
> identity.aspx
> ========
>
> <%@ Page Language="VB" %>
> <%@ Import NameSpace = System.Security .Principal %>
> <script runat="server">
> Sub Page_Load()
> Dim tmp As String = WindowsIdentity .GetCurrent.Nam e()
> Label1.Text = tmp
> End Sub
> </script>
> <html>
> <head>
> <title>WindowsI dentity.GetCurr ent.Name()</title>
> </head>
> <body>
> <form id="form1" runat="server">
> <div>
> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
> </div>
> </form>
> </body>
> </html>
> ======
>
> Running that file will tell you which account ASP.NET is running as.
> Then, assign the appropiate permissions to that account.
>
> Also, download and run Denis Bauer's ASP.NET Version Switcher,
> and make sure that you're actually running 1.1 apps against the
> 1.1 .Net Framework and 2.0 apps against .Net Framework 2.0.
>
> http://www.denisbauer.com/NETTools/A...nSwitcher.aspx
>
>
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en español : http://asp.net.do/foros/
> =============== =============== =====
> "Jon B" <no*****@sorry. sorry> wrote in message
> news:uT******** ******@TK2MSFTN GP04.phx.gbl...
>> Hi All!
>>
>> I have a ASP.NET 2.0 site that works on the Windows 2000 Server.
>> However, when I tried to view
>> this site on my local Windows XP machine, I get "Server Unavailable".
>> If I switch the Windows XP
>> IIS back to ASP.NET 1.1 then I get the Configuration Error (which is
>> understandable because I'm
>> trying to run an ASP.NET 2 site with 1.1 framework).
>>
>> I can however view other ASP.NET 1.1 sites on my local Windows XP
>> machine. It's only the problem
>> with
>>
>> I've also tried the aspnet_regiis thing as well as setting
>> permissions on folders as described
>> in this article:
>> http://support.microsoft.com/default.aspx?kbid=811320
>> but no solution.
>>
>> In the event log, I see these three errors every I tried to view my
>> ASP.NET 2.0 site on my local
>> machine...
>>
>> <errors>
>>
>> 1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly
>>
>> 2.) Failed to execute the request because the ASP.NET process
>> identity does not have read
>> permissions to the global assembly cache. Error: 0x80131902
>>
>> 3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root
>>
>> Exception: System.Configur ation.Configura tionErrorsExcep tion
>>
>> Message: Exception of type
>> 'System.Configu ration.Configur ationErrorsExce ption' was thrown.
>>
>> </errors>
>>
>> What could be the problem?!?!?!? Plz, any solutions or pointers to
>> solutions are much
>> appreciated!!!
>>
>> Thank you all in advance!!!
>>
>> Jon



Apr 29 '06 #7
re;
Command worked. However, I'm still getting the "Server Unavailable" error...
OK...

re: And btw, I'm using IIS5 with WinXP not IIS6 (just telling because of the article you've provided
me was about ASP.NET 2.0 with IIS6).
Nevertheless, the article is valid for IIS 5.1 ( which is what you're running, not 5.0 )
and ASP.NET 2.0, as long as you disregard the Application Pool info.

Please review the permissions outlined in this article.
They were written for ASP.NET 1.1, but they are just as valid for ASP.NET 2.0:

http://msdn.microsoft.com/library/de...secnetht01.asp

Make sure that the HOME-WKSTATION\ASPNE T account has been assigned NTFS
permissions to all the directories listed in the chart, making sure, of course, that the proper
directory ( \WINDOWS\Micros oft.NET\Framewo rk\v2.0.50727 ) is checked.

Make sure you read the instructions in the "Comments" column.
*All* the directories listed in the left-most column need the correct NTFS permissions applied.

When you're done doing that, test and post your results.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:uf******** ******@TK2MSFTN GP02.phx.gbl... Hi Juan,

Thanks for the reply. I have the latest version in following folder...

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727

So I switched to that directory in Command Prompt and tried the following...

aspnet_regiis -ga HOME-WKSTATION\ASPNE T

Command worked. However, I'm still getting the "Server Unavailable" error...

Thanks again.

Jon

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eW******** ******@TK2MSFTN GP05.phx.gbl...
Hi, Jon.

re:
Another interesting thing is when I tried to do aspnet_regiis -ga HOME-WKSTATION\ASPNE T under
v2.0.50215 folder (as described in the article), I get "Invalid Command"


...there's your problem.

v2.0.50215 is the beta 2 version of the .Net Framework...whi ch has many bugs.
The -ga command isn't a part of that beta version.

The released version of the .Net Framework is v2.0.50727.42

Uninstall that beta version and download/install -at least- the 2.0 redistributable :
http://www.microsoft.com/downloads/d...displaylang=en

You might want to -instead- download/install the full SDK from :
http://www.microsoft.com/downloads/d...displaylang=en

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:Oj******** ******@TK2MSFTN GP04.phx.gbl...
Hi Juan,

The thing is, I cannot execute any ASP.NET pages. Even your Identity.aspx page. I keep on
getting the "Server Unavailable" error. That is of course, in ASP.NET 2. However, when I tried
with ASP.NET 1.1, I get...

HOME-WKSTATION\ASPNE T

I ran the examples in KBs ***exactly*** the way it presented (with the substitue of the
variables of course).

And btw, I'm using IIS5 with WinXP not IIS6 (just telling because of the article you've provided
me was about ASP.NET 2.0 with IIS6).

Another interesting thing is when I tried to do aspnet_regiis -ga HOME-WKSTATION\ASPNE T under
v2.0.50215 folder (as described in the article), I get "Invalid Command" and a list of switches
that aspnet_regiis accepts, which does not contains a 'ga' switch.

Plz help...

Henry

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eF******** ******@TK2MSFTN GP02.phx.gbl...
Are you still getting this error ?

>> 2.) Failed to execute the request because the ASP.NET process identity does not have read
>> permissions to the global assembly cache. Error: 0x80131902

Did you run "identity.aspx" , which I provided for you ?
Which user account was returned by it ?

How did you run the example command provided by the KB ?

cacls %windir%\assemb ly /e /t /p domain\useracco unt:R

?

Have you read this article :
http://msdn.microsoft.com/library/de...aght000009.asp

?

Please review the steps in it, for creating a service account for an ASP.NET 2.0 application,
and make sure that the account retrned by "identity.a spx" has all the permissions
listed in that article.

In particular, make sure you run the following aspnet_regiis command :

aspnet_regiis -ga MachineName\Acc ountName

where "MachineName\Ac countName" is the account returned by "identity.aspx" .

Then post back your results.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:uA******** ******@TK2MSFTN GP03.phx.gbl...
> Hi Juan,
>
> Thanks for the reply. I've set permission to all the folders and everything but still it
> doesn't
> work.
>
> I've also tried the "Denis Bauer's ASP.NET Version Switcher" but that doesn't help either.
>
> Any other ideas?
>
> Cheers,
> Jon B
>
> "Juan T. Llibre" <no***********@ nowhere.com> wrote in message
> news:u5******** ******@TK2MSFTN GP02.phx.gbl...
>> If you're running on Windows XP, the account which needs permissions is
>> MACHINENAME\ASP NET...even if you're allowing anonymous access.
>>
>> Try granting access permissions to the appropiate account, as outlined above.
>>
>> If you are still having problems after that, and you're impersonating some account,
>> save this code as "identity.a spx" and run it :
>>
>> identity.aspx
>> ========
>>
>> <%@ Page Language="VB" %>
>> <%@ Import NameSpace = System.Security .Principal %>
>> <script runat="server">
>> Sub Page_Load()
>> Dim tmp As String = WindowsIdentity .GetCurrent.Nam e()
>> Label1.Text = tmp
>> End Sub
>> </script>
>> <html>
>> <head>
>> <title>WindowsI dentity.GetCurr ent.Name()</title>
>> </head>
>> <body>
>> <form id="form1" runat="server">
>> <div>
>> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
>> </div>
>> </form>
>> </body>
>> </html>
>> ======
>>
>> Running that file will tell you which account ASP.NET is running as.
>> Then, assign the appropiate permissions to that account.
>>
>> Also, download and run Denis Bauer's ASP.NET Version Switcher,
>> and make sure that you're actually running 1.1 apps against the
>> 1.1 .Net Framework and 2.0 apps against .Net Framework 2.0.
>>
>> http://www.denisbauer.com/NETTools/A...nSwitcher.aspx
>>
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> =============== =============== =====
>> "Jon B" <no*****@sorry. sorry> wrote in message news:uT******** ******@TK2MSFTN GP04.phx.gbl...
>>> Hi All!
>>>
>>> I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to
>>> view
>>> this site on my local Windows XP machine, I get "Server Unavailable". If I switch the
>>> Windows XP
>>> IIS back to ASP.NET 1.1 then I get the Configuration Error (which is understandable because
>>> I'm
>>> trying to run an ASP.NET 2 site with 1.1 framework).
>>>
>>> I can however view other ASP.NET 1.1 sites on my local Windows XP machine. It's only the
>>> problem
>>> with
>>>
>>> I've also tried the aspnet_regiis thing as well as setting permissions on folders as
>>> described
>>> in this article:
>>> http://support.microsoft.com/default.aspx?kbid=811320
>>> but no solution.
>>>
>>> In the event log, I see these three errors every I tried to view my ASP.NET 2.0 site on my
>>> local
>>> machine...
>>>
>>> <errors>
>>>
>>> 1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly
>>>
>>> 2.) Failed to execute the request because the ASP.NET process identity does not have read
>>> permissions to the global assembly cache. Error: 0x80131902
>>>
>>> 3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root
>>>
>>> Exception: System.Configur ation.Configura tionErrorsExcep tion
>>>
>>> Message: Exception of type 'System.Configu ration.Configur ationErrorsExce ption' was thrown.
>>>
>>> </errors>
>>>
>>> What could be the problem?!?!?!? Plz, any solutions or pointers to solutions are much
>>> appreciated!!!
>>>
>>> Thank you all in advance!!!
>>>
>>> Jon




Apr 29 '06 #8
One more thing...

Is the error message "Server Application Unavailable" or is it "Server Unavailable" ?

Could you look in the event log, and see what additional info is
there about your "Server Application Unavailable" error message ?

Look in "Start Menu", "Programs", "Administra tive Tools", "Event Viewer".
You should be able to find the specific error in the Application log.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
re;
Command worked. However, I'm still getting the "Server Unavailable" error...


OK...

re:
And btw, I'm using IIS5 with WinXP not IIS6 (just telling because of the article you've provided
me was about ASP.NET 2.0 with IIS6).


Nevertheless, the article is valid for IIS 5.1 ( which is what you're running, not 5.0 )
and ASP.NET 2.0, as long as you disregard the Application Pool info.

Please review the permissions outlined in this article.
They were written for ASP.NET 1.1, but they are just as valid for ASP.NET 2.0:

http://msdn.microsoft.com/library/de...secnetht01.asp

Make sure that the HOME-WKSTATION\ASPNE T account has been assigned NTFS
permissions to all the directories listed in the chart, making sure, of course, that the proper
directory ( \WINDOWS\Micros oft.NET\Framewo rk\v2.0.50727 ) is checked.

Make sure you read the instructions in the "Comments" column.
*All* the directories listed in the left-most column need the correct NTFS permissions applied.

When you're done doing that, test and post your results.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:uf******** ******@TK2MSFTN GP02.phx.gbl...
Hi Juan,

Thanks for the reply. I have the latest version in following folder...

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727

So I switched to that directory in Command Prompt and tried the following...

aspnet_regiis -ga HOME-WKSTATION\ASPNE T

Command worked. However, I'm still getting the "Server Unavailable" error...

Thanks again.

Jon

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eW******** ******@TK2MSFTN GP05.phx.gbl...
Hi, Jon.

re:
Another interesting thing is when I tried to do aspnet_regiis -ga HOME-WKSTATION\ASPNE T under
v2.0.50215 folder (as described in the article), I get "Invalid Command"

...there's your problem.

v2.0.50215 is the beta 2 version of the .Net Framework...whi ch has many bugs.
The -ga command isn't a part of that beta version.

The released version of the .Net Framework is v2.0.50727.42

Uninstall that beta version and download/install -at least- the 2.0 redistributable :
http://www.microsoft.com/downloads/d...displaylang=en

You might want to -instead- download/install the full SDK from :
http://www.microsoft.com/downloads/d...displaylang=en

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message news:Oj******** ******@TK2MSFTN GP04.phx.gbl...
Hi Juan,

The thing is, I cannot execute any ASP.NET pages. Even your Identity.aspx page. I keep on
getting the "Server Unavailable" error. That is of course, in ASP.NET 2. However, when I tried
with ASP.NET 1.1, I get...

HOME-WKSTATION\ASPNE T

I ran the examples in KBs ***exactly*** the way it presented (with the substitue of the
variables of course).

And btw, I'm using IIS5 with WinXP not IIS6 (just telling because of the article you've
provided me was about ASP.NET 2.0 with IIS6).

Another interesting thing is when I tried to do aspnet_regiis -ga HOME-WKSTATION\ASPNE T under
v2.0.50215 folder (as described in the article), I get "Invalid Command" and a list of switches
that aspnet_regiis accepts, which does not contains a 'ga' switch.

Plz help...

Henry

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eF******** ******@TK2MSFTN GP02.phx.gbl...
> Are you still getting this error ?
>
>>> 2.) Failed to execute the request because the ASP.NET process identity does not have read
>>> permissions to the global assembly cache. Error: 0x80131902
>
> Did you run "identity.aspx" , which I provided for you ?
> Which user account was returned by it ?
>
> How did you run the example command provided by the KB ?
>
> cacls %windir%\assemb ly /e /t /p domain\useracco unt:R
>
> ?
>
> Have you read this article :
> http://msdn.microsoft.com/library/de...aght000009.asp
>
> ?
>
> Please review the steps in it, for creating a service account for an ASP.NET 2.0 application,
> and make sure that the account retrned by "identity.a spx" has all the permissions
> listed in that article.
>
> In particular, make sure you run the following aspnet_regiis command :
>
> aspnet_regiis -ga MachineName\Acc ountName
>
> where "MachineName\Ac countName" is the account returned by "identity.aspx" .
>
> Then post back your results.
>
>
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en español : http://asp.net.do/foros/
> =============== =============== =====
> "Jon B" <no*****@sorry. sorry> wrote in message news:uA******** ******@TK2MSFTN GP03.phx.gbl...
>> Hi Juan,
>>
>> Thanks for the reply. I've set permission to all the folders and everything but still it
>> doesn't
>> work.
>>
>> I've also tried the "Denis Bauer's ASP.NET Version Switcher" but that doesn't help either.
>>
>> Any other ideas?
>>
>> Cheers,
>> Jon B
>>
>> "Juan T. Llibre" <no***********@ nowhere.com> wrote in message
>> news:u5******** ******@TK2MSFTN GP02.phx.gbl...
>>> If you're running on Windows XP, the account which needs permissions is
>>> MACHINENAME\ASP NET...even if you're allowing anonymous access.
>>>
>>> Try granting access permissions to the appropiate account, as outlined above.
>>>
>>> If you are still having problems after that, and you're impersonating some account,
>>> save this code as "identity.a spx" and run it :
>>>
>>> identity.aspx
>>> ========
>>>
>>> <%@ Page Language="VB" %>
>>> <%@ Import NameSpace = System.Security .Principal %>
>>> <script runat="server">
>>> Sub Page_Load()
>>> Dim tmp As String = WindowsIdentity .GetCurrent.Nam e()
>>> Label1.Text = tmp
>>> End Sub
>>> </script>
>>> <html>
>>> <head>
>>> <title>WindowsI dentity.GetCurr ent.Name()</title>
>>> </head>
>>> <body>
>>> <form id="form1" runat="server">
>>> <div>
>>> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
>>> </div>
>>> </form>
>>> </body>
>>> </html>
>>> ======
>>>
>>> Running that file will tell you which account ASP.NET is running as.
>>> Then, assign the appropiate permissions to that account.
>>>
>>> Also, download and run Denis Bauer's ASP.NET Version Switcher,
>>> and make sure that you're actually running 1.1 apps against the
>>> 1.1 .Net Framework and 2.0 apps against .Net Framework 2.0.
>>>
>>> http://www.denisbauer.com/NETTools/A...nSwitcher.aspx
>>>
>>>
>>>
>>>
>>> Juan T. Llibre, asp.net MVP
>>> aspnetfaq.com : http://www.aspnetfaq.com/
>>> asp.net faq : http://asp.net.do/faq/
>>> foros de asp.net, en español : http://asp.net.do/foros/
>>> =============== =============== =====
>>> "Jon B" <no*****@sorry. sorry> wrote in message news:uT******** ******@TK2MSFTN GP04.phx.gbl...
>>>> Hi All!
>>>>
>>>> I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to
>>>> view
>>>> this site on my local Windows XP machine, I get "Server Unavailable". If I switch the
>>>> Windows XP
>>>> IIS back to ASP.NET 1.1 then I get the Configuration Error (which is understandable because
>>>> I'm
>>>> trying to run an ASP.NET 2 site with 1.1 framework).
>>>>
>>>> I can however view other ASP.NET 1.1 sites on my local Windows XP machine. It's only the
>>>> problem
>>>> with
>>>>
>>>> I've also tried the aspnet_regiis thing as well as setting permissions on folders as
>>>> described
>>>> in this article:
>>>> http://support.microsoft.com/default.aspx?kbid=811320
>>>> but no solution.
>>>>
>>>> In the event log, I see these three errors every I tried to view my ASP.NET 2.0 site on my
>>>> local
>>>> machine...
>>>>
>>>> <errors>
>>>>
>>>> 1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly
>>>>
>>>> 2.) Failed to execute the request because the ASP.NET process identity does not have read
>>>> permissions to the global assembly cache. Error: 0x80131902
>>>>
>>>> 3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root
>>>>
>>>> Exception: System.Configur ation.Configura tionErrorsExcep tion
>>>>
>>>> Message: Exception of type 'System.Configu ration.Configur ationErrorsExce ption' was thrown.
>>>>
>>>> </errors>
>>>>
>>>> What could be the problem?!?!?!? Plz, any solutions or pointers to solutions are much
>>>> appreciated!!!
>>>>
>>>> Thank you all in advance!!!
>>>>
>>>> Jon

Apr 29 '06 #9
Hi Juan,

The error message is "Server Application Unavailable". The user account I've
setup in "Directory Security" tab of IIS is "HOME-WKSTATION\ASPNE T".

In the event viewer, I get one warning...

The server was unable to logon the Windows NT account
'HOME-WKSTATION\ASPNE T' due to the following error: Logon failure: unknown
user name or bad password.
followed by 6 errors of the same...

The application-specific permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{A9E69610-B80D-11D0-B9B9-00A0C922E750}
to the user HOME-WKSTATION\ASPNE T SID
(S-1-5-21-515967899-413027322-839522115-1007). This security permission can
be modified using the Component Services administrative tool.
I tried setting the user to just "ASPNET" instead of "HOME-WKSTATION\ASPNE T"
and I tried to refresh the page in browser and I get "The specified module
could not be found" error.

This time, in the event viewer, I only got one warning...

The server was unable to logon the Windows NT account 'ASPNET' due to the
following error: The specified module could not be found. The data is the
error code.
Just for the record, all I doing was just executing a test ASP.NET page with
the "Hello World" code in it.

Thanks,
Jon

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:Ov******** ******@TK2MSFTN GP03.phx.gbl...
One more thing...

Is the error message "Server Application Unavailable" or is it "Server
Unavailable" ?

Could you look in the event log, and see what additional info is
there about your "Server Application Unavailable" error message ?

Look in "Start Menu", "Programs", "Administra tive Tools", "Event Viewer".
You should be able to find the specific error in the Application log.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
re;
Command worked. However, I'm still getting the "Server Unavailable"
error...


OK...

re:
And btw, I'm using IIS5 with WinXP not IIS6 (just telling because of the
article you've provided me was about ASP.NET 2.0 with IIS6).


Nevertheless, the article is valid for IIS 5.1 ( which is what you're
running, not 5.0 )
and ASP.NET 2.0, as long as you disregard the Application Pool info.

Please review the permissions outlined in this article.
They were written for ASP.NET 1.1, but they are just as valid for ASP.NET
2.0:

http://msdn.microsoft.com/library/de...secnetht01.asp

Make sure that the HOME-WKSTATION\ASPNE T account has been assigned NTFS
permissions to all the directories listed in the chart, making sure, of
course, that the proper
directory ( \WINDOWS\Micros oft.NET\Framewo rk\v2.0.50727 ) is checked.

Make sure you read the instructions in the "Comments" column.
*All* the directories listed in the left-most column need the correct
NTFS permissions applied.

When you're done doing that, test and post your results.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message
news:uf******** ******@TK2MSFTN GP02.phx.gbl...
Hi Juan,

Thanks for the reply. I have the latest version in following folder...

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727

So I switched to that directory in Command Prompt and tried the
following...

aspnet_regiis -ga HOME-WKSTATION\ASPNE T

Command worked. However, I'm still getting the "Server Unavailable"
error...

Thanks again.

Jon

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eW******** ******@TK2MSFTN GP05.phx.gbl...
Hi, Jon.

re:
> Another interesting thing is when I tried to do aspnet_regiis -ga
> HOME-WKSTATION\ASPNE T under v2.0.50215 folder (as described in the
> article), I get "Invalid Command"

...there's your problem.

v2.0.50215 is the beta 2 version of the .Net Framework...whi ch has many
bugs.
The -ga command isn't a part of that beta version.

The released version of the .Net Framework is v2.0.50727.42

Uninstall that beta version and download/install -at least- the 2.0
redistributable :
http://www.microsoft.com/downloads/d...displaylang=en

You might want to -instead- download/install the full SDK from :
http://www.microsoft.com/downloads/d...displaylang=en

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Jon B" <no*****@sorry. sorry> wrote in message
news:Oj******** ******@TK2MSFTN GP04.phx.gbl...
> Hi Juan,
>
> The thing is, I cannot execute any ASP.NET pages. Even your
> Identity.aspx page. I keep on getting the "Server Unavailable" error.
> That is of course, in ASP.NET 2. However, when I tried with ASP.NET
> 1.1, I get...
>
> HOME-WKSTATION\ASPNE T
>
> I ran the examples in KBs ***exactly*** the way it presented (with the
> substitue of the variables of course).
>
> And btw, I'm using IIS5 with WinXP not IIS6 (just telling because of
> the article you've provided me was about ASP.NET 2.0 with IIS6).
>
> Another interesting thing is when I tried to do aspnet_regiis -ga
> HOME-WKSTATION\ASPNE T under v2.0.50215 folder (as described in the
> article), I get "Invalid Command" and a list of switches that
> aspnet_regiis accepts, which does not contains a 'ga' switch.
>
> Plz help...
>
> Henry

> "Juan T. Llibre" <no***********@ nowhere.com> wrote in message
> news:eF******** ******@TK2MSFTN GP02.phx.gbl...
>> Are you still getting this error ?
>>
>>>> 2.) Failed to execute the request because the ASP.NET process
>>>> identity does not have read
>>>> permissions to the global assembly cache. Error: 0x80131902
>>
>> Did you run "identity.aspx" , which I provided for you ?
>> Which user account was returned by it ?
>>
>> How did you run the example command provided by the KB ?
>>
>> cacls %windir%\assemb ly /e /t /p domain\useracco unt:R
>>
>> ?
>>
>> Have you read this article :
>> http://msdn.microsoft.com/library/de...aght000009.asp
>>
>> ?
>>
>> Please review the steps in it, for creating a service account for an
>> ASP.NET 2.0 application,
>> and make sure that the account retrned by "identity.a spx" has all the
>> permissions
>> listed in that article.
>>
>> In particular, make sure you run the following aspnet_regiis command
>> :
>>
>> aspnet_regiis -ga MachineName\Acc ountName
>>
>> where "MachineName\Ac countName" is the account returned by
>> "identity.aspx" .
>>
>> Then post back your results.
>>
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> =============== =============== =====
>> "Jon B" <no*****@sorry. sorry> wrote in message
>> news:uA******** ******@TK2MSFTN GP03.phx.gbl...
>>> Hi Juan,
>>>
>>> Thanks for the reply. I've set permission to all the folders and
>>> everything but still it doesn't
>>> work.
>>>
>>> I've also tried the "Denis Bauer's ASP.NET Version Switcher" but
>>> that doesn't help either.
>>>
>>> Any other ideas?
>>>
>>> Cheers,
>>> Jon B
>>>
>>> "Juan T. Llibre" <no***********@ nowhere.com> wrote in message
>>> news:u5******** ******@TK2MSFTN GP02.phx.gbl...
>>>> If you're running on Windows XP, the account which needs
>>>> permissions is
>>>> MACHINENAME\ASP NET...even if you're allowing anonymous access.
>>>>
>>>> Try granting access permissions to the appropiate account, as
>>>> outlined above.
>>>>
>>>> If you are still having problems after that, and you're
>>>> impersonating some account,
>>>> save this code as "identity.a spx" and run it :
>>>>
>>>> identity.aspx
>>>> ========
>>>>
>>>> <%@ Page Language="VB" %>
>>>> <%@ Import NameSpace = System.Security .Principal %>
>>>> <script runat="server">
>>>> Sub Page_Load()
>>>> Dim tmp As String = WindowsIdentity .GetCurrent.Nam e()
>>>> Label1.Text = tmp
>>>> End Sub
>>>> </script>
>>>> <html>
>>>> <head>
>>>> <title>WindowsI dentity.GetCurr ent.Name()</title>
>>>> </head>
>>>> <body>
>>>> <form id="form1" runat="server">
>>>> <div>
>>>> <asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
>>>> </div>
>>>> </form>
>>>> </body>
>>>> </html>
>>>> ======
>>>>
>>>> Running that file will tell you which account ASP.NET is running
>>>> as.
>>>> Then, assign the appropiate permissions to that account.
>>>>
>>>> Also, download and run Denis Bauer's ASP.NET Version Switcher,
>>>> and make sure that you're actually running 1.1 apps against the
>>>> 1.1 .Net Framework and 2.0 apps against .Net Framework 2.0.
>>>>
>>>> http://www.denisbauer.com/NETTools/A...nSwitcher.aspx
>>>>
>>>>
>>>>
>>>>
>>>> Juan T. Llibre, asp.net MVP
>>>> aspnetfaq.com : http://www.aspnetfaq.com/
>>>> asp.net faq : http://asp.net.do/faq/
>>>> foros de asp.net, en español : http://asp.net.do/foros/
>>>> =============== =============== =====
>>>> "Jon B" <no*****@sorry. sorry> wrote in message
>>>> news:uT******** ******@TK2MSFTN GP04.phx.gbl...
>>>>> Hi All!
>>>>>
>>>>> I have a ASP.NET 2.0 site that works on the Windows 2000 Server.
>>>>> However, when I tried to view
>>>>> this site on my local Windows XP machine, I get "Server
>>>>> Unavailable". If I switch the Windows XP
>>>>> IIS back to ASP.NET 1.1 then I get the Configuration Error (which
>>>>> is understandable because I'm
>>>>> trying to run an ASP.NET 2 site with 1.1 framework).
>>>>>
>>>>> I can however view other ASP.NET 1.1 sites on my local Windows XP
>>>>> machine. It's only the problem
>>>>> with
>>>>>
>>>>> I've also tried the aspnet_regiis thing as well as setting
>>>>> permissions on folders as described
>>>>> in this article:
>>>>> http://support.microsoft.com/default.aspx?kbid=811320
>>>>> but no solution.
>>>>>
>>>>> In the event log, I see these three errors every I tried to view
>>>>> my ASP.NET 2.0 site on my local
>>>>> machine...
>>>>>
>>>>> <errors>
>>>>>
>>>>> 1.) .aspnet_wp.exe (PID: 3988) stopped unexpectedly
>>>>>
>>>>> 2.) Failed to execute the request because the ASP.NET process
>>>>> identity does not have read
>>>>> permissions to the global assembly cache. Error: 0x80131902
>>>>>
>>>>> 3.) Failed to initialize the AppDomain:/LM/W3SVC/1/Root
>>>>>
>>>>> Exception: System.Configur ation.Configura tionErrorsExcep tion
>>>>>
>>>>> Message: Exception of type
>>>>> 'System.Configu ration.Configur ationErrorsExce ption' was thrown.
>>>>>
>>>>> </errors>
>>>>>
>>>>> What could be the problem?!?!?!? Plz, any solutions or pointers to
>>>>> solutions are much
>>>>> appreciated!!!
>>>>>
>>>>> Thank you all in advance!!!
>>>>>
>>>>> Jon


Apr 29 '06 #10

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

Similar topics

6
4454
by: Nathan Sokalski | last post by:
I want to set up SQL Server on Windows XP Pro so that I can use the database capabilities of ASP and IIS. I am probably using some incorrect settings, but I am not sure what they are. Here is what I am currently doing: When I run sqlservr.exe I see the following: 2003-12-19 15:51:28.20 server Microsoft SQL Server 2000 - 8.00.760 (Intel X8 6)
2
8444
by: Yvon Bouchard | last post by:
I am wondering if we can install this Server on Windows 2003 Server without any problems. Is there anybody that did that before? Thanks in advance if someone know the answer. Yvon Bouchard, B. Sc. Computer Science Teacher http://info.cegepat.qc.ca/siteyvon
1
1294
by: robby valles | last post by:
My company has a large windows form app with the datalayer being webservices. pretty randomly the webservice calls will either be very slow or i'll get the server unavailable. there are times when it won't happen all day. a lot of these webservices are simple requests that query data and return a dataset. when the server unavailable error happens all clients connected to the webserver through the same webservice uri will get the error...
3
4636
by: Reza | last post by:
Hello I tried this friday, but didn't get anywhere so trying again Basically, I have a fixed list of people that can access the application in the Intranet, and with the policy of the company the Users can be created only with Windows authentication in SQL Server - with SQL server authentication have no problem So every time I try to connect get the error message, "Login failed for user, 'username'. I have also tried windows authentication...
4
3702
by: Andy Baker | last post by:
I have an Windows forms application written in VB.NET that uses a SQL Server 2000 back end database with Windows authentication. There is no problem accessing the database from my application, or from an installed version of the application on another machine. My problem is that I would like to access the database overnight unattended to perform some maintenance tasks. With my fairly limited knowledge of SQL Server and VB.NET, I thought...
1
1475
by: pphadke | last post by:
I have an application that was originally in asp but is now moved to ASP.Net. To deploy it, I just changed the default file in IIS for the web folder to point to the new aspx file. Occasionally I see a "Server unavailable" error. There is nothing in the event log that suggests any related error or warnings. This application also has a part of it that is still in ASP, would that cause any issues? Most of the links online for this error are...
2
8302
by: ciffycyclops | last post by:
Hello.. i am using WIndows XP Professional service pack 2 in my client m/c as well as in server..i diasabled the firewall in both the local and remote computer..but it shows the following error"RPC server unavailable" whats wrong is here??what other configuration changes i have to do?? my 2nd question is is there will be any problem if i use Windows 2003 server in my server computer??? pls help me out of this problem pls??
2
1943
by: kenski | last post by:
Hello, I'm new here hopefully i did not broke any rules already, Here's the problem, I'm getting the OUT OF MEMORY exception/SERVER UNAVAILABLE error when fetching large amounts of data in the ff. environment. -windows 2003 -.net framework 1.1 -asp.net using vb as code -oracle 9i database. the develpment server has 2gigs of memory so I think its not an issue. I've tested the query and it works on plSQL developer but when i put it to...
4
2054
by: =?Utf-8?B?ZGlub28=?= | last post by:
We are currently in the process of upgrading our web server from Windows 2000 advanced server to Windows 2003 SP2. We have few ASP.Net applications built with .NET framework 1.1 running on the web server. I am looking for the known issues that I need to go over before we start the upgrade. Appreiciate your help.
0
8669
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
9251
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...
1
9017
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
8963
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...
1
6588
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4433
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3125
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2453
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.