前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >IIS发布WCF问题

IIS发布WCF问题

作者头像
数据分析
发布2018-03-01 16:26:41
9360
发布2018-03-01 16:26:41
举报
文章被收录于专栏:数据分析数据分析

Server Error in '/' Application.


Configuration Error

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 3: Line 4: <system.web> Line 5: <compilation debug="false" targetFramework="4.0" /> Line 6: </system.web> Line 7: <system.serviceModel>

Source File: C:\inetpub\wwwroot\EvalserviceSite\web.config    Line: 5


Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456

发生上面问题的主要原因是当前vs工程使用的时.NET4.0的版本,而IIS上默认的该website的.Net Framework Version 是低于4.0的版本

打开 IIS: 自己电脑名字 -> Application Pools ->website名字->右键单击->选择“Basic setting...” -> “.Net Framework version”(选择 .Net Framework v4.0)->确定。

如果不起作用关掉IIS,重新打开一下

Open  IIS: "My computer name" -> Application Pools -> your website name(.Net Framework Version)->right click->Basic setting... -> .Net Framework version(select .Net Framework v4.0)->OK

如果想一劳永逸那就直接选择“Set Application Pool Default...”,在里面的 ”.Net Framework version“选择"v4.0",关闭IIS重新打开全部会设置为4.0版本的.NET Framework version。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2012-04-27 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Server Error in '/' Application.
    • Configuration Error
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档