2

これは実行時に発生しているエラーです

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 25:             ASP.NET to identify an incoming user. 
Line 26:         -->
Line 27:        <authentication mode="Forms"/>
Line 28:        <!--
Line 29:             The <customErrors> section enables configuration 

Source File: F:\Final Event Management\event management\web.config    Line: 27 

そして、それはエラーが発生しているコーディングです

<?xml version="1.0"?>

<configuration>
    <appSettings/>
    <connectionStrings/>
    <system.web>

        <compilation debug="true" targetFramework="4.0">
        </compilation>

        <authentication mode="Forms"/>

        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>

</configuration>

この問題を解いてください........

4

1 に答える 1

2

仮想ディレクトリを作成して、問題が解決するかどうかを確認します。

方法: Visual Studio で IIS 仮想ディレクトリを作成する

ソリューション エクスプローラー ウィンドウでプロジェクト ノードを右クリックし、[プロパティ]、[Web] タブの順に選択すると、サイトの仮想ディレクトリを作成するためのボタンが表示されます。

于 2012-10-03T13:43:08.320 に答える