IIS Deployment Application

I have a visual studio 2010 at home and have developed a web application. Now I'm on another computer in another place. All I have is a project folder on my USB drive, and IIS express is installed on this computer. Can I run my web application in any way?

+4
source share
2 answers

Assuming that you have all the files necessary to run the web application in the project folder, you should be able to create a site in IIS Express and run it.

Here's what you probably need to add to the IIS Express configuration file. The file is usually located in the folder "C: \ Users \\ Documents \ IISExpress \ config \ applicationhost.config".

Below you will need to change the path to the website and make sure that you are correctly attached to it. You may need to change the port number if it conflicts with other websites that you want to keep.

<sites> <site name="MyWebsite" id="1" serverAutoStart="false"> <application path="/"> <virtualDirectory path="/" physicalPath="<USB Drive>:\<FolderToMyWebsite>" /> </application> <bindings> <binding protocol="http" bindingInformation=":8080:localhost" /> </bindings> </site> <sites> 
+13
source

I had the same problem and solved it as follows:

Examples: port = 1111

local_ip_address = 192.168.1.1 - IP address of the local network where the web page is stored

Step 1:

 netsh http add urlacl url=http://local_ip_address:port/ user=Everyone 

Step 2:

 <bindings> <binding protocol="http" bindingInformation="*:port:localhost" /> <binding protocol="http" bindingInformation="local_ip_address:port:" /> </bindings> 

Step 3:

 netsh advfirewall firewall add rule name="IIS Express (non-SSL)" action=allow protocol=TCP dir=in localport=port 

found a solution by comments here: http://blogs.iis.net/vaidyg/archive/2010/07/29/serving-external-traffic-with-webmatrix-beta.aspx

0
source

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


All Articles