Re: Server Unavailable - ASP.NET 2.0 on Windows XP



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/default.asp?url=/library/en-us/dnnetsec/html/secnetht01.asp

Make sure that the HOME-WKSTATION\ASPNET account has been assigned NTFS
permissions to all the directories listed in the chart, making sure, of course, that the proper
directory ( \WINDOWS\Microsoft.NET\Framework\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" <noemail@xxxxxxxxxxx> wrote in message news:ufmBEp4aGHA.3976@xxxxxxxxxxxxxxxxxxxxxxx
Hi Juan,

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

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

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

aspnet_regiis -ga HOME-WKSTATION\ASPNET

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

Thanks again.

Jon

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:eWJLHc4aGHA.3376@xxxxxxxxxxxxxxxxxxxxxxx
Hi, Jon.

re:
Another interesting thing is when I tried to do aspnet_regiis -ga HOME-WKSTATION\ASPNET 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...which 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/details.aspx?familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en

You might want to -instead- download/install the full SDK from :
http://www.microsoft.com/downloads/details.aspx?familyid=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&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" <noemail@xxxxxxxxxxx> wrote in message news:Ojn9lu1aGHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
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\ASPNET

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\ASPNET 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" <nomailreplies@xxxxxxxxxxx> wrote in message
news:eFkmBYGaGHA.4292@xxxxxxxxxxxxxxxxxxxxxxx
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%\assembly /e /t /p domain\useraccount:R

?

Have you read this article :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000009.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.aspx" has all the permissions
listed in that article.

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

aspnet_regiis -ga MachineName\AccountName

where "MachineName\AccountName" 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" <noemail@xxxxxxxxxxx> wrote in message news:uAvTH1DaGHA.1192@xxxxxxxxxxxxxxxxxxxxxxx
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" <nomailreplies@xxxxxxxxxxx> wrote in message
news:u58rHSyZGHA.3328@xxxxxxxxxxxxxxxxxxxxxxx
If you're running on Windows XP, the account which needs permissions is
MACHINENAME\ASPNET...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.aspx" 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.Name()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsIdentity.GetCurrent.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/ASPNETVersionSwitcher.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" <noemail@xxxxxxxxxxx> wrote in message news:uTZy2yxZGHA.3304@xxxxxxxxxxxxxxxxxxxxxxx
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.Configuration.ConfigurationErrorsException

Message: Exception of type 'System.Configuration.ConfigurationErrorsException' was thrown.

</errors>

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

Thank you all in advance!!!

Jon











.



Relevant Pages

  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... Please review the permissions outlined in this article. ... Make sure that the HOME-WKSTATION\ASPNET account has been assigned NTFS ... So I switched to that directory in Command Prompt and tried the ... If I switch the Windows XP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... The -ga command isn't a part of that beta version. ... permissions to the global assembly cache. ... Please review the steps in it, for creating a service account for an ASP.NET 2.0 application, ... I've also tried the aspnet_regiis thing as well as setting permissions on folders as described ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... Please review the permissions outlined in this article. ... Make sure that the HOME-WKSTATION\ASPNET account has been assigned NTFS ... So I switched to that directory in Command Prompt and tried the following... ... I'm still getting the "Server Unavailable" error... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... permissions to the global assembly cache. ... Which user account was returned by it? ... I have a ASP.NET 2.0 site that works on the Windows 2000 Server. ... If I switch the Windows XP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Incoming E-Mail - cant create contact in OU
    ... account out of local administrator to attempt to find any denied access. ... I then added full permissions to my user account on both of these keys, ... local admin rights to the server hosting incoming email. ... what permission I need to give the app pool locally to avoid this issue. ...
    (microsoft.public.sharepoint.windowsservices)