-2

asp.net で作成されたオンライン ショッピング プロジェクトを からダウンロードしました。

[http://prakashjha.codeplex.com/]

Visual Studio 2012で実行しようとしていますが、このエラーが発生しています

 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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 39:         <!--<roleManager enabled="true" />-->
Line 40:         <compilation debug="true" targetFramework="4.0" />
Line 41:       <authentication mode="Forms" >
Line 42:           
Line 43:         <forms  defaultUrl="default.aspx" loginUrl="login1.aspx"   cookieless="AutoDetect"  ></forms>

[コントロール パネル]、[プログラム]、[Windows の電源をオンまたはオフ]、[iis] の順に選択して iis サーバーを構成しましたが、それでも同じエラーが発生します。助けてください よろしくお願いします

4

1 に答える 1

0

このアプリケーションを IIS のサイトに追加した場合は、IIS がデバッグをサポートしていないため、開発期間中に変更<compilation debug="true" targetFramework="4.0" />して<compilation debug="false" targetFramework="4.0" />ください。IIS のサイトの詳細設定で、アプリケーション プールを ASP.NETv4.0 に変更してください。終わり。

于 2013-07-18T10:33:15.420 に答える