今天嘗試在朋友的VPS 上發佈我的ASP.Net MVC Sample 試試看..
很可惜出現了Runtime Error
由於詳細的錯誤信息不能在remote 看到的關係..
所以我便用Remote Desktop 登入 VPS
之後在入面瀏覽這個網頁發現了以下的錯誤信息
“Could not load file or assembly ‘System.Web.Helpers’”
我嘗試在Visual Studio上 把欠缺的 ddl 設定成Copy To Local = True
之後再發佈到VPS上..可惜還是有別的錯誤信息
“Could not load file or assembly ‘System.Web.WebPages.Razor’”
最後終於找到了解決方法
解決方法:
到ASP.Net WebSite Download ASP.Net MVC 3 Installer
http://www.asp.net/mvc/mvc3
可以到以下網址直接Download
http://go.microsoft.com/fwlink/?LinkID=208140
在Server上 Install 了便可以
Hope you find it useful