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
5
votes
0 answers

Gitlab EE - Gitlab Pages setup without wildcard domain

I can't figure out how to setup Gitlab Pages on my self-hosted Gitlab instance without wildcard domains. For example, I have 1 server with 3 public IP addresses and domain names: 10.8.0.10 (git.example.com) - main GitLab instance 10.8.0.11…
5
votes
0 answers

Owin selffhost web server is slow responding when application has multiple threads running

I have a strange issue with responsiveness of the owin self-host web server in situation when application runs multiple threads. I provided a simple example that demonstrates issue: Web server starts Apllication starts 150 (dummy threads) if you…
Adi
  • 323
  • 1
  • 2
  • 6
5
votes
4 answers

Which build of Cassini should I choose for production? There are 8 public builds from 5 different authors

I found several versions of an IIS-free Cassini webserver built by Microsoft. I'd use it but I'm unsure of which one is best, since there are many forks/builds: the original dmitryr's v3 (with corresponding bug), v3.5, and v3.5.1, A VB-based…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
5
votes
2 answers

Netsh delete all urlacl reservations of a specific port

is there any way to delete every urlacl reservation of a specific port. I mean something like this is possible (customer constelation): netsh http add urlacl url=http://localhost:55521/ user="everyone" netsh http add urlacl url=http://+:55521/…
Franki1986
  • 1,320
  • 1
  • 15
  • 40
5
votes
1 answer

Owin Self-Host WebApi Windows Authentication and Anonymous

I have a self-hosted Owin WebAPI. I want to protect a few routes with authentication. The majority of the routes should be accessible anonymously. I have succesfully implemented Windows-Auth, but now I get 401 - Unauthorized when trying to access…
Kai
  • 135
  • 2
  • 7
5
votes
1 answer

How to Deploy Owin Self Hosted Application In Production?

I have an Asp.Net Owin Self Hosted WebApi application. The application can be installed as a windows service in production environment. Currently I'm running and accessing the service via url http://localhost:8000 successfully. Now I want to map the…
Rahul
  • 2,431
  • 3
  • 35
  • 77
5
votes
1 answer

What are practical performance limitations of self-hosted owin/Nancy web server?

It is pretty clear that if you are developing a web UI for a desktop/server application owin/nancy hosting is a logical choice. It is also clear that for high traffic web site that would not be sufficient, but IIS hosting is preferable. I would like…
Andrew Savinykh
  • 25,351
  • 17
  • 103
  • 158
5
votes
1 answer

Removing Server HTTP Header in OWIN Self-Hosted Application

I have a application self-hosted OWIN application and I want to remove the Server header ("Microsoft-HTTPAPI/2.0") from all responses. When searching this on Google it looks like a very easy task e.g. this blog post from MSDN shows a solution that…
Matthias
  • 93
  • 4
5
votes
2 answers

Asp.Net vNext self-hosting within existing application

I've hunted for the answer to this one, in SO and beyond but I've not seen any answers thus far. We are looking at adding some reporting to an existing Windows Services / WPF EXE. Ideally we'd self-host a little vNext application that would expose…
penderi
  • 8,673
  • 5
  • 45
  • 62
5
votes
1 answer

How to stop SignalR server

Is there any way to stop SignalR server? I have self-hosted SignalR server as Windows service but i can't find any way to stop server/service. I tried this but it doesn't work - server keeps listening and prevents service from…
nighthawk
  • 773
  • 7
  • 30
5
votes
1 answer

Finish current requests when stopping self-hosted owin server

I have OWIN server as part of console app. You can see the main method here: class Program { public static ManualResetEventSlim StopSwitch = new ManualResetEventSlim(); static void Main(string[] args) { Console.CancelKeyPress +=…
Lukas Pirkl
  • 1,417
  • 3
  • 15
  • 31
5
votes
2 answers

Remove server header in self hosted WebApi response

We are using a self hosted WebApi and we are required to remove the server header (Server: Microsoft-HTTPAPI/2.0) of the responses sent. Since it is self hosted, a HttpModule is not an option. Implementing a DelegatingHandler, access to headers as…
MaP
  • 51
  • 1
  • 2
5
votes
1 answer

Token authentication and authorisation for a self-hosted ASP.NET Web API 2 REST service

I'm using VS2013 and Web API 2 to create a self-hosted (using OWIN), RESTful service over SSL using token authentication. Although I'm not a novice developer, this is my first time looking at ASP.NET technologies, so please keep that in mind. I've…
djikay
  • 10,450
  • 8
  • 41
  • 52
5
votes
3 answers

How Expensive are ???-Hosted WCF Services?

A co-worker and I are having a discussion about WFC services when the topic of "cost" comes up. The question is this: Given that an IIS-hosted WCF service and a Windows-Service-hosted WCF service do the exact same thing, which service will be more…
William Daniel
  • 679
  • 6
  • 14
5
votes
2 answers

Want to host WCF Webservice as Windows Service as against to Hosting in IIS

I want to expose few web services but thinking of hosting those as Windows Service as against hosting in IIS. Is it a good practice? If yes? How do I make it secured? I want to authenticate the users who are accessing it (against our custom…
Ajay
  • 746
  • 1
  • 10
  • 25