Problem: The Installer was Interrupted Before <MyService> Could Be Installed.
When you click on the Install menu item in Visual Studio for a WCF Service Setup project the installer dispplays:
The installer was interrupted before <MyService> could be installed. You need to restart the installer to try again.
Solution: Install IIS 6 Management Compatibility
There appear to be several solutions to this problem. This solution worked for me.
Go Start\Control Panel.
Go to Programs and Features\Turn Windows features on or off.
Expand Internet Information Services \ Web Management Tools \ IIS 6 Management Compatibility
Check the items under IIS 6 Management Compatibility:
IIS 6 Management Console
IIS 6 Scripting Tools
IIS 6 WMI Compatibility
IIS 6 Metabase and II6 configuration compatibility
System installs the selected features,
Try installing your web service again.
Problem: There Was No Endpoint Listening at...
When you attempt to connent to a web service endpoint on your local machine you receive this exception:
There was no endpoint listening at http://localhost:5196/StockPriceService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
There are several potential solutions. You may need to try each one to discover the solution that works for you.
Solution 1: Use Real IP Address
Update your endpoint address in your app.config or web.config file to use your systems real IP address instead of "localhost".
Retry connecting to the endpoint.
Problem: Imports Warning and Type 'Service1' is not defined
Visual Studio displays these warnings and error messages:
warning BC40056: Namespace or type specified in the Imports 'WcfService1' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Type 'Service1' is not defined.
Solution: Add Service Operations
You may have added functions to your .SVC code file but not defined the service operation in your service interface code file.
Logging Installation Steps
Log Installation Steps:
Create a batch file with the MSIEXEC command line.
Run service installation procedure.
Examine the log for clues.
msiexec /i <msi file path> /l*vx C:\<LogDirectory>\Service.log