IIS でホストする .net 4.0 Web アプリケーションを開発しています。アプリケーションは<system.web.extensions>
、web.config
ファイル内を使用せずに数回正常にホストされました。
アプリケーションはエラーなしで公開されますが、使用してホストIIS
しようとする Directory Browsing
と、エラーが発生しますThe configuration section system.web,extensions cannot be read because its missing a section declaration
。アプリケーション プールから .net 4.0 アプリケーションとして既に設定しましたが、それでもエラーが発生します。
以下は私のweb.config
ファイルです、
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="MySql.Data, Version=6.5.4.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<httpRuntime requestValidationMode="2.0" executionTimeout="1000" maxRequestLength="2147483647" />
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483647">
</jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>
</configuration>
ここで私が間違っていることを知っているかもしれません..これは非常に頭痛の種であり、ほとんどのリソースをオンラインで試しましたが、.net 4.0
すでに行ったアプリケーションプールを設定することをお勧めします..
助けてくれてありがとう:)