Cause:1) 没有向iis中注册.net framework(引起的原因之一:先安装了.net framework,后安装的iis)
2) 没有对IIS中所配置的site有足够的操作权限(Modify权限)
Solution:
1)?到C:WindowsMicrosoft.NETFramework64v2.0.50727下,
用命令向iis中重新注册一下.net framework:aspnet_regiis -i
2) IIS Manager --> Sites --> 相应的site?-->?点击右键?-->?Edit Permissions?-->?Security?-->?Group or user names?-->?Edit?-->?Add?-->?添加赋予Full Control权限(实质上带有Modify的权限就可以)的Everyone用户
Description:?An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.?Parser Error Message:?Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.Source Error:?
Line 9: </connectionStrings> Line 10: <system.web> Line 11: <compilation debug="true" targetFramework="4.0"/> Line 12: <authentication mode="Forms"> Line 13: <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
Source File:?C:UsersEricSunDocumentsVisual Studio 2010WebSitesSSOAuthWebSite1web.config??? Line:?11?
Version Information:?Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET Version:2.0.50727.4955
?
Cause:当前程序所运行的.NET Framework版本与IIS中相应site所设置的.NET Framework版本不相同
Solution:启动IIS Manager?-->?Application Pools?-->?选择相应的Name(site)?-->?点击右键?-->?Advanced Settings?-->?(General).NET Framwork Version?-->?由2.0更改到4.0即可
通过编辑 Web 服务所在的 vroot 的 Web.config 文件,可以启用 HTTP GET 和 HTTP POST。以下配置同时启用了 HTTP GET 和 HTTP POST: <configuration> ??? <system.web> ??? <webServices> ??????? <protocols> ??????????? <add name="HttpGet"/> ??????????? <add name="HttpPost"/> ??????? </protocols> ??? </webServices> ??? </system.web> </configuration>
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!