Where is System.ServiceModel.Web.dll?

前端 未结 7 1649
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 00:54

I am developing a Windows service that exposes a WCF service intended to be consumed by a Silverlight application, as explained in this blog post: http://mtaulty.com/Communi

相关标签:
7条回答
  • 2020-12-24 01:15

    Please look at the following folder for System.ServiceModel.Web.dll

    C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\

    0 讨论(0)
  • 2020-12-24 01:17

    Are you targetting .NET4 Full or Client Profile? The latter does not include the System.ServiceModel.Web assembly.

    0 讨论(0)
  • 2020-12-24 01:19

    I use Visual Web Developer and facing the same issue. My project is already configured targetting .Net 4.0 Framework. The solution for my case is adding reference to my my project by :

    right click on References, choose Add Reference and find System.ServiceModel.Web under .Net Tab

    0 讨论(0)
  • 2020-12-24 01:28

    Add the following reference to your project

    System.ServiceModel.Web.dll
    

    If you are not able to find System.ServiceModel.Web in - 'Add Reference' click on Component Name to sort the list.

    0 讨论(0)
  • 2020-12-24 01:36

    Check your project properties and on the Application tab make sure you have selected the full ".NET FRAMEWORK" and not ".NET FRAMEWORK CLIENT PROFILE" in the target framework combo.

    0 讨论(0)
  • 2020-12-24 01:40

    Apparently when you select .NET framework 4.0 while creating the project, Visual Studio 2010 Beta 2 actually targets .NET framework 4 client profile. Change the target framework to .NET framework 4 using project properties.

    0 讨论(0)
提交回复
热议问题