当前位置 : 主页 > 网络编程 > ASP >

如何在asp.net网站上使用aspnetdb数据库

来源:互联网 收集:自由互联 发布时间:2021-06-24
我使用asp.net 3.5创建了一个网站. 现在我使用Membership API和aspnetdb数据库为其添加了成员​​支持. 我已经在我的本地机器上完成了所有测试. 现在,在将此站点上传到服务器时,需要考虑a
我使用asp.net 3.5创建了一个网站.
现在我使用Membership API和aspnetdb数据库为其添加了成员​​支持.
我已经在我的本地机器上完成了所有测试.
现在,在将此站点上传到服务器时,需要考虑aspnetdb的问题.即;如何在服务器端提供此数据库?
注意:这是我的第一个网站. 我自己只是在寻找答案.

我发现以下内容可能会对您有所帮助:
http://www.studiocoast.com.au/knowledgebase/article-6-aspnet-using-sql-server-instead-of-aspnetdbmdf.aspx

“When developing applications in
ASP.NET 2.0, the default option for
roles and users is to use a local SQL
database in the App_Data directory.

This works fine locally, but will
bring up an error when uploaded to a
production server. To fix this the
ASP.NET membership information needs
to be stored in a dedicated SQL Server
database.”

“ASP.NET includes a program called
Aspnet_regsql.exe which you can run
locally to configure your database.
More information on the program can be
found here:

07001″

网友评论