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

the format of the specified network name is invalid, WCF Self Host on Windows XP, works fine on Windows 7

WCF Self Host using WPF on Windows XP Mode SP3, .NET 4.0, works fine on Windows 7, but throws inner exception on servicehost.Open() the format of the specified network name is invalid. Stack trace at…
Chaitanya
  • 41
  • 5
0
votes
0 answers

The prefix 'xmlns' can only be bound to the namespace 'http://www.w3.org/2000/xmlns/'

I'm trying to build a ONVIF server using c# and wcf. Most are connecting just fine with my service ( ONVIF device manager and ispy ) but not exacqVision. Causing the error: A first chance exception of type 'System.Xml.XmlException' occurred…
Ginkgo
  • 1
  • 2
0
votes
1 answer

WCF Web/ServiceHost - Singletons and initialisation

I have some Service class which is defined as InstanceContextMode.Single, and is well known in the hosting application. (The host creates an instance, and passes that to the WebServiceHost) Hosting app:WebServiceHost host = null; SomeService…
Kyle
  • 1,366
  • 2
  • 16
  • 28
0
votes
0 answers

ServiceStack4+LLBLGen4.2: Templates will not compile 'ServiceHost' is undefined

We are a licensed user of ServiceStack and I am using the latest version. I've created an LLBLGen project and added the latest ServiceStack LLBLGen templates. I am able to generate the LLBLGen projects, but the XXXXProject.Services class library…
A Bit of Help
  • 1,368
  • 19
  • 36
0
votes
2 answers

Why to keep WCF Implementation and ServiceHost separately?

What is the benefit to keep the WCF project having - WEB HOST PROJECT and Service Implementaiton project separately. Service contract library Service implementation library Service Host project I understand Contract and Implementaiton to keep…
user3711357
  • 1,425
  • 7
  • 32
  • 54
0
votes
1 answer

WebException when consuming WCF Service on Windows CE device

I have a Windows CE project in Visual Studio 2008. There are multiple Web References to services hosted in IIS 6.0 on a Windows Server 2003. When I debug the app or run after it is deployed I am unable to consume the web services due to the…
field_b
  • 688
  • 5
  • 21
0
votes
1 answer

Safe to provide same service instance to multiple ServiceHosts?

Say I have a service like the following [ServiceBehavior( InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple )] class MyService { ... } Is it then OK to provide a single instance to multiple…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
0
votes
1 answer

Castle WCF DefaultServiceHostFactory in IIS: Accessing the ServiceHost

I am attempting to move from a self hosting architecture to hosting under IIS 6, primarily to take advantage of built in dynamic compression. I am using the Castle DefaultServiceHostFactory to provide the service to IIS in the .svc file. However, I…
user250837
  • 81
  • 5
0
votes
1 answer

Stop all application operation before ServiceHost closes or stops

I have a class that inherits from the ServiceBase class. On the OnStop method, I stop the ServiceHost: protected override void OnStop() { if (this.serviceHost != null) { this.serviceHost.Close(); } } The thing is, I want to let…
MilkTea027
  • 301
  • 1
  • 5
  • 24
0
votes
1 answer

The channeldispatcher is unable to open its ichannellistener

I am starting out with WCF. I have created two console apps (server and client) that work without any issues but since moving them onto forms I'm having all kinds of problems. I had a look here and elsewhere on the net, I can't seem to find anything…
janderson
  • 963
  • 4
  • 14
  • 26
0
votes
1 answer

Streamed Service - netTCPBinding - Service builds, installs, but will not Start

I have a WCF service that uses netTcpBinding, transferMode="Streamed", and is installed via installutil via the Windows Process Activation Services method. The service builds and installs just fine. I have all the correct rights for NETWORK…
Zack Jannsen
  • 622
  • 7
  • 17
0
votes
2 answers

Can 2 instance of ServiceHost be in one application?

I have the app, where already there is the service. ServiceHost serviceHost = null; serviceHost = new ServiceHost(typeof(*.*.*.*.com.MapViewPortTypeClient), new Uri(uri)); Can i create another instance of ServiceHost in this application, for…
novicegis
  • 519
  • 3
  • 5
  • 13
0
votes
1 answer

Is Dispose neccessary for the class I put in ServiceHost

I am hosting my WCF Services in a Managed Application. I use ServiceHost class for this. Regarding the class I am hosting inside the ServiceHost, should implement IDispoable ? When it will be called if i implemented :IDisposable ? When i call…
ilansch
  • 4,784
  • 7
  • 47
  • 96
0
votes
1 answer

MSMQ and only use one Thread in Server

We have a WCF ServiceHost, wich has a few different Endpoints. One of the Endpoints uses MSMQ. Now we have the Problem, that the Server uses multiple Threads to read from this Endpoint! Is it possible to tell WCF to allow only one Thread using this…
Jochen Kühner
  • 1,385
  • 2
  • 18
  • 43
0
votes
1 answer

How do I add an ErrorHandler to my EndpointBehaviour in app.config

So I stand up a few ServiceHosts with the Spring.net proxy objects and all is well. I now want to add a custom error handler in xml. I can stand it up in spring if necessary, but I have no clue how to do this. My app.config is as follows:
1 2 3
10
11