Questions tagged [self-hosting]

Operating independently of a hosting infrastructure

Self-hosting refers to a program or service which does not require a hosting environment. This term is often used to describe WCF web services that do not require IIS as their web host - a self-hosted WCF service establishes its own HTTP endpoints and listeners and is responsible for its own routing, security, and configuration management.

772 questions
0
votes
1 answer

Hosting Microsoft.ServiceModel.WebSockets.WebSocketService

I was reading this article about WCF Websockets, and there is a nice example of a WebSocket service using Microsoft.ServiceModel.WebSockets.WebSocketService, that looks perfect for a thing I want to do, clean and simple. First of all, I have found…
vtortola
  • 34,709
  • 29
  • 161
  • 263
0
votes
0 answers

WCF SecurityNegotiationException

I'm working on a WCF Service, sincerely I am new to WCF, and I'm stuck pretending to do a service with Message Security, self-hosted and using wsHttpBinding. I get the next exception: System.ServiceModel.Security.SecurityNegotiationException:…
Ponciano
  • 41
  • 7
0
votes
1 answer

Selfhosting WCF Service and basicHttpBinding: A Windows identity that represents the caller is not provided by binding

I have a self hosting wcf service in a console application. A simple self hosting service is no problem, there are enough examples. Now I want to impersonate the caller of the wcf service. Although I followed this msdn article …
0
votes
1 answer

Hosting a WCF service from within a Windows Service. cannot be reached

So I have a windows service running as Local System. this windows service then starts off a WCF service. From my machine there is no problem and works fine. From a test console application, on the target machine, it works fine From a windows…
Squirrel5853
  • 2,376
  • 1
  • 18
  • 34
0
votes
1 answer

WCF REST Service (self-hosted) accessible only in local network (and must be accessed remotely)

I have a self-hosted REST service (in C#) which works perfectly in my local network, but is unreachable remotely. Here is my hosting code: static Uri baseAddress = new Uri("http://m.y.i.p:8080"); WebServiceHost serviceHost = new…
jRicardo
  • 804
  • 10
  • 20
0
votes
1 answer

WCF error, service does nothing

I am currently getting the following error when calling a WCF service: The server was unable to process the request due to an internal error However I can't understand how this could be as the method I am running doesn't actually do…
Nick Williams
  • 1,237
  • 6
  • 19
  • 40
0
votes
1 answer

Self-Hosting WCF for AJAX Client

I'm trying to self-host a WCF web service and provide a HTTP endpoint with ajax support. Pretty much everything I've found about WCF and AJAX are talking about IIS, which I don't want to use. I've build a simple Console App to host the service. My…
subb
  • 1,578
  • 1
  • 15
  • 27
0
votes
1 answer

Castle Wcf facility self hosting - Repository lifestyles

I'm self hosting my WCF services using Castle windsor on windows service. Before this I was hosting them on IIS and I was registering my Repository objects (am following repository pattern with EF 5.0 as ORM) as PerWebRequest. It was working while…
Sai
  • 629
  • 1
  • 8
  • 26
0
votes
2 answers

SignalR HTTPS client

Using SignalR 0.53 and self-hosting with OWIN, I was able to have an HTTPS client connect successfully to a non-HTTPS localhost port. I have now upgraded to SignalR 1.1.2. I have enabled cross-domain have have non-HTTPS clients connecting…
devlish
  • 76
  • 5
0
votes
1 answer

How do I forward/redirect all requests from HTTP to HTTPS in NancyFX SelfHost?

I'm trying to get it so that any requests made to: http://:1234 are redirected to: https://:1234 I've tried using "this.RequiresHttps()" in modules, but when I hit the url http://:1234, the browser just spins, and I'm…
ymerej
  • 727
  • 1
  • 8
  • 21
0
votes
1 answer

Self hosted WCF service not responding after several hours of being idle

I have hosted WCF service in a console application which is expected to run 24/7 and respond to requests from several applications. It works great if it gets requests continuously or even after 4 hrs of idle time. The code written to host the…
Vim
  • 559
  • 5
  • 16
0
votes
1 answer

Self-hosted WCF: automatically create service hosts and enable dependency injection with Autofac

I'm working on a Windows Service with a number of self-hosted WCF services. I'm using Autofac for DI/IoC. WCF services and endpoints are set up in app.config, and by enumerating the configured services, the Windows service is able to automatically…
bernhof
  • 6,219
  • 2
  • 45
  • 71
0
votes
1 answer

Signing Windows Executables with self-hosted certificate

The question has already been asked and answered about how one can 'sign' a Windows executable; however, the answer requires the ongoing expense of a hosted certificate. My company already has a VPS which we use for WWW, email and version control,…
0
votes
1 answer

Calling selfhosted WCF service from Windows Phone 8 Emulator

My selfhosted WCF wervice works fine with any browser on the domain, and also with a WinForm client. In a Windows Phone 8 app I can create Service References OK. Trying to consume the service from within the app running in the emulator it causes…
0
votes
1 answer

WCF Service in Windows Form Application

I'm newbie in WCF. I have some questions need to be answered. Can I use WCF to make a simple chat application from a client to a client (via WCF Service) ? I have tried follow many examples, And i got a problem. I don't think that IIS need to be…
Hai Tran
  • 107
  • 1
  • 11