【发布时间】:2011-10-10 10:14:20
【问题描述】:
我使用 asp.net 4 c# entity framework 4 和 asp.net 成员资格。
我通常使用 VS2010 CASSINI 来测试我的 Web 应用程序。现在我必须将我的 Web 应用程序移动到本地的 IIS 7。
我的应用在 Cassini 上运行良好,现在在 IIS 7 上,当一些脚本尝试访问 asp.net 成员表时,我收到此错误:
System.Web.Security.SqlRoleProvider' 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_reqsql.exe (available in the framework installation directory), or upgrade the provider to a newer version. Alright, my database was exactly the same and everything looked fine.
我绑定了回收池和网站,但问题仍然存在。
你有什么想法吗?非常感谢您抽出宝贵的时间。
更新:
我在生成数据库的 SQL 脚本中发现了这一行……可以连接吗?:
xp_cmdshell 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe -E -S localhost -A mr -Q -d SiteNameExtension' -- mr = install Membership, Role Manager
【问题讨论】:
-
听起来您在 ASP.NET 成员表中缺少数据。
标签: asp.net sql-server-2008 asp.net-membership