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

Return JSON from self-hosted WCF 4.5 service?

How do I get JSON from a self-hosted WCF 4.5 service? I'm using Fiddler2 to send requests with "Content-Type: application/json" (also tried "Content-Type: application/javascript") but I keep getting XML. In combination with setting…
Andreas Zita
  • 7,232
  • 6
  • 54
  • 115
0
votes
1 answer

Self-hosted WCF Data service authentication

I have self-hosted WCF Data service set up in similar way to this - http://blogs.msdn.com/b/writingdata_services/archive/2011/01/24/self-hosting-a-wcf-data-service.aspx How does one add Windows authentication on top of this? I know how to add it in…
Rashack
  • 4,667
  • 2
  • 26
  • 35
0
votes
3 answers

Communication between two WCF Services in selfhosting Server

In a selfhosting service as described in this MSDN article there are two servies. Now I want to call one from the other. One does some database related stuff and the other provides some work. I want to use the database functionality in the other…
Mare Infinitus
  • 8,024
  • 8
  • 64
  • 113
0
votes
2 answers

WCF Service Self Hosting Trouble

I'm trying to host a WCF Service inside a Windows Service which I am starting through a console app. Each service is its own project as is the console app. I've copied the app.config from the WCF Service library into the app.config of the console…
Wes P
  • 9,622
  • 14
  • 41
  • 48
0
votes
2 answers

Self-Hosting WCF and System.ServiceModel.FaultException

I have a simple WCF Service Library Project (call this Project W) with a handful of DLLs in directory X. I set the startup directory of W to X, all methods work correctly using WcfServiceHost in Visual Studio 2010. I want to self-host W, so, I…
lingo_journey
  • 653
  • 1
  • 8
  • 22
0
votes
1 answer

Autofac and Web API self host

I get the error: "The request lifetime scope cannot be created because the HttpContext is not available." if I try to setup my web api. HttpContext is not available in System.Web.Http.SelfHost but is there an alternative? Example with my…
user437899
  • 8,879
  • 13
  • 51
  • 71
0
votes
2 answers

Consume self-hosted WCF with ajax on same machine

I need help, pls…or, at least, a direction… I have a very peculiar scenario for WCF…I need to self-host a service (no IIS permitted) and consume it through a HTML page using jQuery ajax … (no IIS allowed too)…the page will run “standalone”, plain…
marcoaoteixeira
  • 505
  • 2
  • 14
0
votes
2 answers

C# HttpSelfHostServer can I regain control of Controller construction?

Due to limitations on the server side I need to build a self hosting web service in .NET... I'm currently looking at HttpSelfHostServer but I'm very un-cool with it's magical construction of the controller, that seems to be, based on name alone and…
jdoig
  • 1,472
  • 13
  • 27
0
votes
1 answer

Max amount of sessions on my WCF service?

I have a WCF service running InstanceContextMode = PerCall, ConcurrencyMode = Multiple, TCP and is hosted in Selfhost(Windows Service) and IIS7/IIS8. The throttling is set to this :
Banshee
  • 15,376
  • 38
  • 128
  • 219
0
votes
1 answer

Scheduling jobs on both a Cloud and Local installation

I am developing a greenfield project which has two requirements. To be ran in the cloud (Azure). To be ran on a self hosted Windows Server installation. This project is broken into 3 main parts. A collection of clients. A RESTful…
deanvmc
  • 5,957
  • 6
  • 38
  • 68
0
votes
1 answer

Wcf self hosting over basicHttp and browsing

Hej, I feel like a complete idiot but I don't seem to find an answer. I'm selfhosting a WCF service in a console application. This is working like a charm, I've done it a million times :) Consuming this service from another console application or by…
0
votes
2 answers

WCF net.TCP self hosted on azure emulator - Windows 7

I'm developing a WCF service using Net.tcp Binding. The service is hosted on the Run method of a worker role. When deployed to my Azure Account, it works fine, but in runtime it throws an exception: No connection could be made because the target…
Sebastián Odena
  • 195
  • 1
  • 4
  • 13
0
votes
1 answer

Silverlight Cross-domain issue with WCF self-hosted in windows service

I have a Silverlight application that is running perfectly in my local machine, consuming WCF services form a development server (self-hosted in windows services). I have to debug one of the WCF services, in order to find the root cause of a bug. I…
Roberto
  • 645
  • 1
  • 8
  • 16
0
votes
1 answer

Wordpress.com hosting

I've a domain registered on hostmonster.com and my blog is on wordpress.com now how can I transfer my domain to Wordpress(which I think is not possible) or map my domain url to my Wordpress blog. Note : I don't need self hosting I want to use…
iC7Zi
  • 1,528
  • 2
  • 15
  • 21
0
votes
2 answers

Trying to connect to a .Net SOAP service using JAVA client

I try to connect to a .Net SOAP service, the SOAP service is made by another projectmember and is written in C#. He told me that he uses WCF Self Host Client. I used netbeans 7.1 to generate the Java SOAP Client based on the WSDL. This worked when…
Rob
  • 2,466
  • 3
  • 22
  • 40