开发者

Why can't I reference the project I created earlier from my wcf service class library?

开发者 https://www.devze.com 2023-02-12 16:46 出处:网络
Warning1The referenced assembly \"C:\\Users\\rzv\\Desktop\\CompanyAnalyse开发者_C百科1.0\\AnalyserModel\\bin\\AnalyserModel.dll\" could not be resolved because it has a dependency on \"System.Web, Ve

Warning 1 The referenced assembly "C:\Users\rzv\Desktop\CompanyAnalyse开发者_C百科1.0\AnalyserModel\bin\AnalyserModel.dll" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

Why do I get this? AnalyserModel is a class library that uses Entity framework code first 5 to save data in a database. I tryed to create a new WCF service application that uses the methods in AnalyserModel. What is wrong?


You need to change the target framework from 4.0 client profile to 4.0. you can do this on the projects properties page.

0

精彩评论

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

关注公众号