Tôi đang cố gắng thêm
<location inheritInChildApplications="false">
vào web.config ứng dụng web của cha mẹ tôi nhưng có vẻ như nó không hoạt động.
Cha mẹ tôi web.configcó:
<configuration>
<configSections>
</configSections>
// 10 or so custom config sections like log4net, hibernate,
<connectionStrings>
</connectionStrings>
<appSettings>
</appSettings>
<system.diagnostics>
</system.diagnostics>
<system.web>
<webParts>
</webParts>
<membership>
</membership>
<compilation>
</compilation>
</system.web>
<location ..>
<system.web>
</system.web>
</location>
<system.webServer>
</system.webServer>
Ứng dụng web con tôi được thiết lập dưới dạng một ứng dụng trong IIS và kế thừa từ cha mẹ web.configđang gây ra sự cố.
Tôi nên đặt chính xác ở đâu
<location inheritInChildApplications="false">
vì vậy nó bỏ qua tất cả các cài đặt web.config khác nhau?