如何在asp.net网站上使用aspnetdb数据库 [英] How to use aspnetdb database with an asp.net website

查看:56
本文介绍了如何在asp.net网站上使用aspnetdb数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have created a website using asp.net 3.5. And now I have added member support to it using Membership API and aspnetdb database. And I have done all testing on my local machine. Now, what issue needs to be considered with respect to aspnetdb while uploading this site to the server. ie; how this database will be available on the server side ? Note : This is my first ever website.

推荐答案

我只是在寻找自己的答案.

I was just looking for an answer to this myself.

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

I've found the following that might help you:
http://www.studiocoast.com.au/knowledgebase/article-6-aspnet-using-sql-server-instead-of-aspnetdbmdf.aspx

"在开发应用程序时ASP.NET 2.0,默认的选项角色和用户是使用本地SQL数据库位于App_Data目录中.

"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.

这在本地可以正常使用,但可以上载到生产服务器.要解决这个问题ASP.NET成员资格信息需求储存在专用的SQL Server中数据库."

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包含一个名为可以运行的Aspnet_regsql.exe在本地配置数据库.有关该程序的更多信息可以在这里找到:

"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网站上使用aspnetdb数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆