2

.cshtml asp.net Web ページに関するこの問題で既に 5 日間を無駄にしてしまったので、教祖に聞いてみませんか。

HTTP エラー 404.4 - 見つかりません お探しのリソースには、ハンドラーが関連付けられていません。詳細なエラー情報 モジュール IIS Web コア通知 MapRequestHandler ハンドラー 未定 エラー コード 0x80070002 要求された URL xxxxxxxxx:80/bakery/default.cshtml 物理パス xxxxxxxx\bakery\default.cshtml ログオン方法 匿名 ログオン ユーザー 匿名

<system.webServer>
  <security>
        <requestFiltering>
            <fileExtensions>
                <remove fileExtension=".cshtml" />
                <add fileExtension=".cshtml" allowed="true" />
            </fileExtensions>
        </requestFiltering>
   </security>
    <validation validateIntegratedModeConfiguration="true" />     
<modules runAllManagedModulesForAllRequests="true" />
<handlers accessPolicy="Read, Script, Write, Execute">
    <clear />
    <remove name="cshtml-Integrated-4.0" />
    <remove name="cshtm-Integrated-4.0" />
    <remove name="cshtml-ISAPI-4.0_32bit" />
    <remove name="cshtml-ISAPI-4.0_64bit" />        
    <add name="cshtml-ISAPI-4.0_32bit" path="*.cshtml" verb="GET,HEAD,POST,DEBUG" resourceType="Unspecified" requireAccess="Script" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
    <add name="cshtml-ISAPI-4.0_64bit" path="*.cshtml" verb="GET,HEAD,POST,DEBUG" resourceType="Unspecified" requireAccess="Script" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />        
</handlers>
</system.webServer>

  記録のために: はい .NET 4.0 がインストールされています。これは明らかな要件です。このアプリのアプリ プールは「32 ビット アプリケーションを許可する」に設定されており、アプリ プールは統合モードで実行するように設定されています。server: Windows Server 2008 r2 で、上からわかるように、runAllManagedModulesForAllRequests="true" が true に設定されています。ですから、トラブルシューティングを行ったことのある人なら誰でもすでに行っているような、これらのばかげた質問を私に聞かないでください。

4

1 に答える 1

0

同じ問題が発生しました。仮想ホストサーバーを使用しており、すべてのMVC3およびRazordllをbinフォルダーにコピーすることでこれを解決しました。

  1. 「アプリケーション」でWebを作成する場合:Webプロジェクトを右クリックし、「デプロイ可能な依存関係の追加」を選択して、再構築してから、デプロイを試みます。

  2. アプリケーションではなく「Webサイト」を作成する場合:これらを手動でbinフォルダーにコピーします。

    Microsoft.Web.Infrastructure.dll System.Web.Helpers.dll System.Web.Mvc.dll System.Web.Razor.dll System.Web.WebPages.Deployment.dllSystem.Web.WebPages.dllSystem.Web.WebPages。 Razor.dll

于 2012-07-02T06:28:06.103 に答える