Problem to run IIS Express on my network

Asked

Viewed 4,316 times

1

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

...\Documents Visual Studio 2015 Projects meuProjeto . 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 have placed the local ip of my machine

then I excuted this command in cmd in administrator mode

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

He gave me the message that was added, so I ran 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 execute it gives me the message

Unable to connect to the configured Development web server

If I type http://192.168. 0.104:61914 in the browser before giving the error it ta working, but after the error and no longer works

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

this way he displays this message

Unable to connect to the configured Development web server Failed to Register URL "http://localhost:61914" for site meuProjeto(2) application"/". Error Description Access Denied. (0x80070005)

  • Why don’t you enable your machine’s IIS and get your application up there.

  • I need it to work so I can access through my cell phone

  • Exactly, use the IIS of your machine and not the ISS that Visual Studio raises to wheel your application.

  • How do I do it?

  • 1

    I managed to set up so now it worked, thanks a lot for the tip

2 answers

2

How I solved this thanks to the tip from GOKU SSJ4

First we had to install the IIS so just access control panel / Programs and Features / Enable or Disable Windows Features and mark Internet Information Services

inserir a descrição da imagem aqui

After finishing the installation just access the Internet Information Services Manager (IIS), just search at start, and add a new website

inserir a descrição da imagem aqui

So just fill in this information, but important to remember the physical path and select your ip address and remember the port you will use, and already leave marked for it start alone.

inserir a descrição da imagem aqui

So just go back to your project and publish it by following these settings

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

Remembering that you have to publish on the path you selected there when creating the IIE site inserir a descrição da imagem aqui

If you have not released the firewall of the port just open the cmd in administrator mode and send this command dai vc puts the number of your port in localport

netsh advfirewall firewall add Rule name="Iisexpressweb" dir=in Protocol=tcp localport=80 profile=private remoteip=localsubnet action=allow

Dai to test is just to put the ip address and the port and be happy inserir a descrição da imagem aqui

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.