All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
WCF分布式开发常见错误:-Unrecognized,attribute,’targetFramework’,(未识别的属性’targetFramework’,)_.net资料_编程技术

Writer: aaa Article type: Programming skills(编程技巧) Time: 2013/12/18 8:05:20 Browse times: 376 Comment times: 0

WCF分布式开发常见错误:-Unrecognized,attribute,’targetFramework’,(未识别的属性’targetFramework’,)_.net资料_编程技术


Head photo

uploadfile
Go homepage
Upload pictures
Write articles

WCF分布式开发常见错误::Unrecognized attribute 'targetFramework' (未识别的属性'targetFramework' )_.net资料_编程技术-你的首页-uuhomepage.com

我在使用VS2010 和.NET Framework  4.0 。开发了一个简单的WCF服务,在部署到IIS6的时候,出现了这个错误。

  Unrecognized attribute 'targetFramework' .

  【1】错误信息:

  WCF服务的配置文件的信息如下:


    
    

  【2】错误截图:

(注:点击图片查看原图!)

  查看原图(大图)

  【3】原因分析:

  这个错误是由于,.NET Framwork的版本不对导致的,无法识别出配置文件中的节点。

  【4】解决办法:

  在网站属性的asp.NET里设置版本为.NET

  In IIS >  Right click on WebSite > Properties > ASP.NET > Version > "4.0.21006" not 2.0。

  IIS6>  选择网站-> 右键-> 属性-> ASP.NET -> 版本-> "4.0.21006" 。如图所示:

(注:点击图片查看原图!)

  查看原图(大图)






There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.