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

SignalR.Owin vs. SignalR.SelfHost

I want to use SignalR selfhosted with Owin. What are the differences between these two packages: Microsoft ASP.NET SignalR OWIN and Microsoft ASP.NET SignalR Self Host When to use one or other?
CPA
  • 2,923
  • 4
  • 30
  • 52
11
votes
1 answer

WebApi with OWIN SelfHost and Windows Authentication

I have a console application SERVER that hosts WebApi controllers using OWIN self-hosting, and runs under a custom account named "ServiceTest1". In the same machine I have another console application CLIENT that runs under the account…
vtortola
  • 34,709
  • 29
  • 161
  • 263
11
votes
3 answers

Autofac error: Could not load file or assembly 'System.Web.Http, Version=5.2.0.0,...' My project is Owin WebApi2 SelfHost

I have a simple project which uses Microsoft.AspNet.WebApi.OwinSelfHost. It is a Owin self hosted WebApi 2 project.The project is pretty much similar to:- https://github.com/attilah/AngularJSAuthentication The only difference I have is my Security…
amitthk
  • 1,115
  • 1
  • 11
  • 19
11
votes
1 answer

Unit Testing Web API using HttpServer or HttpSelfHostServer

I am trying to do some unit testing in for a Web API project. I am going simulate the web API hosting environment. It seems like that I could use In memory host (HttpServer) or self host (HttpSelfHostServer). Just wondering what are the difference…
Stay Foolish
  • 3,636
  • 3
  • 26
  • 30
11
votes
2 answers

Self hosting Web Api service into Windows Forms

I am trying to self host a Web Api service inside a windows forms application using the code below namespace MascoteAquarium.Desktop { static class Program { /// /// The main entry point for the application. …
Andrey
  • 461
  • 1
  • 6
  • 17
10
votes
3 answers

Which are the pros (and cons) of self-hosting your repositories (in other words: GitLab vs Bitbucket)?

I have to decide between Bitbucket and GitLab for repository hosting (yes, they have to be private). I've used Bitbucket in the past, but now I've discovered GitLab and I find the idea of having a self-hosted repository manager quite attractive.…
Julen
  • 1,024
  • 1
  • 13
  • 29
10
votes
1 answer

SelfHosted AspNet WebAPI With Controller Classes In Different Project

I have created a SelfHosted AspNet WebAPI with Visual Studio 2012 (.NET Framework 4.5). I enabled SSL for the WebAPI. It works fine when the controller is defined in the same project. But when I add a reference of another project, containing…
user1624372
10
votes
3 answers

Self Hosted WebApi Accessible over LAN

Very new to the Self Host WebApi, but I am very impressed with its ease of use and extendability. At least through this tutorial. Everything I've done so far works on my development machine whether I use localhost, 127.0.0.1, or my LAN Ip…
David
  • 437
  • 4
  • 12
9
votes
2 answers

How can I pass parameters to queued background task (.NET Core)

In my web-application I have action with long-running task and I want to call this task in background. So, according to documentation .NET Core 3.1 Queued background tasks I use such code for this: public interface IBackgroundTaskQueue { …
Nikita Sychou
  • 189
  • 1
  • 11
9
votes
1 answer

Self Hosting OWIN to other computers on the Network

I'm trying to self host an OWIN pipeline in a WinForms application. The pipeline is hosting up both static files and Web Api v2 content. The implementation is working great locally, but I'm not sure what I'm missing in order to be able to access the…
Duck Jones
  • 380
  • 1
  • 5
  • 16
9
votes
1 answer

WEB API 2, Selfhost, Access is denied for everything but "localhost"

In a WEB API 2 OWIN self host project I get "Access is denied" exception thrown for anything other then localhost in: string baseUrl = http://localhost:2500; WebApp.Start(baseUrl); If I use 127.0.0.1 or an actual IP address of the machine…
elector
  • 151
  • 1
  • 6
9
votes
2 answers

Register certificate to SSL port

I have a windows service (running as LocalSystem) that is self-hosting an OWIN service (SignalR) and needs to be accessed over SSL. I can set up the SSL binding on my local development machine just fine - and I can access my service over SSL on that…
Robert Petz
  • 2,718
  • 4
  • 23
  • 52
9
votes
2 answers

Owin self-host - Failed to listen on prefix 'http://localhost:12345/' because it conflicts with an existing registration on the machine

I'm trying to self-host a simple WebAPI: public class AccountViewApplication { protected IDisposable WebApplication; public void Start() { WebApplication = WebApp.Start("http://myhost.mymachine.me:12345"); new…
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
8
votes
2 answers

Session variable equivalent in OWIN self-host

I have a sample web API hosted in an OWIN process (self hosted, not in IIS). I get a JWT token in my controller and I want to be able to retreive it in another part of the application, a class that implements NserviceBus…
Patrice Cote
  • 3,572
  • 12
  • 43
  • 72
8
votes
1 answer

Use performance counter in self host web application

I would like to stress test my Web Api self host application. This application is hosted on a Azure Worker Role. I know how to get the performance counter from my Worker Role to my storage (for analytics) but because my web api are self hosted…
1 2
3
51 52