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

How to use signalr with some parallel (background) processes?

I have a self hosted signalr hub, configured like this: using System; using Microsoft.AspNet.SignalR; using Microsoft.Owin.Hosting; using Owin; using Microsoft.Owin.Cors; namespace SignalRSelfHost { class Program { static void…
iuristona
  • 927
  • 13
  • 30
0
votes
1 answer

Using Web API SelfHost for Specflow tests

I have a service project (WebAPI) and a client project that can access the service api. I would like to do a end-to-end test using Specflow (or something similar). I would like to control how the service is configured from the tests, so I can use…
jand187
  • 296
  • 3
  • 14
0
votes
0 answers

Self-hosted WCF throwing 400 Bad Request instead of WebFaultException

In my self hosted WCF webservice, I have two methods: [System.ServiceModel.OperationContract] [System.ServiceModel.Web.WebGet(UriTemplate = "Auditoria/getProduto/{c}/{emp}")] string AU_getProduto(string c, string…
jRicardo
  • 804
  • 10
  • 20
0
votes
1 answer

WCF rejecting request with "400 Bad Request" when their is a colon in the URL data

I'm trying something pretty simple using a self hosted WCF service, and I can't believe I've spent half a day just trying to get this to work. I've got a UriTemplate for the following…
Ultratrunks
  • 2,464
  • 5
  • 28
  • 48
0
votes
1 answer

How to send data to self-hosted webservice?

I have a self-hosted webservice that I use with some android apps and it works fine. Now I'm trying to write code in C# to use the same webservices and I've been having problems. Here is the server method I'm trying to…
jRicardo
  • 804
  • 10
  • 20
0
votes
1 answer

C#: error trying to send file to self-hosted webservice using httpwebrequest

First of all, my server is a self-hosted c# webservice. It works well for my other applications, but now I have to implement a method in it that will be used by a mobile computer with Windows CE 5. I will need to receive a file in my server, so I've…
jRicardo
  • 804
  • 10
  • 20
0
votes
2 answers

WCF selfhosting works in VS2013 but not with generated exe-file

I have read numerous different things about WCF in C#, but still haven't found a satisfactory answer to my noopy problem, yet. (I'm new to C# and .NET) When i run my selfhosted WCF Service inside VS everything works fine. It also works fine when I…
Boozzz
  • 245
  • 1
  • 6
  • 19
0
votes
4 answers

How to publish wcf service metadata when the wcf is self-hosted?

I googled for 2 days and tried almost everything, but I still can't get this stuff working. I have 2 WCF services. I use self-hosting, not IIS(for some reasons IIS isn't working for me). One is duplex, another is standart. Here are their…
Alex Voskresenskiy
  • 2,143
  • 2
  • 20
  • 29
0
votes
0 answers

Self Hosted Web API and Web Server sharing a domain

I have a self-hosted Web API (ASP.NET Web API). Now let's assume I would like to deploy it on a machine which already has a web server running. In order to share a domain, do I have to use a reverse proxy? I would prefer NOT to change anything on…
Dunken
  • 8,481
  • 7
  • 54
  • 87
0
votes
1 answer

Self Hosted ASP.NET Web API: how to embed images?

I switched my ASP.NET Web API from IIS-hosted to self-hosted. So far I had my images deployed in its own folder (and accessed them with HostingEnvironment.MapPath). Obviously this folder doesn't exist in a self hosted environment. How can I handle…
Dunken
  • 8,481
  • 7
  • 54
  • 87
0
votes
1 answer

Can't host web api on owinhost.exe

I try to mount a web api application hosted by Owinhost.exe when launching I got this error message: Error: System.ArgumentException No conversion available between…
0
votes
1 answer

how to selfhost cxf webservice without using any application server

I want to selfhost webservice using Apache CXF like in WCF. So, I want to know whether we can host webservices without any application server? If yes, can I have a HelloWorld! sample of that too. Thanks
yonjans
  • 151
  • 3
  • 10
0
votes
1 answer

WCF Self hosting soap-service at root (/) directory

I have device (charger) which sends SOAP-messages to an IP I where I will receive status reports but it is always sent in the root directory and is not changeable: http://192.168.1.2/ I made a WCF service self hosted which I want to receive those…
kiteloop
  • 404
  • 4
  • 11
0
votes
2 answers

Simple REST WCF Service Example Code - Endpoint not found

I was trying an example partially from Chapter 5 - RESTful .Net, but couldn't make it work for some reason (receiving 404-Not found). using System; using System.ServiceModel; using System.ServiceModel.Description; using…
zaptir
  • 100
  • 2
  • 8
0
votes
2 answers

How to debug Eclipse's internal clases

I have a very strange problem with regards to contributing to Eclipse. I have modified bundle org.eclipse.jdt.internal.junit4.runner and just wanted to test it and try it, but for some strange reason my breakpoints in the bundle…
Andrej
  • 558
  • 6
  • 14