views:

32

answers:

2

In Visual Studio 2010 I have created a WebService (WCF) Application and a client to consume said service.

My 3 options as far as what servers to use for debugging are: Visual Studio Development Server, Local IIS Web Server, Custom Web Server.

I know I can't use the VS Development Server if I want my service to be accessible outside of localhost. So I installed IIS (Control Panel>Add/Remove Programs>Add/Remove Features). When I select this option in Visual Studio 2010 it doesn't seem to work. I'm not sure what options I have to setup so that other machines can run the client to consume this service.

By default VS set the Project URL to: http://localhost/MyService. Oh, and I'm working with .svc files (not .asmx) if that makes any difference.

A: 

You can right click on Project and do publish. This will generate the required files for your deploy.

In order to debug your app, you can use the Visual Studio built-in host or IIS. In your project properties, under Web, you can select "Use Local IIS Server".

Sander Pham
+1  A: 

Common problem when you intall IIS after the framework.

Go to your Windows\Ms.Net\Framework\<version> folder and execute aspnet_regiis.exe. It's a commandline tool.

Henk Holterman
And run ServiceModelReg.exe for the WCF
Sander Pham
@Sander, OK, I haven't used that one yet.
Henk Holterman
I did the aspnet_regiis.exe (with -i -enable option). That didn't work, but it was part of the solution. The remaining part was mapping the svc file appropriately which was done with ServiceModelReg.exe -r
myermian