2

asp.net 4.0 をまったく動作させることができません。実際、サーバーを完全に消去し、Server 2008 R2 Standard (VMWare ESXi ボックスで実行されているため、問題ではありません) を再インストールしましたが、.aspx のテスト ページを動作させることさえできませんでした。

これがまさに私がしたことです:

  1. 2008 R2 標準をインストール
  2. アクティブ化されたウィンドウと有効なリモート デスクトップ
  3. 必要な役割サービス (一般的な http、asp.net、ログ、トレース、管理サービス、および FTP) と共に Web サーバーの役割をインストールしました。
  4. 管理サービスを有効にしました
  5. Web実行可能ファイルを介して.Net Framework 4.0をインストール
  6. デフォルトの Web サイトに FTP パブリッシングを追加しました
  7. デフォルトの Web サイト アプリケーション プールを asp.net 4.0 (統合) に切り替えました。
  8. 「test.aspx」ファイルを inetpub\wwwroot フォルダーに追加しました (以下の内容)。
  9. ブラウザーを開いてhttp://localhost/test.aspxにアクセスすると、500.0 エラーが発生しました (以下も参照)。

私は何が欠けていますか?しばらく (3 年以上) IIS に触れていないので、ばかげた/些細なことかもしれません。それを指摘してください、私を初心者と呼んでください。私の自我はそれを取ることができます。

ありがとう、デイブ

テスト.aspx

<% @Page language="C# %>
 <html>
 <head>
    <title>Test.aspx</title>
 </head>
 <body>
    <asp:label runat="server" text="This is an asp.net 4.0 label" />
 </body>
 </html>

エラーページ:

Module  AspNetInitClrHostFailureModule
Notification    BeginRequest
Handler PageHandlerFactory-Integrated-4.0
Error Code  0x80070002
Requested URL   http://localhost:80/test.aspx
Physical Path   C:\inetpub\wwwroot\test.aspx
Logon Method    Not yet determined
Logon User  Not yet determined

痕跡:

そして、私のトレースファイルには次のように表示されます:

96. view trace Warning -SET_RESPONSE_ERROR_DESCRIPTION 
ErrorDescription An error message detailing the cause of this specific request failure can be found in the application event log of the web server.  Please review this log entry to discover what caused this error to occur.


97. view trace Warning -MODULE_SET_RESPONSE_ERROR_STATUS 
ModuleName AspNetInitClrHostFailureModule 
Notification 1 
HttpStatus 500 
HttpReason Internal Server Error 
HttpSubStatus 0 
ErrorCode 2147942402 
ConfigExceptionInfo  
Notification BEGIN_REQUEST 
ErrorCode The system cannot find the file specified. (0x80070002)

アプリケーション エラー ログには次のように表示されます。

Log Name:      Application
Source:        Microsoft-Windows-IIS-W3SVC-WP
Date:          5/28/2010 2:08:10 PM
Event ID:      2299
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      win-ltfkdo1dnfp
Description:
An application has reported as being unhealthy. The worker process will now request a recycle. Reason given: An error message detailing the cause of this specific request failure can be found in the application event log of the web server.  Please review this log entry to discover what caused this error to occur. The data is the error.   

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" />
    <EventID Qualifiers="49152">2299</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2010-05-28T21:08:10.000000000Z" />
    <EventRecordID>1663</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer>win-ltfkdo1dnfp</Computer>
    <Security />
 </System>
 <EventData>
 <Data Name="Reason">An error message detailing the cause of this specific request failure can be found in the application event log of the web server.  Please review this log entry to discover what caused this error to occur.
 </Data>
    <Binary>02000780</Binary>
</EventData>
</Event> 
4

2 に答える 2

4

Reflector を使用して外部アセンブリをデバッグしているときに、この同じ問題が発生しました。

プログラムが環境変数を台無しにして、DEVPATHここで説明したのと同じ症状が見られました。DEVPATHここで問題を解決したリセット(空にする) 。

無関係に思えますが、これがOPの場合の問題であることを見つけるのは非常に曖昧であるため、報告する価値があると思います.

于 2012-05-31T00:34:48.113 に答える
0

これは奇妙かもしれません..しかし、上記を単独で実行し、他のすべてのサイト(以下のリンク)がapplication.hostファイルの変更またはフレームワークおよびframework64フォルダーでのiisregの実行について述べたこと..同様の問題を解決しませんでした.

私のアプリケーションにはおそらく 32 ビットの依存関係がいくつかあり、それが上記のエラーの原因でもありました (通常発生する間違ったバイナリ形式ではなく)。アプリケーション プールを変更して 32 ビット モード (WoW モード) を許可すると、バイナリ形式の問題が報告されました。 ..その後、問題を解決するために修正しました

提案があった他のサイト:

于 2011-10-28T13:39:21.923 に答える