How to configure IIS when debugging in Visual Studio 2010?

In Visual Studio 2010, I created a WebService (WCF) application and client to use the specified service.

My 3 options for which servers to use for debugging are: Visual Studio Development Server, local IIS web server, custom web server.

I know that I can not use VS Development Server if I want my service to be accessible outside the local host. Therefore, I installed IIS (Control Panel> Add or Remove Programs> Add or Remove Components). When I select this option in Visual Studio 2010, it does not work. I'm not sure what parameters I need to configure so that other machines can start the client to use this service.

By default, VS sets the project URL: http: // localhost / MyService . Oh, and I work with .svc files (not .asmx), if that matters.

+3
source share
3 answers

A common problem when starting IIS after the framework.

Go to the folder Windows\Ms.Net\Framework\<version>and run aspnet_regiis.exe . This is a command line tool.

+4
source

To save your IIS installation, you can configure a proxy — for example, Fiddler — to redirect certain incoming traffic to localhost.

As these new requests "appear" (through redirection) from within your machine, Cassini will respond.

: fooobar.com/questions/98624/... " №2: FiddlerScript"

+1

. .

, Visual Studio IIS. " IIS".

0

Source: https://habr.com/ru/post/1751591/


All Articles