gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 17:47:20 25 4
gpt4 key购买 nike

我使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com