[英]Could not load file or assembly 'MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies
[英]Could not load file or assembly 'MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
我使用EF將MySQL作為數據庫托管在MySQL的asp.net網站上,我的網站在我的本地計算機上運行正常,但是當我在服務器上托管網站時,這給了我一個錯誤
Parser Error Message: Could not load file or assembly 'MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
<add assembly="MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D" />
在我的服務器上,我有PHP版本5.4.37
有什么辦法可以解決這個問題
如果它在您本地運行,而不在服務器上運行,則可能會導致環境問題,例如32位/ 64位。
因此,只需檢查應用程序池高級設置。
啟用32位應用程序將其設置為true,然后重試一次。
歡呼聲,維傑
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.