Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is System.ServiceModel.Web.dll?

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/CommunityServer/blogs/mike_taultys_blog/archive/2008/03/27/10291.aspx

The problem I am facing is that I need to use the WebInvoke attribute, which is defined in the System.ServiceModel.Web.dll assembly, but when I try to add a reference to that assembly in the project (by using Visual Studio's Add Reference dialog - .NET tab), there is no assembly with that name.

So, am I doing something wrong, this assembly is not part of the standard .NET Framework, or it is a bug in Visual Studio? By the way I'm using VS2010 beta 2 and the project targets .NET Framework 4.

like image 787
Konamiman Avatar asked Dec 01 '09 10:12

Konamiman


People also ask

How do I install system ServiceModel?

ServiceModel. Select Project-> Add Reference and then select the assembly name. Thank you for your answer!

What is System ServiceModel used for?

EndpointAddress Class (System.ServiceModel)Provides a unique network address that a client uses to communicate with a service endpoint.


2 Answers

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

like image 56
MattC Avatar answered Sep 19 '22 18:09

MattC


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.

alt text

like image 26
Hemant Avatar answered Sep 21 '22 18:09

Hemant