How do you publish an ASP.net MVC application from Visual Studio 2013 to your local network?

I created a simple ASP.net MVC web application in Visual Studio 2013, and I want to deploy it so that it can be accessed from a browser on other computers on my local network. I tried right-clicking my project> Publish (I don’t know what settings to use, Web Deploy, Web deployment package, file system, I published the website in my inetpub / wwwroot folder.

I managed to start IIS, I tried to add the application to the manager and change the permissions for everyone. I tried to go to localhost / application_name, but I had errors due to the fact that you did not configure the directory list. I turned on directory browsing, but that means it now displays a list of files. How do I get it to actually run the application when I go to it in the browser? I am close?

Edit: this one is currently http://johan.driessen.se/posts/Accessing-an-IIS-Express-site-from-a-remote-computer (although this, in my opinion, is a step or two ahead, where i) Also tried this: http://www.programmerfish.com/how-to-deploy-asp-net-web-application-on-the-network-in-windows-7/#.VGTLCvnF81L so far no luck

0
source share
5 answers

The problem was that ASP.net was not registered in IIS

  • Open command line as administrator
  • Navigation to C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319
  • Ran aspnet_regiis -iru

Now the web application is running in IIS http://www.asp.net/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy -publishing-% 28remote-agent% 29

0
source

You can use IIS Express, which comes with visual studio 2013. I used this method so that other employees can access the website that is on my computer. Scott Hanselman made a great post that I use every time I want to publish a site hosted on local iis for others on the same network.

http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx

If you have any questions, let me know. Hope this helps

enter image description here

+3
source

When I want to use IIS Express in Visual Studio for development, but allow local network users to see the version of my site, I try to create a publishing profile in VS that is published on the local file system (for example, C:\Publish\<yourwebsite> ). Then, from IIS Manager, create a new website pointing to the same folder, and it should be accessible to you through http://localhost and for network users through http://<your-pc-name> or http://<your-local-ip> .

You will need to add an exception to the Windows firewall in order to allow HTTP requests (for example, port 80) to your local computer, but if you configured IIS correctly, they should see the website.

It is possible to make IIS Express accessible to remote clients, but this is not what he designed to make you better go along the IIS route, as this will allow you to test the configuration as it would in live / performance mode at the same time .

+2
source

Check this out and the old version of the same question. I would say that you need to install IIS locally.

Use Visual Studio Web Server on a LAN

0
source

You need to enable IIS on the host because IIS Express is not built with this in mind. Its for debugging purposes.

You also did not specify your binding configurations or settings for your application pool.

Here is a detailed guide to publishing your application using the IIS IIS Video Tutorial

You will need to make sure that the binding you specify is accessible over the network and that connecting clients have permissions.

0
source

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


All Articles