Problem to run IIS Express on my network

1

Hello I'm trying to run IIS do Visual Studio 2015 ASP.NET Empty Web site to work on my network so I changed this file

  

... \ Documents and Settings \ Visual Studio 2015 \ Projects \ MyProject \   .vs \ config \ applicationhost.config

<site name="meuProjeto(2)" id="4">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="C:\Users\Nataniel\Documents\Visual Studio 2015\WebSites\meuProjeto" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:61914:192.168.0.104" />
            </bindings>
        </site>

Note that I put the local ip of my machine

So I excused this command in cmd in admin mode

netsh http add urlacl url=http://192.168.0.104:61914/ user=todos

He gave me the message that was added, so I executed this

netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=61914profile=private remoteip=localsubnet action=allow

He gave me the message OK

But when I try to run it gives me the message

  

unable to connect to the configured web development server

If I type link in the browser before giving the error it is working, but after the error and it does not work anymore

I tried to close vs and reopen the pc again, but when I do this it creates another Tag Site in the applicationhost.config with the name meuProjeto(X) with the bindingInformation with *:61914:localhost

in this way it displays this message

  

unable to connect to the configured web development server   Failed to register URL " link " for site myProject (2) application "/". Error Description Access Denied. (0x80070005)

    
asked by anonymous 02.09.2016 / 16:55

2 answers

1

How I solved this thanks to the tip of the GOKU SSJ4

First you had to install IIS so you can access the Control Panel / Programs and Features / Enable or Disable Windows Features and bookmark Internet Information Services

Afterfinishingtheinstallation,justgotoInternetInformationServices(IIS)Manager,justlookatthestart,andaddanewwebsite

Sojustfillinthisinformation,butit'simportanttorememberthephysicalpathandselectyouripaddressandremembertheportyou'regoingtouse,andleaveitcheckedforittostartonitsown.

Thenjustgobacktoyourprojectandpublishitbyfollowingthesesettings

RememberingthatyouhavetopublishinthepaththatyouselecteditwhencreatingtheIIEsite

Ifyouhavenotreleasedthefirewallfromtheport,justopenthecmdinadministratormodeandsendthiscommandfromthereandputtheportnumberinthelocalport

  

netshadvfirewallfirewalladdrulename="IISExpressWeb" dir = in   protocol = tcp localport = 80 profile = private remoteip = localsubnet   action = allow

Dai to test is just put the ip address and the door and be happy

    
02.09.2016 / 21:11
1

According to the comments, you can configure the ISS of your local machine to make your application available.

See the list below for references to this;

02.09.2016 / 21:38