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

标签 asp.net aspnetdb

我使用 asp.net 3.5 创建了一个网站。 现在我使用 Membership API 和 aspnetdb 数据库为其添加了成员(member)支持。 我已经在本地机器上完成了所有测试。 现在,在将该站点上传到服务器时,需要考虑与 aspnetdb 有关的哪些问题。 IE;该数据库如何在服务器端可用? 注意:这是我的第一个网站。

最佳答案

我自己只是在寻找这个问题的答案。

我发现以下内容可能对您有帮助:
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:

http://msdn2.microsoft.com/en-us/library/ms229862.aspx"

关于asp.net - 如何在 asp.net 网站中使用 aspnetdb 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1611937/

相关文章:

asp.net - 本地数据库文件的连接字符串不起作用

c# - 无法从静态方法访问 asp 控件,但是当我删除静态方法时,ajax 调用将不起作用

javascript - SetTimeout 函数更改文本框中的文本

asp.net - 为 Web 应用程序(角色、用户)初始化 `aspnetdb` 数据库的推荐方法?

asp.net - 我的 ASP.NET 4 登录停止工作...为什么?

asp.net-mvc - edmx 填充 mdf?

c# - 如何根据DataKeyName更改Gridview行颜色?

javascript - ASP.NET mvc angularjs 未知提供程序错误

asp.net - 删除列后,Gridview 丢失 ItemTemplate