Microsoft 9GD00001 Computer Accessories User Manual


 
Chapter 11: Deploying Web Services with WCF 317
3. This example enables FTP, which is one of the ways you can deploy a Web site. Ensure
the option for “Ensure IIS Metabase and IIS 6 configuration compatibility,” under
the IIS 6 Management Compatibility branch, is selected. When you click OK, the IIS
server will be installed.
Creating a Web Site on IIS 7 on Windows 7
Next, you’ll need to create a Web site on IIS 7 on Windows 7 by following these steps:
1. Select Start | Control Panel | Administrative Tools, which will display the Administrative
Tools window, shown in Figure 11-5.
2. Double-click Internet Information Services (IIS) Manager to display the Internet
Information Services (IIS) Manager window, shown in Figure 11-6.
Order of Installations Matter
ASP.NET and WCF Web Services are hosted in IIS and require special configuration to
allow hosting by IIS. Therefore, it’s helpful if IIS is installed before VS is installed. VS
will install all of the ASP.NET and WCF Service settings if IIS is installed. If you install
IIS after VS is installed, you can still set up ASP.NET and WCF Service settings with
the following commands; first ASP.NET:
"%windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe" –i –enable
and then WCF Services (all on one line):
"%WINDIR%\Microsoft.Net\Framework\v3.0\Windows Communication
Foundation\ServiceModelReg.exe" –r
The actual directory name for the aspnet_regiis.exe file might be different because
the v4.x.x.x will change in the future, so you might need to open W
indows Explorer and
search for the actual directory name yourself.