2013-07-07 33 views
6

VS2012からリモートコンピュータにWebアプリケーションを公開しようとしています。 私はファイルを公開しますが、私は、ウェブサイトを開こうとすると、私はこのエラーを取得: * IIS7:リモートコンピュータで属性 'targetFramework'が認識されません。注>属性名では大文字と小文字が区別される

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:

Line 41: 
Line 42:  <compilation targetFramework="4.0" /> 
Line 43:  <httpRuntime targetFramework="4.0" /> 
Line 44:  <authentication mode="Forms"> 
Line 45:  <forms loginUrl="~/" timeout="2880" /> 

(ライン43は赤である)

(IIS6、私も思う) * ASP.NET 4.0がインストールされている * "aspnet_regiis -ir">が正常にインストールされている * IIS7>アプリケーションプール> ASP.NET 4.0> ".NET Framework v4.0.30319" * IIS7>私のWebアプリケーション> "ASP.NET 4.0"(統合)が選択されています。 重要なのかどうか分かりませんが、サーバーのウィンドウはWidows Server 2008 RT Enterprise 64ビットで、コンピューターはWindows 7 32ビットです。

助けた何も...

enter image description here enter image description here

+0

4.0を選択してもよろしいですか? WebサイトがASP.NET 2.0を使用するようにセットアップされているときにエラーが発生しました... –

+0

アプリケーションの選択したアプリケーションプールのスクリーンショットを投稿できますか?実際にエラーが発生しているということは、ASP.NET 2.0がアプリケーションを実行しようとしていることを意味します。 [この正式の投稿]を参照してください。(0120-17753) – sq33G

+0

質問を編集し、2つのスクリーンショットを追加しました。 – TamarG

答えて

7

httpRuntimeは、セットで使用可能なtargetFrameworkを持ってそれを削除し、それが動作しますしませんでした。

+0

別のエラーが発生しました - "アセンブリ 'mscorlib、Version = 4.0.0.0、Culture = neutral、PublicKeyToken = b77a5c561934e089'から 'System.Runtime.CompilerServices.ExtensionAttribute'タイプを読み込めませんでした。" – TamarG

+0

@TamarGエラーを取り除き、次のエラーを解決してください。 – Aristos

+1

次のエラーのための@TamarG:http://stackoverflow.com/questions/10896894/webapi-rc-system-runtime-compilerservices-extensionattribute-from-assembly-ms – Aristos

関連する問題