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
2
votes
2 answers

NServiceBus and wcf ServiceHost

I have a wcf ServiceHost which has to publish a message to the IBus. How do I gracefully gain access to the IBus from the host class (which is instatiated by wcf)?
Stig
  • 1,974
  • 2
  • 23
  • 50
2
votes
1 answer

Alternate for ServiceHost in .Net 5

Currently i am migrating my class library project from .net framework 4.6.1 to .Net 5. where i am using ServiceHost class to host wcf server. As The WCF Server functionality will not be supported in .Net. what is the work around for this. public…
Khyati Desai
  • 41
  • 1
  • 6
2
votes
1 answer

A registration already exists for URI after stop/start

I am currently working on an application where I am creating a ServiceHost, then getting rid of it, then recreating it later. The problem is that once I get rid of the service host when I try to recreate it I get the exception "A registration…
thecaptain0220
  • 2,098
  • 5
  • 30
  • 51
2
votes
1 answer

WCF client cannot connect to WCF service hosted in IIS via ServiceHost?

I have this scheme: IIS hosts: OperatorService.svc (connects to ClientService) Global.asax (on start): hosts ClientService via ServiceHost WPF client connects to ClientService If I go to OperatorService the service is activated, web application…
SmartK8
  • 2,616
  • 1
  • 29
  • 37
2
votes
0 answers

WCF Service Host Thread

Ive set up a ServiceHost using WCF, as such: Everything works fine, Server opens up ok, Clients can connect, etc.. The issue is that the main C++ application gets laggy when the Clients connect to the ServiceHost. Is there any way to solve this…
Hennio
  • 433
  • 2
  • 18
2
votes
3 answers

WCF Service Host using Console App

Is there a way to automatically add entries to the App.config of a console application that will be used a host for a WCF service or do I need to make those entries manually? I am referring to the section in App.config file to…
raring sunny
  • 191
  • 1
  • 3
  • 16
2
votes
3 answers

Programmatically configure ServiceHost endpoints with HTTPS?

I'm using Fileless Activation, here is my full web.config on the server side, which has two endpoints:
BBauer42
  • 3,549
  • 10
  • 44
  • 81
2
votes
1 answer

How can I tell whether a WCF service is hosted in a Console app?

I have a WCF service under development, and often switch between hosting in a Windows Service, and hosting in a Console app. The service and console app share one config file, so how else can I tell, in my WPF client, if the service is hosted in the…
ProfK
  • 49,207
  • 121
  • 399
  • 775
2
votes
2 answers

WCF Service worker thread communicate with ServiceHost thread

I have a windows NT Service that opens a ServiceHost object. The service host context is per-session so for each client a new worker thread is created. What I am trying to do is have each worker thread make calls to the thread that started the…
Brent
  • 21
  • 3
2
votes
1 answer

Can AppDomainSetup.ConfigurationFile be loaded from database?

I'm working on a WCF host by using ServiceHost and dynamically creating several application domains to keep my services up. I'm also planning to keep my assemblies on database and load them by using Assembly.Load(byte[]) But now I stumbled on a…
Rubens Farias
  • 57,174
  • 8
  • 131
  • 162
2
votes
0 answers

Ninject WCF extention with already existing ServiceHostFactory and ServiceHost

We have a difficulty to use Ninject wcf extensions. We host our services in IIS and using svc files. We have read a lot of posts describing usage of NinjectServiceHostFactory(in svc files) with NinjectHttpApplication (in global.asax file) and it…
Sveta
  • 21
  • 2
2
votes
2 answers

console application host wcf service interaction

What's the most simple way that a WCF Service, that's being hosted by a console application , can interact with the said console application, to do a Console.WriteLine() ie. Some code: The contract: [ServiceContract(Name = "IProdsService")] public…
RASMiranda
  • 371
  • 6
  • 19
2
votes
1 answer

WCF Service Faulted when deployed on Azure with Ninject

I have been getting the following error since this morning :( The requested service, 'http://10.175.156.xx:yyyyy/SomeService.svc' could not be activated. See the server's diagnostic trace logs for more information. When I opened up the svc logs on…
qmo
  • 3,128
  • 3
  • 17
  • 23
2
votes
1 answer

How to remove a Byte[] on the Large Object Heap that is being held by ServiceHost

I have a WCF Service was uses the HTTP protocol. When a particularly large query hits the system, it creates a large Byte[] that leads up through buffers to HttpChannelListener and eventualy to the Service Host itself. This stays there even after…
gin drskvy
  • 305
  • 2
  • 11
2
votes
0 answers

How unit test WCF Services / Service Host initializes DI, AutoMapper, bootstrapping, global error handling properly?

I have several things that I haven't figured out how to test because they are tightly integrated to the WCF pipeline. Maybe I should ask how to integration test? Here's my situation, two parts: 1) To bootstrap my DI (I'm using Unity Container), I…
Raymond
  • 3,382
  • 5
  • 43
  • 67