开发者

Running WCF 3.5 app under .NET 4.0 website

开发者 https://www.devze.com 2023-01-08 06:28 出处:网络
I have a 开发者_StackOverflowwebsite that is hosted on IIS6 and set to use .NET 4.0, but I still have a WCF service on the site that is using 3.5.When i browse my svc file, i get the error:

I have a 开发者_StackOverflowwebsite that is hosted on IIS6 and set to use .NET 4.0, but I still have a WCF service on the site that is using 3.5. When i browse my svc file, i get the error:

unrecognized attribute 'targetFramework'

and it point to the websites root web.config. I have tried this MSDN article and still get the same error. My site is using a different app pool than my WCF service, and is configured to use 4.0 in the ASP.NET tab of properties. I have also checked and made sure that my WCF service is using 3.5(2.0) in its ASP.NET properties tab.


IIS6 does not do mixed framework versions well. If you can switch to iis7 or bring both projects to the same .net version that will remedy the problem


Why don't you run your WCF under 4.0? Most stuff should be compatible.

0

精彩评论

暂无评论...
验证码 换一张
取 消