服务器不可用 - Windows XP上的ASP.NET 2.0 [英] Server Unavailable - ASP.NET 2.0 on Windows XP

查看:67
本文介绍了服务器不可用 - Windows XP上的ASP.NET 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!


我有一个可在Windows 2000 Server上运行的ASP.NET 2.0站点。但是,当我试图在我的本地Windows XP计算机上查看此站点时,我得到服务器

不可用。如果我将Windows XP IIS切换回ASP.NET 1.1,那么我会得到配置错误(这是可以理解的,因为我正在尝试运行

一个ASP。带有1.1框架的NET 2站点)。


我可以在我的本地Windows XP机器上查看其他ASP.NET 1.1站点。

它只是


的问题我已经尝试了aspnet_regiis的事情以及设置

文件夹的权限,如本文所述:
< a rel =nofollowhref =http://support.microsoft.com/default.aspx?kbid=811320target =_ blank> http://support.microsoft.com/default.aspx?kbid=811320

但没有解决方案。


在事件日志中,我每次尝试查看ASP.NET时都会看到这三个错误

我本地机器上的2.0站点...


< errors>


1.)。aspnet_wp.exe( PID:3988)意外停止


2.)因为ASP.NET进程标识而无法执行请求ty确实

没有对全局程序集缓存的读取权限。错误:0x80131902

3.)无法初始化AppDomain:/ LM / W3SVC / 1 / Root

异常:System.Configuration。 ConfigurationErrorsException


消息:类型异常

''System.Configuration.ConfigurationErrorsException''被抛出。


< / errors>


可能是什么问题?!?!?!? Plz,任何解决方案或解决方案指南

非常感谢!!!


提前谢谢大家!!!


Jon

解决方案

如果你在Windows XP上运行,那么需要权限的帐户是

MACHINENAME\ASPNET ...即使您允许匿名访问。


尝试授予适当帐户的访问权限,如上所述。


如果您在此之后仍然遇到问题,并且您冒充某些帐户,

请将此代码另存为identity.aspx并运行它:


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 = QUOT;服务器" Text =" Label">< / asp:Label>

< / div>

< / form>

< ; / body>

< / html>

======


运行该文件会告诉你哪个帐户ASP.NET正在运行。

然后,为该帐户分配适当的权限。


此外,下载并运行Denis Bauer的ASP。 NET Version Switcher,

并确保您实际上针对.Net Framework 2.0针对

1.1 .Net Framework和2.0应用运行1.1应用程序。

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" <无***** @ sorry.sorry>在消息新闻中写道:uT ************** @ TK2MSFTNGP04.phx.gbl ...

大家好!

我有一个适用于Windows 2000 Server的ASP.NET 2.0站点。但是,当我尝试在我的本地Windows XP计算机上查看此站点时,我得到服务器不可用。如果我将Windows XP
IIS切换回ASP.NET 1.1,那么我会得到配置错误(这是可以理解的,因为我试图运行带有1.1框架的ASP.NET 2站点)。

然而,我可以在我的本地Windows XP计算机上查看其他ASP.NET 1.1站点。这只是问题


我还尝试了aspnet_regiis,并设置文件夹权限,如本文所述:
http://support.microsoft.com/default.aspx?kbid= 811320
但没有解决方案。

在事件日志中,每当我尝试在本地
机器上查看我的ASP.NET 2.0站点时,我都会看到这三个错误...

<错误>

1.)。aspnet_wp.exe(PID:3988)意外停止

2.)失败执行请求,因为ASP.NET进程标识没有读取全局程序集缓存的权限。错误:0x80131902

3.)无法初始化AppDomain:/ LM / W3SVC / 1 / Root

异常:System.Configuration.ConfigurationErrorsException
消息:抛出类型''System.Configuration.ConfigurationErrorsException''的异常。

< / errors>

可能是什么问题?!?!?! ? Plz,任何解决方案或解决方案的指示都非常受欢迎!!!

提前谢谢大家!

Jon


嗨Juan,


感谢您的回复。我已经设置了所有文件夹和所有内容的权限

但是它仍然无法正常工作。


我也试过了 Denis Bauer的ASP.NET版本切换器但那个

也无济于事。


还有其他想法吗?


干杯,
Jon B


" Juan T. Llibre" <无*********** @ nowhere.com>在留言中写道

news:u5 ************** @ TK2MSFTNGP02.phx.gbl ...

如果你是在Windows XP上运行,需要权限的帐户是
MACHINENAME\ASPNET ...即使您允许匿名访问。

尝试授予适当帐户的访问权限,如概述
上面。

如果您在此之后仍然遇到问题,并且您冒充了一些
帐户,请将此代码另存为identity.aspx ;并运行它:

identity.aspx
========

<%@ Page Language =" VB" %>
<%@导入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 = QUOT;服务器" Text =" Label">< / asp:Label>
< / div>
< / form>
< / body>
< / html> ;
======

运行该文件将告诉您ASP.NET正在运行的帐户。
然后,为该帐户分配适当的权限。另外,下载并运行Denis Bauer的ASP.NET版本切换器,确保您实际运行的是针对
1.1 .Net Framework和2.0的1.1应用程序针对.Net Framework 2.0的应用程序。

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

Juan T. Llibre,asp.net MVP
aspnetfaq.com:< a rel =nofollowhref =http://www.aspnetfaq.com/target =_ blank> http://www.aspnetfaq.com/
asp.net faq:< a rel =nofollowhref =http://asp.net.do/faq/target =_ blank> http://asp.net.do/faq/
foros de asp.net,en espa?ol: http://asp.net.do/foros/
=== ================================
Jon B <无***** @ sorry.sorry>在消息中写道
新闻:uT ************** @ TK2MSFTNGP04.phx.gbl ...

大家好!
然后我得到配置错误(这是可以理解的,因为我试图运行带有1.1框架的ASP.NET 2站点)。

然而,我可以在我的本地Windows XP
机器上查看其他ASP.NET 1.1站点。这是唯一的问题

我也尝试了aspnet_regiis以及设置
文件夹的权限,如本文所述:
http://support.microsoft.com/default.aspx?kbid=811320
但没有解决方案。

在事件日志中,每当我尝试在本地计算机上查看我的ASP.NET 2.0站点时,我都会看到这三个错误... < br。>
< errors>

1.)。aspnet_wp.exe(PID:3988)意外停止

2.)无法执行请求,因为ASP.NET进程标识
没有对全局程序集缓存的读取权限。错误:
0x80131902

3.)无法初始化AppDomain:/ LM / W3SVC / 1 / Root
例外:System.Configuration.ConfigurationErrorsException

消息:类型异常
''System.Configuration.ConfigurationErrorsException''被抛出。

< / errors>

什么可能是问题?!?!?!? Plz,任何解决方案或指向
解决方案的人都非常感谢!!!

提前谢谢大家!

Jon



您是否仍然收到此错误?

2.)无法执行请求,因为ASP.NET进程标识没有对全局程序集缓存的读取权限。错误:0x80131902



您是否运行了我为您提供的identity.aspx?

它返回了哪个用户帐户?


你是如何运行KB提供的示例命令的?


cacls%windir%\assembly / e / t / p domain\useraccount :R





你读过这篇文章:
http://msdn.microsoft.com/library/de。 ..aght000009.asp





请查看其中的步骤,以便为ASP创建服务帐户。 NET 2.0应用程序,

并确保帐户由identity.aspx重新启动拥有该文章中列出的所有权限




特别要确保运行以下aspnet_regiis命令:


aspnet_regiis -ga MachineName \AccountName


其中MachineName \AccountName"是identity.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" <无***** @ sorry.sorry>在留言新闻中写道:uA ************** @ TK2MSFTNGP03.phx.gbl ...胡安,

感谢您的回复。我已经设置了所有文件夹和所有内容的权限,但它仍然没有工作。

我也尝试过Denis Bauer的ASP.NET版本切换器但这也没有帮助。

还有其他想法吗?

干杯,
Jon B

Juan T. Llibre" <无*********** @ nowhere.com>在消息中写道
新闻:u5 ************** @ TK2MSFTNGP02.phx.gbl ...

如果你在Windows XP上运行,即使您允许匿名访问,需要权限的帐户也是
MACHINENAME \ ASPNET ...

尝试授予适当帐户的访问权限,如上所述。如果您在此之后仍然遇到问题,并且您冒充某些帐户,请将此代码另存为identity.aspx。并运行它:

identity.aspx
========

<%@ Page Language =" VB" %>
<%@导入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 = QUOT;服务器" Text =" Label">< / asp:Label>
< / div>
< / form>
< / body>
< / html> ;
======

运行该文件将告诉您ASP.NET正在运行的帐户。
然后,为该帐户分配适当的权限。另外,下载并运行Denis Bauer的ASP.NET版本切换器,确保您实际运行的是针对
1.1 .Net Framework和2.0的1.1应用程序针对.Net Framework 2.0的应用程序。

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

Juan T. Llibre,asp.net MVP
aspnetfaq.com:< a rel =nofollowhref =http://www.aspnetfaq.com/target =_ blank> http://www.aspnetfaq.com/
asp.net faq:< a rel =nofollowhref =http://asp.net.do/faq/target =_ blank> http://asp.net.do/faq/
foros de asp.net,en espa?ol: http://asp.net.do/foros/
=== ================================
Jon B <无***** @ sorry.sorry>在消息新闻中写道:uT ************** @ TK2MSFTNGP04.phx.gbl ...

大家好!

我有一个适用于Windows 2000 Server的ASP.NET 2.0站点。但是,当我尝试在我的本地Windows XP计算机上查看此站点时,我得到服务器不可用。如果我将Windows XP
IIS切换回ASP.NET 1.1,那么我会得到配置错误(这是可以理解的,因为我试图运行带有1.1框架的ASP.NET 2站点)。

然而,我可以在我的本地Windows XP计算机上查看其他ASP.NET 1.1站点。这是唯一的问题


我也尝试了aspnet_regiis,并在文章中设置权限,如本文所述

http://support.microsoft.com/default.aspx?kbid= 811320
但没有解决方案。

在事件日志中,每当我尝试在本地
机器上查看我的ASP.NET 2.0站点时,我都会看到这三个错误...

<错误>

1.)。aspnet_wp.exe(PID:3988)意外停止

2.)失败执行请求,因为ASP.NET进程标识没有读取全局程序集缓存的权限。错误:0x80131902

3.)无法初始化AppDomain:/ LM / W3SVC / 1 / Root

异常:System.Configuration.ConfigurationErrorsException
消息:抛出类型''System.Configuration.ConfigurationErrorsException''的异常。

< / errors>

可能是什么问题?!?!?! ? Plz,解决方案的任何解决方案或指针都非常受欢迎!!!

提前谢谢大家!!!

Jon




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

解决方案

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/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**************@TK2MSFTNGP04.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.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



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**************@TK2MSFTNGP02.phx.gbl...

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/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**************@TK2MSFTNGP04.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.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




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/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.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" <no*****@sorry.sorry> wrote in message news:uA**************@TK2MSFTNGP03.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**************@TK2MSFTNGP02.phx.gbl...

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/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**************@TK2MSFTNGP04.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.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




这篇关于服务器不可用 - Windows XP上的ASP.NET 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆