The type or namespace name 'ServiceHost' does not exist in the namespace 'System.ServiceModel'

0 votes

So, I'm attempting to add this wcf service in an app for Windows IoT(Raspberry Pi) using Visual Studio 2015.

Now, I can't add a reference 'on the usual way' .So, I tried adding a nuget reference to System.ServiceModel.

        using (var host = new System.ServiceModel.ServiceHost (typeof(HelloWorldService), _baseAddress))
        {

        }

How can I reach the ServiceHost? Resharper doesn't help either!

Mar 14 in IoT (Internet of Things) by Upasana
• 8,550 points
151 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In IoT (Internet of Things)

0 votes
1 answer

Does executable exist in Python?

This is a way I can think ...READ MORE

answered Sep 21, 2018 in IoT (Internet of Things) by Upasana
• 8,550 points
44 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

The MQTT folder is missing in Bluemix IoT NodeJS code,

IoT-Workbench now uses new improved code generation ...READ MORE

answered Aug 8, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
67 views
0 votes
1 answer

Finding the Unicast, DNS and Gateway Address in UWP

Try the PInvoke api methods from Iphlpapi.dll. ...READ MORE

answered Aug 20, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
57 views
0 votes
1 answer

What is the time taken by a 200 byte message for transmission in a beacon-enabled network?

Now, data rates of IEEE 802.15.4 are ...READ MORE

answered Aug 23, 2018 in IoT (Internet of Things) by Upasana
• 8,550 points
56 views
0 votes
1 answer

Visual Designer errors when there are no other errors

Verify none of your custom user controls ...READ MORE

answered Sep 25, 2018 in IoT (Internet of Things) by Annie97
• 2,190 points
36 views