2011-09-22 31 views
1

我寫了一個網站,asp.net 4和sql server 2008年。但我的主機sql的版本是2005年,所以我在2008年sqlserver獲得腳本從我的數據庫,並將其轉換爲2005。然後我導入.sql文件導出從2008年iin sqlserver 2005年並檢索它。然後我使用sqlserver 2005進行備份並將其上載到我的主機上。現在我有一個問題: 我用aspnet_regsql.exe來創建數據庫模式。 但是,當我想登錄到我的網站,它拋出以下錯誤:問題與aspnet_regsql.exe的

The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'. However, the current database schema is not compatible with this version. You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.

問題是什麼?

回答

0

哪個版本的ASP.NET是您發佈的網站使用的?它看起來可能與您在開發中使用的不同。

版本信息是在IIS的每個AppPool基礎上配置的。