简体   繁体   中英

MVC 4 deployed to IIS 8 Page can't be Displayed

I am trying to deploy a MVC 4 application to IIS 8 on Windows Server 2012. I am copying the files to the server by using Publish > File System. I have created a new web site in IIS on the server, pointed this to the correct directory, but when trying to view the site I see ' This page can't be displayed '.

I have never deployed an MVC application before, so may have missed something very simple.

After spending a lot of time searching on the Web, I have:

  • Ensured the correct version of .NET (4.0) is installed, and is selected within a new Application Pool created specifically for my app
  • Disabled Directory Browsing
  • Ensured the System.Web.MVC.dll is copied into the Bin folder
  • Added the following to web.config:

Below:

 <modules>
     <remove name="UrlRoutingModule-4.0" />
     <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="managedHandler" />
</modules>

I am very grateful for any help or suggestions!

Martin

Oh dear...it looks like the problem was caused by my using Port 110 in the web site bindings. I think this is a reserved Port.

Hope some of the bullets above help someone else anyway.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM