2013-05-13 87 views
0

我有MVC網站。基於.NET Framework 4.5。
我想在網站上部署IIS 6.0

這裏是我採取部署mvc.net框架4.5

  1. 應用程序池步驟:

    我創建的應用程序池:Company.Attendance。
    注意:無處它問我正在使用哪個.NET版本?

  2. 網站

    一個。創建新的網站。 b。說明:company.attendance
    c。 IpAddress:服務器IP地址
    d。端口:80
    e。網站主機標題:[我留空]
    f。路徑:../../Views/Home/ [所有視圖在此定義]
    g。權限:讀取,運行,執行,寫入
    h。在網站屬性中,在主頁目錄下,我選擇了在
    之上創建的應用程序池。在「主目錄」選項卡的「配置」下。 j。我插入aspnet_iapi.dll

當我嘗試瀏覽應用程序。我收到以下錯誤:無法找到頁面。

可以告訴我在IIS 6.0 [Windows Server 2003]上部署mvc應用程序[.Net Framework 4.5]的詳細步驟。

問候

回答

0

I am trying to deploy the website on IIS 6.0

你不能。 .NET框架4.5需要Windows Server 2008至少可以在System Requirements page可以看出:

你可以安裝Windows Server 2003上

System requirements

Supported Operating System

  • Windows 7 Service Pack 1
  • Windows Server 2008 R2 SP1
  • Windows Server 2008 Service Pack 2
  • Windows Vista Service Pack 2
  • Windows Vista SP2 (x86 and x64)
  • Windows 7 SP1 (x86 and x64)
  • Windows Server 2008 R2 SP1 (x64)
  • Windows Server 2008 SP2 (x86 and x64)

Hardware Requirements:

  • 1 GHz or faster processor
  • 512 MB of RAM
  • 850 MB of available hard disk space (x86)
  • 2 GB hard drive (x64)

最新的.NET Framework的版本是.NET 4.0。

+0

感謝達林快速回答。這意味着我暫時擱置,直到我的公司向我提供Windows Server 2008. – Developer 2013-05-13 13:40:56

+0

是的,這就是它的意思。 – 2013-05-13 13:41:18

0

您至少需要IIS 7.0。

以下是.NET 4.5框架的要求: http://msdn.microsoft.com/en-us/library/8z6watww%28v=vs.110%29.aspx

你將不得不使用.NET 4.0,它在移植您的項目不應該太艱苦。

將您的項目和兼容性更改爲4.0框架。 修復一些可能出現的錯誤和EF錯誤,並重新安裝到IIS 6.0服務器。

您需要確保已安裝所有運行時,並且應用程序正在運行於.NET 4.0池。

0

IIS 6是Windows Server 2003(在技術上XP 64位)的一部分。

.Net 4.5不能安裝在Windows Server 2003上,因此不支持IIS。