我在使用VS2010 和.NET Framework  4.0 。开发了一个简单的WCF服务,在部署到IIS6的时候,出现了这个错误。
    Unrecognized attribute 'targetFramework' .
【1】错误信息:
  WCF服务的配置文件的信息如下:
<compilation debug="true" targetFramework="4.0">
    <assemblies>
    </assemblies>
</compilation>
【2】错误截图:
WCF分布式开发常见错误(29):未识别的属性'targetFramework'

  


  在网站属性的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" 。如图所示:
WCF分布式开发常见错误(29):未识别的属性'targetFramework'
参考资料:

转载于:https://blog.51cto.com/frankxulei/320935

相关文章:

  • 2021-08-31
  • 2021-11-23
  • 2022-03-01
  • 2021-10-01
  • 2022-02-13
  • 2022-01-19
  • 2021-04-26
猜你喜欢
  • 2022-12-23
  • 2021-10-20
  • 2021-07-08
  • 2021-04-18
  • 2022-01-02
相关资源
相似解决方案