私は少し調査を行い、これに遭遇しました:http: //msdn.microsoft.com/en-us/library/ms228245.aspx
したがって、私がそれを正しく理解している場合、最終的にこれが行っているのは、プロジェクト内で使用するためのいくつかの.dllを含めることです。
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
違いは、configSectionsの方法で、後でwebconfig(または他のconfig)でxml要素として「name」を作成することでいくつかのパラメーターを設定できることだと思います。これは正しいですか、それとも何かが足りませんか?
また、Webサイトのweb.configからconfigSectionsを削除すると、正常に実行されることに気付きました。具体的には、次のconfigSectionsです。
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
configSectionsもデフォルトでmachine.configで定義されているため、これを実行しても実行できることをどこかで読んでいました。では、なぜWebサイトのweb.configで再度定義するのでしょうか。いくつかのカスタム設定でmachine.configをオーバーライドすると思いますか?machine.configファイルのデフォルトの内容を判断する方法はありますか?