Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy WCF service application on IIS

Tags:

c#

wcf

I am new to WCF services.I have made a service application and put the application code directory under default website of IIS.It connects with my client very well.

I want to know how to deploy my service on IIS as binary,as of now my whole source code is visible on server

like image 705
TRS Avatar asked Sep 13 '13 05:09

TRS


People also ask

How do I host a WCF service in IIS?

You can create a new IIS application to host WCF services exclusively. Alternatively, you can deploy an WCF service into an existing application that is already hosting ASP.NET 2.0 content (such as .aspx pages and ASP.NET Web services [ASMX]).

How do I deploy a Windows Communication Foundation (WCF) service?

Developing and deploying a Windows Communication Foundation (WCF) service that is hosted in Internet Information Services (IIS) consists of the following tasks: Ensure that IIS, ASP.NET, WCF, and the WCF activation component are correctly installed and registered. Create a new IIS application, or reuse an existing ASP.NET application.

How to deploy a web service in IIS?

In IIS Manager, under Default Web Site, find WCFServices directory and its subdirectory, Calculator. Select Calculator, right-click on it and click on Convert to Application item in the context menu. Web Application Settings dialog appears and we can leave default values: Our web service is now deployed!

What security features are supported by IIS WCF?

IIS-hosted WCF services can make use of HTTP transport security (for example, HTTPS and HTTP authentication schemes such as Basic, Digest, and Windows Integrated Authentication) as long as the IIS virtual directory that contains the service supports those settings.


2 Answers

it is called WCF Service Publishing

check the MSDN Documentation

after publishing you have only assembly files, Web.config file, and .svc file in the server

like image 158
Damith Avatar answered Oct 11 '22 05:10

Damith


1 : Publish your wcf service application from VS and give a publish path.

2 : Create a virtual directory in IIS which will point to the publish directory

3 : Set the virtual directory default page to .SVC file of your application.

Then try to browse it ..I hope you will be able to make it now..

like image 26
Akon Avatar answered Oct 11 '22 06:10

Akon