3
我有一個.NET Web應用程序安裝在IIS 7.0 Windows Server 2008 R1上。我在服務器上安裝了.NET 4.0,併爲4.0和集成管道配置了應用程序池。出於某種原因,我收到以下錯誤:.NET使用錯誤的2.0 machine.config而不是4.0
(500.19) The configuration section 'system.web.extensions' cannot be read because
it is missing a section declaration.
看來,它使用從V2.0 .NET,而不是已定義的system.web.extensions
配置部分的machine.config
文件錯誤machine.config
文件。我通過用V2.0框架中的machine.config
文件替換V4.0框架中的文件來證明這一點,並且Web應用程序不再拋出500.19
錯誤。我試圖卸載並重新安裝.NET 4.0以及運行aspnet_regiis -i
。
任何想法爲什麼它會試圖使用2.0 machine.config
?
你運行'aspnet_regiis -iru'來註冊ASP.NET 4與IIS? –
我沒有嘗試過這些參數,但我只是做了,仍然得到了錯誤。 – user1661270