Last post Mar 28, 2012 05:19 AM by Steven Cheng - MSFT
Mar 25, 2012 07:08 PM|quarx1911|LINK
I created a WCF
Service in VB.Net,
which I obtained data
from a SQL database and outputs.
On my work computer
all goes smoothly.
Now I would like to publish the service.
The service will run
on a Win 2008 R2
server with IIS7.
But I have only indirect
access to the server. I can
only access the server
via RDP from
my network. The server
has a different location outside
our company network. it is hosted on an other company.
On the server is already running
a web page (ASP.Net)
on IIS7. Is there
a tutorial somewhere that I can use how to install the wcf on this computer and use it from outside.
Mar 25, 2012 07:31 PM|hj|LINK
to publish the service you must have access to iis folders on the destination server, rest is just like a normal website. you create a folder on destination machine and publish your service there by using vs.net publish wizard or you can publish it on desktop
and then copy the files onto that folder by ftp.
Mar 28, 2012 05:19 AM|Steven Cheng - MSFT|LINK
If the server is located in the same corp network, we can open a share folder on the server machine and use Visual Studio "Publish Web Site..." to deploy the web application(that contains the WCF service) to the target server.
For your scenario, since the server is hosted in other company's network, you might need to manually deploy the web application. To do so, you need to:
* copy the web application folder(contains all the files necessary), you can first use "Publish Web" in Visual Studio to publish the web application to a local IIS site to verify it works(and use the web directory on local machine later).
* Createb an application virtual directory on the target host server machine(in IIS), and configure the virtual directory to use a proper application pool(where you specify the execution account and .NET framework for your web application).
* Pointing the IIS application virtual directory to your WCF service web app's folder
For testing, you can first try deploying a simple ASP.NET web app(contains some simple aspx pages) to make it working. Then, start deploying your WCF service web app.
Here are some web references about hosting WCF service in ASP.NET/IIS.
#Deploying an Internet Information Services-Hosted WCF Service
#endpoint.tv Screencast - Hosting WCF Services in IIS