当我把sql2005数据库中生成的SqlServer2000脚本在远程数据库的查询分析器中注册后运行网站,发现错误:

The '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_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.


网上介绍介绍N多解决方法,我觉得这一种最简单!
打开本地 C:\WINDOWS\Microsoft.NET\Framework\v.xxxx(xxxx为开发网站framework的版本号) , 运行aspnet_regsql.exe 文件, 在弹出的界面中按照提示输入你虚拟主机上网站所用数据库的IP地址,用户名和密码,一路next,ok!

ok,至于为什么运行aspnet_regsql.exe注册 网上介绍了很多 Google一下

相关文章:

  • 2022-12-23
  • 2021-08-28
  • 2021-08-20
  • 2021-10-03
  • 2021-10-01
  • 2021-04-18
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
相关资源
相似解决方案