Questions tagged [wcf-hosting]

84 questions
2
votes
2 answers

Visual Studio unable to open port to host WCF Service

I created a solution VS2010 C# with the WCF service, the library to get data, the service is working fine in a console application in the solution. No problem. I have to use it on a VS2008 project (and probably later on a VS2005) for the older…
TheBoubou
  • 19,487
  • 54
  • 148
  • 236
2
votes
2 answers

C# register the same windows service with different parameters

I need to create many windows services to host many WCF Service so I can stop a single one (for example to update it) and keep the other running. Since I don't want to create a windows service for every WCF Service I have, I'm trying to create a C#…
Keeper
  • 3,516
  • 1
  • 18
  • 29
2
votes
1 answer

How can I tell whether a WCF service is hosted in a Console app?

I have a WCF service under development, and often switch between hosting in a Windows Service, and hosting in a Console app. The service and console app share one config file, so how else can I tell, in my WPF client, if the service is hosted in the…
ProfK
  • 49,207
  • 121
  • 399
  • 775
2
votes
3 answers

Hosting WCF service via ServiceHost in Console/WinForms

I'm hosting WCF service in console application (.NET 4.0). Service code (from msdn example): using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; namespace WCFServiceHost { [ServiceContract(Namespace =…
amaranth
  • 979
  • 2
  • 22
  • 40
2
votes
1 answer

ASP.Net Web and WCF projects in the same solution

I am using Visual Studio 2010 and I am trying to create a solution containing an N tier architecture. I have a project each for every tier Common DAL Business // Service // WCF ServiceHost Web the projects are listed above are also called in the…
Robert Dinaro
  • 508
  • 3
  • 8
  • 23
2
votes
1 answer

Unable to host web service in IIS

I've been working on a webservice, and testing it by viewing it in a browser directly from VS2012, but now I need to host it in IIS, and for some reason, it simply will not work. I've tried publishing it as a new web application under my local IIS.…
Kjartan
  • 18,591
  • 15
  • 71
  • 96
2
votes
1 answer

Deploy WCF service in IIS 7.5

I am newbie to WCF. I am looking to steps to deploy WCF on IIS and consume the service. I have follow the steps same as to deploy the Website on IIS, also set the default document to Service1.svc Now when I am trying to consume this wcf service it…
Manish Kumar
  • 335
  • 1
  • 5
  • 16
1
vote
1 answer

Can I use IIS to host WCF services with transport other than HTTP?

I've searched and didn't find any question similar, so I'm asking. Is it possible to use IIS with transport other thna HTTP? If so, how to configure it?
Paulo Santos
  • 11,285
  • 4
  • 39
  • 65
1
vote
1 answer

Hosting WCF Service using unmanaged DLLs

I have a managed DLL that internally references a couple of unmanaged DLLs. This managed DLL is added as a reference to my WCF service project. However, the unmanaged DLLs have to be manually copied to the build output path of my project. They…
Klaus Nji
  • 18,107
  • 29
  • 105
  • 185
1
vote
2 answers

No endpoints found when adding a Custom ServiceHostFactory

I created a wcf application. I didn't change anything. Used the Service1.GetData(int). It works fine. I can hit the wsdl in a browser and everything. Then I created a custom service host factory that simply returns a new service host and the…
devlife
  • 15,275
  • 27
  • 77
  • 131
1
vote
3 answers

When can multiple ServiceHost instances share the same port?

Our application server exposes 5 WCF services over the net.tcp transport, all on the same port. We've been hosting these during development using WcfSvcHost and I've never had to think about how these manage to use the same port. We're moving them…
Andre Luus
  • 3,692
  • 3
  • 33
  • 46
1
vote
1 answer

Problem hosting wcfservice on mydoamin.com

I have an asp.net and a wcf service created. I hosted wcfservice on localhost(IIS) and the as.net web application also on IIS. Both work fine. I want to host both wcf and my asp.net web application on a registered domain. But when I right click on…
Archana
  • 11
  • 1
1
vote
1 answer

System.ServiceModel.ServiceActivationException , The CLR Type could not be loaded during service compilation (Error is not happening on all machines

I recently upgraded my solution from .netframework 4 to 4.7.2 ( It was in VS 2010 and I upgraded it using VS2019) . The solution contains WCF Services and some class library and a mvc 3 website . I had not have issue running my website and it worked…
1
vote
1 answer

Which is the best option to host a nettcp WCF service

I have a nettcp service which I have to host. I have three options - IIS 7 Windows Service A console application I would be grateful if anybody could give some valuable thoughts on which option is better vis-a-vis other one.
saarthak
  • 1,004
  • 2
  • 12
  • 26
1
vote
1 answer

WCF, who is calling? IIS self hosted with multiple websites, calling each other

I have a WCF service hosted on a website. I have mutliple bindings on the same website. Each website can call the WCF service on another site. Because of this, the endpoint the client uses is a dynamic address. Q: Is it possible to know what the…
Valamas
  • 24,169
  • 25
  • 107
  • 177