Css / images not showing when hosting ASP.NET MVC in IIS on Vista Home Premium

my css and images are not displayed when hosting ASP.NET MVC in IIS in Vista Home Premium. Works well when hosted through Visual Studio. The pool is integrated, static content is checked for IIS installation, not sure what is happening.

I am trying to hit my site with Virtual PC to test it in IE6. Preferably, I could test it from the host machine, and not on the actual domain. I can ping the virtual machine from the host machine and the host machine from the virtual machine, but I cannot reach the website from the host IP address in the browser when hosted through Visual Studio. Firewalls on the virtual machine and host are disabled.

Any ideas on why I cannot get to the site in Visaul Studio from the host. I am also trying to enable a loopback adapter, but it can make the virtual machine go to the Internet with Network Network (NAT) turned on on the VM network card.

Thoughts? Thanks

+3
source share
1 answer

Was it allowed? I have the same problem in a shared hosting environment. (IIS 7 Integrated Mode)

You can add static handlers for each file type in web.config to solve this problem, but this may not be the only solution.

+1
source

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


All Articles