我試圖讓MVC 5項目運行在我的覆盆子pi,遵循MVC 3的指南。(here)我一直試圖連續數小時無果。我想知道是否有人以任何方式得到這個,因爲我嘗試了lighttpd和nginx,但都給出了錯誤,我無法追查/解決..樹莓派MVC 5使用單聲道
對此事的幫助非常感謝。
編輯: 當在我的MVC項目所在的文件夾中運行sudo的xsp4,我收到以下錯誤:
Missing method System.Web.HttpApplication::RegisterModule(Type) in assembly /usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll, referenced in assembly /tmp/root-temp-aspnet-0/eaee30a1/assembly/shadow/df4b0596/c32d4b8e_1c664e18_00000001/Microsoft.Owin.Host.SystemWeb.dll
Could not load signature of Microsoft.AspNet.Identity.IClaimsIdentityFactory`2[TUser,TKey]:CreateAsync due to: Failed for unknown reasons.
Could not load signature of Microsoft.AspNet.Identity.IClaimsIdentityFactory`2[TUser,TKey]:CreateAsync due to: Failed for unknown reasons.
Invalid type Microsoft.Owin.Security.AuthenticationTicket for instance field Microsoft.Owin.Security.Notifications.SecurityTokenValidatedNotification`2[TMessage,TOptions]:<AuthenticationTicket>k__BackingField
Could not load signature of Microsoft.AspNet.Identity.UserManager`2[TUser,TKey]:GetClaimsAsync due to: Failed for unknown reasons.
Invalid type test.ApplicationUserManager for instance field test.Controllers.AccountController:_userManager
Invalid type test.ApplicationUserManager for instance field test.Controllers.ManageController:_userManager
所以我的猜測是在我的PI是單錯過一些dll文件或黑解決一些mvc5的方法,但我很茫然,我將如何解決它們..
不是一個真正的答案,但你可能會關心知道:1)新的Pis可以運行Windows 10(免費),所以你不必擔心試圖讓Mono在任何那些。 2)ASP.NET 5(使用MVC 6)是開箱即用的跨平臺,不需要Mono。希望你能得到這個問題的答案,但至少會給你一些額外的選擇。 – 2015-02-24 16:37:25
感謝您的答覆:-)是的,這兩個都會讓它變得非常簡單(windows10和asp.net 5),但不幸的是我的項目必須在發佈時完成:( – Guinn 2015-02-25 08:04:33