Questions tagged [servicehost]

Implements the hosting object used to host a WCF service in self-hosted scenarios. Used for loading a service, configuring endpoints, applying security settings, and starting listeners to handle incoming requests.

Implements the hosting object used to host a WCF service in self-hosted scenarios. Used for loading a service, configuring endpoints, applying security settings, and starting listeners to handle incoming requests.

161 questions
0
votes
1 answer

WCF Service host using ServiceHostFactory with Multiple Binding

I have created WCF service to host on IIS. I am using ServiceHostFactory method to host my service(using Unity as DI). I want to host my service using multiple binding, over the HTTP as well as over the TCP. I tried giving base address, but its not…
0
votes
1 answer

How to use duplex in netnamedpipe in wcf 4.0

Is there any way that we can use netnamedpipe binding with duplex ? I am getting the following error. Contract requires Duplex, but Binding 'NetNamedPipeBinding' doesn't support it or isn't configured properly to support it. ServiceHost host…
0
votes
1 answer

Why is an InstanceContextMode.Single service disposing the singleton on Close?

I have a WCF (4.0) service that is decorated as InstanceContextMode.Single and the class implementing the service is follows a Singleton pattern. I first create the singleton instance of my service implementation with the Instance attribute. Then I…
0
votes
1 answer

Host WCF service in WinForms application

I use the same WCF service as here: How to consume wcf service running as windows service in ajax client And I want to show All available methods from browser by view hp://localhost:8732/TestService But I get message: **Endpoint not found. Can I…
Superjet100
  • 129
  • 1
  • 11
0
votes
1 answer

ServiceHost message receive event?

Surely there must be an event to attach onto before a ServiceHost or Channel or Dispatcher handles a message? I'm assuming it can be accessed through OperationContext.Current, but the closest events I can find are Opening and Closing. Is there…
Axl
  • 8,272
  • 2
  • 26
  • 18
0
votes
1 answer

Increase the maxRequestLength/executionTimeout of a ServiceHost in C#

I have a winForms application running on a server and I access it from another application via a Service which is running over a ServiceHost. The problem is, when the data which the client wants to get from the ServiceHost is to big I get a…
gurehbgui
  • 14,236
  • 32
  • 106
  • 178
0
votes
1 answer

how to close a channel factory correctly?

I would like to know how to close a channelFactory correctly. Actually, I'm using: try { factory.Close(TimeSpan.FromSeconds(0.25)) } catch { factory.Abort(); } But to the ServiceHost side, and unhandled exception reach the domain level (top…
0
votes
1 answer

Getting HTTPS to Work with WCF and a Windows Service

I tried updating the App.config files for the client and service for the MS sample applications in WF_WCF_Samples\WCF\Basic\Services\Hosting\WindowsService\CS\WindowsService.sln so that secure bindings were used but when the client makes the call to…
Mikey
  • 1
  • 1
0
votes
3 answers

Is it possible to run a ServiceHost where they type has a generic?

For example // Create a ServiceHost for the Service type and // provide the base address. mServiceHost = new ServiceHost(typeof(T)); // Open the ServiceHostBase to create listeners and start // listening…
Gary
  • 3,254
  • 2
  • 27
  • 30
0
votes
3 answers

Deploying java web service without server application

I am looking to deploy a Java Web Service without needing a server application. I know that I can deploy C# WCF services by hosting the executable file (ServiceHost class in C#), but can I do a similar thing in Java?
Rafko1003
  • 1
  • 1
-1
votes
1 answer

Host Service to listen Responses from Web Service in UWP

In UWP I can not host service using ServiceHost class as it is not available. Can anyone provide any alternative to host a service that implements a contract and listens on a specified URL? My requirement is to host a service with a URL that…
SiD
  • 109
  • 1
  • 8
1 2 3
10
11