我有一個運行MySql的EntityFramework項目,它在本地以及專用服務器上運行良好,但是我試圖將此項目移動到HostGator,並且收到以下錯誤:指定的模式無效。錯誤:錯誤0002:請求失敗
Schema specified is not valid. Errors:
App_Code.WireWeld.ssdl(2,88) : error 0002: Request failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.MetadataException: Schema specified is not valid. Errors:
App_Code.WireWeld.ssdl(2,88) : error 0002: Request failed.
我知道數據庫是正確的,因爲我可以通過Navicat連接並查看其內容。我很確定連接字符串是正確的,我有正確的用戶名和密碼。
我真的被困在這一個,並希望任何可能的幫助。
是否有可能您的項目中有多個模型?這通常會導致與實體框架 – ScorpiAS 2012-02-17 15:54:36