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
7
votes
1 answer

WEB API 2 Self-hosted hostname issues

I'am trying to make a self-hosted web api service. I followed a tutorial and it works fine on my local computer. localhost/api/values responds fine with the expected JSON. Now, I have a server binded to the DNS "myserver.mycompany.com". When I start…
Fred Mériot
  • 4,157
  • 9
  • 33
  • 50
7
votes
2 answers

Get the client`s IP address using web api self hosting

The HttpContext is not supported in self hosting. When I run my self hosted in-memory integration tests then this code does not work either: // OWIN Self host var owinEnvProperties = request.Properties["MS_OwinEnvironment"] as IDictionary
Pascal
  • 12,265
  • 25
  • 103
  • 195
7
votes
1 answer

What are the benefits for several servicehosts? Does one ServiceHost support several simultaneous connections on one endpoint?

I'm thinking of self-hosting my WCF service instead of using IIS. A big question for me is whether I need to instantiate multiple servicehosts as IIS does or one wil be enough. Do muptiple servicehosts give any benefit except security reasons dut…
flashnik
  • 1,900
  • 4
  • 19
  • 38
7
votes
2 answers

Using ServiceStack Mini Profiler in self-hosted console application

Is it possible to use ServiceStack Mini Profiler in self-hosted console application? If it is, where should I put profiler enable/disable code? In ASP.NET hosted ServiceStack it's usually in Application_BeginRequest and Application_EndRequest…
7
votes
1 answer

Upload large files example with self hosted Nancy

Can someone post an example on how to upload a large file (eg. 50MB) using NancyFx running in self-hosting mode. The file is expected to be sent from a webpage (method=post; enctype=multipart/form-data).
Emilian
  • 497
  • 8
  • 17
6
votes
3 answers

WebApi Put "The parameters dictionary contains a null entry for parameter..."

public class ContactsController : ApiController { private static readonly List _contacts = new List(); public Contact PutContacts(int id, Contact contact) { if (_contacts.Any(c => c.Id == contact.Id) == false) …
ma huwei
  • 73
  • 1
  • 6
6
votes
2 answers

I want to use Vue 3 without build and without CDN

https://v3.vuejs.org/guide/installation.html#download-and-self-host https://v3.vuejs.org/guide/installation.html#from-cdn-or-without-a-bundler how do I import vue without CDN? so what I care about is not having a build step. everything in pure…
tatsu
  • 2,316
  • 7
  • 43
  • 87
6
votes
1 answer

Owin self host SSL connection reset

I got an issue when setting up HTTPs for a self host Owin console application. The browser always shows a connection reset error. I've tried creating certificates manually according to this link…
mind1n
  • 1,196
  • 3
  • 15
  • 34
6
votes
0 answers

Self Hosting and IHttpHandler (ashx service)

I need to self host (in a windows process out of IIS) an existing .ashx service. The service implements an IHttpHandler.
Robert
  • 872
  • 1
  • 8
  • 24
6
votes
3 answers

WCF service self host url not getting wsdl document

namespace helloserviceSelfHostingDemo { [ServiceContract] interface IhelloService { [OperationContract] string sayhello(string name); } public class HelloService : IhelloService { public string sayhello(string…
user3691649
  • 61
  • 1
  • 2
6
votes
2 answers

How to restrict SignalR server connections?

I have a SignalR app. hosted in a Windows service (used OWIN & Katana as self hosting) and it's listening on mydomain.com:8080 On the same server, I also have an MVC application which is basically a website that connects to my SignalR hub which I…
Tequilalime
  • 611
  • 9
  • 29
6
votes
2 answers

SignalR (with self hosted Nancy) shows 404 for negotiate?clientProtocol=1.3

I am trying to run SignalR in Nancy in a console app. When my browser does $.connection.hub.start() it gets 404 - NotFound for //localhost:667/negotiate?clientProtocol=1.3 ----8<---- I am (trying) running Nancy on one port and SignalR on another.…
LosManos
  • 7,195
  • 6
  • 56
  • 107
6
votes
0 answers

How to make a WAMP server secure. Is it possible?

Yesterday I setup a localhost on my network, and now am working on making it a public website. I read that self-hosting a website with WAMP can be very insecure, and poses high security risks. Is this true? How would I make my WAMP server secure? I…
pattyd
  • 5,927
  • 11
  • 38
  • 57
6
votes
3 answers

Reading WCF behavior elements from config file programmticlally when exposing self-hosted service

I have this configuration in my app.config:
Saw
  • 6,199
  • 11
  • 53
  • 104
5
votes
1 answer

How does hosting a Discord Bot work since there is no port forwarding, and you do not know my ip address?

So i've been making and using my Discord bot (written in javascript) for about 5 months, ive learnt quite a bit and it works nicely. Only thing is, i dont understand how it actually works in terms of hosting? I have it running at home 24/7 on a…
CDixon941
  • 63
  • 1
  • 6