Re: The type or namespace name `WebHttpBinding' could not be found. Are you missing an assembly reference?

Alexander Köplinger <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <CALH18MEqXmZz3nMW9xCq-DGkYs_QLuVbuj7eD5+peu2uvh=jVA@mail.gmail.com>
Don't use the NuGet packages for this, add a normal framework reference to
the GAC assembly.

2016-04-18 0:39 GMT+02:00 Jordan Zimmerman <[email protected]>:

> farg - Xamarin can’t handle it.
>
> The 'System.ServiceModel.Http 4.0.10' package requires NuGet client
> version '3.0' or above, but the current NuGet version is '2.8.7.0'.
>
>
> On Apr 17, 2016, at 5:06 PM, Alexander Köplinger <
> [email protected]> wrote:
>
> WebHttpBinding sits in System.ServiceModel.Web, so you need to add a
> reference to that one.
>
> - Alex
>
> 2016-04-17 22:49 GMT+02:00 Jordan Zimmerman <[email protected]>:
>
>> Hello,
>>
>> I’m a total mono newbie and am trying to play around with WCF. While
>> other bindings are compiling without problem, WebHttpBinding is not
>> working. I’ve used the Add NuGet packages to add anything I can think of
>> but the code still doesn’t compile. I downloaded everything today so I
>> assume I have the latest greatest everything. Note, I’m running on a
>> MacBook Pro with El Capitan.
>>
>> Any ideas?
>>
>> Here are my imports:
>>
>> using System;
>> using System.Collections.Generic;
>> using System.Linq;
>> using System.Text;
>> using System.ServiceModel;
>> using GettingStartedLib;
>> using System.ServiceModel.Description;
>> using System.ServiceModel.Web;
>>
>> Here’s the line of code:
>>
>>                 selfHost.AddServiceEndpoint(typeof(ICalculator), new
>> WebHttpBinding(), "CalculatorService");
>>
>> -Jordan
>>
>> _______________________________________________
>> Mono-list maillist  -  [email protected]
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>
>
>

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.