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.
– Marco Souza
I need it to work so I can access through my cell phone
– Nataniel Soares Rodrigues
Exactly, use the IIS of your machine and not the ISS that Visual Studio raises to wheel your application.
– Marco Souza
How do I do it?
– Nataniel Soares Rodrigues
I managed to set up so now it worked, thanks a lot for the tip
– Nataniel Soares Rodrigues