“System.Web.Extensions程序”麻烦IIS7上部署.Net框架4网址 [英] 'System.Web.Extensions' trouble deploying .Net Framework 4 Website on IIS7
问题描述
好吧,我想部署.NETFramework 4 IIS7的网站服务器上。我已经改变了应用程序池的目标框架.NET 4中,但应用程序仍然显示我的错误:
Okay, I am trying to deploy a .Net framework 4 website on IIS7 server. I have already changed the application-pool's target framework to .Net 4, but the app is still showing me the error:
配置节System.Web.Extensions程序无法读取,因为它缺少一个段声明的
我猜测有事情做与.NET4的新功能,可以让我有一个小型的Web配置文件。我认为,由于某种原因,IIS7不开心与此有关。
I am guessing that has something to do with the new feature of .Net4 that lets me have a compact Web config file. I think for some reason IIS7 is not happy with this.
我能做些什么,才能成功部署该应用程序或我必须缩减到V3.5?我相信有一个解决方案在那里。
What can I do to deploy this app successfully or do I have to scale back to v3.5? I am sure there is a solution out there.
你有什么建议吗?
推荐答案
您也可以得到这个同样的错误,如果你创建在IIS 7中一个新的网站(0.5)的应用程序池,它创建新网站仍可能被设置为2.0,并且同样地, System.Web.Extensions程序
不处于2.0配置文件有效。
You can also get this very same error if you create a new website in IIS 7(.5) as the application pool it creates for the new site may still be set to 2.0, and as such, system.web.extensions
is not valid in a 2.0 configuration file.
只需进入IIS管理器,选择应用程序池,选择适合你的应用程序,右击,高级设置,设置的.NET framework版本为V4。
Simply go into IIS Manager, choose the application pools, select the one for your app, right-click, Advanced Settings and set .NET framework version to v4.
这篇关于“System.Web.Extensions程序”麻烦IIS7上部署.Net框架4网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!