9
ウェブページをサーバーにアップロードしました。設定セクション 'customErrors'にセクション宣言がないため、読み込めません
私のウェブページはローカルシステムで正常に動作しています。私はそれをサーバーにアップロードするときしかし、セクション宣言が欠落している あるので、読むことができないエラーに
構成セクション「のcustomErrors」を示しています。
私はすべての可能性を試しましたが、依然として上記のエラーが発生しています。誰でも私の設定ファイルで問題を解決するために何を変更すべきなのかを提案できますか?
マイWebConfigのファイル:
<configuration>
<configSections>
<section name="neatUpload" type="Brettle.Web.NeatUpload.ConfigSectionHandler, Brettle.Web.NeatUpload" allowLocation="true" />
<sectionGroup name="modulesSection">
<section name="rewriteModule" type="RewriteModule.RewriteModuleSectionHandler, RewriteModule" />
</sectionGroup>
</configSections>
<!-- <customErrors mode="ON" /> -->
<!-- <customErrors mode="Off" /> -->
<customErrors mode="ON" defaultRedirect="GenericErrorPage.html">
<!-- <error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" /> -->
</customErrors>
<modulesSection>
<rewriteModule>
<rewriteOn>true</rewriteOn>
<rewriteRules>
<rule source="http://[^/]*/*(\w+[&-]*\w+)/*((\w+[&-]*\w+)(\s)*)*/*((\w+[&-]*\w+)(\s)*)*$" destination="landPage.aspx?CampaginName=$1&SubDomain=$2&UserName=$3&PageName=$4" />
<!-- <rule source=".*" destination="landPage.aspx?CampaginName=$1&UserName=$2"/>-->
</rewriteRules>
</rewriteModule>
</modulesSection>
ご返信ありがとうございます。これを実行すると、「認識できない要素 'system.web'」というエラーが表示されます –
私はあなたのsystem.webが別のセクションの中にネストされているか、またはconfigSectionsの前に一番上にあると思います。 ''があなたの ' modulesSection> 'の後に来ることを確認してください。 –
あなたが正しいです。 あなたのご協力ありがとうございました... –