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

IIS: URL Rewrite /signalr/ and /api/ to port 8080

I have a self-hosted API running on port 8080. On port 80 is my web server (IIS 7.5) with a website I can't touch. I added an application "MyApiTestsite". Now all requests to /api/ or /signalr/ I would like to forward to port…
Dunken
  • 8,481
  • 7
  • 54
  • 87
8
votes
2 answers

Signalr cast IHubContext to actual Hub

I'm wondering if it's possible to Cast the result of var hub = GlobalHost.ConnectionManager.GetHubContext(); To my actual ChatHub class. Because GlobalHost.ConnectionManager.GetHubContext() as ChatHub fails On my ChatHub class I…
user1613512
  • 3,590
  • 8
  • 28
  • 32
8
votes
2 answers

HTTP 413 Request Entity Too Large In Self-Hosting WCF Service

I have a self-hosting WCF service accepting messages via HTTPS. A message is being sent from a Java application, which receives the response: HTTP/1.1 413 Request Entity Too Large Content-Length: 0 Server: Microsoft-HTTPAPI/2.0 Date: Wed, 19 Sep…
Fenton
  • 241,084
  • 71
  • 387
  • 401
7
votes
3 answers

Can I automatically host all services in app.config when using SelfHosting?

I'm writing an application which needs to host several WCF services. One of the strengths of WCF is the ability to configure services without having to recompile, by specifying settings in the app.config file. When self-hosting, there does not…
Travis
  • 2,654
  • 4
  • 26
  • 46
7
votes
1 answer

How do I configure Postfix to only relay emails from a specific domain?

I've already answered my own question and may later update this question to reflect on my starting point/the steps I took to get to my solution, but figured I would ask a question that I started with and the result that took me an unreasonable many…
jsonV
  • 1,650
  • 2
  • 9
  • 23
7
votes
1 answer

Which values does WebHost read from appsettings.json

In .Net Core you can self host a web server using WebHost. There is a method called CreateDefaultBuilder(), to which the Microsoft documentation states the following: CreateDefaultBuilder performs the following tasks: Loads app configuration…
TheHvidsten
  • 4,028
  • 3
  • 29
  • 62
7
votes
1 answer

How to UrlDecode without having System.Web dll in c#

I'm about to create a self-hosted Web API application, and somewhere I need to URL Decode the input. But I truly don't want to add a reference to System.Web.dll, because AMAIK, it's a heavy DLL and one of the main reasons of getting far from ASP.NET…
h.Ebrahimi
  • 87
  • 1
  • 7
7
votes
5 answers

Simple self-hosted website monitoring

I'm looking for a simple self hosted website monitoring tool. It should be somthing similar to watchmouse.com or pimgdom.com, with a nice UI, colorful charts and so on (Customers like that :)). At the moment we use Zabbix also for HTTP monitoring,…
Bernhard Rusch
  • 454
  • 4
  • 7
7
votes
2 answers

How to manage SSL key for self host HTTPS

I have Windows service that listens for https requests on an end user's machine, is there an accepted way of creating or distributing the private key in this circumstance? Should I be packaging a real key specifically made for localhost requests…
Jussi Kosunen
  • 8,277
  • 3
  • 26
  • 34
7
votes
2 answers

Self-hosted alternative to hub.docker.com?

I'd like to set up a private version of hub.docker.com that would let me create a webhook pushed by my private gitlab instance. In other words - when I push to Gitlab, this Docker registry would check out the repository and build it. I need this to…
d33tah
  • 10,999
  • 13
  • 68
  • 158
7
votes
0 answers

SignalR - Issues restarting SignalR in self-hosted process

I've got SignalR running successfully in a self-hosted process (currently a WinForm host). Clients can connect with their browsers and interact perfectly. The problem comes when I need to restart the game realm without killing the host process…
Vitoc
  • 101
  • 1
  • 9
7
votes
1 answer

How to configure OData end point in a self-hosted Web API application

I'm building an OWIN self-hosted Web API 2 service. I need for this service to expose OData end points. The traditional IIS-hosted method involves App_Start/WebApiConfig.cs: using ProductService.Models; using System.Web.OData.Builder; using…
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
7
votes
1 answer

How to specify ServiceHostFactory for self-hosted WCF service with no SVC file

My application runs as a Windows service. It dynamically creates WCF services using the following helper method: public static void StartWebService(string webServiceName, Type serviceContractType, Type serviceImplementationType) { if…
Laurence
  • 980
  • 12
  • 31
7
votes
3 answers

WCF Self Host Service - Endpoints in C#

My first few attempts at creating a self hosted service. Trying to make something up which will accept a query string and return some text but have have a few issues: All the documentation talks about endpoints being created automatically for each…
Kyle
  • 1,366
  • 2
  • 16
  • 28
7
votes
2 answers

Why am I getting this ActivationException when using Simple Injector with WebApi Self Hosted in OWIN?

I have a very simple Web Api v2.2 self hosted in OWIN public class StartUp { public void Configuration(IAppBuilder appBuilder, IConfigReader configReader) { var container = new Container(); container.Register
MaYaN
  • 6,683
  • 12
  • 57
  • 109