473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASPNETDB.mdf

How do I create aspnet.mdf on a production machine?
How do I administer users on a production machine?
Jan 19 '06 #1
4 5617
http://msdn2.microsoft.com/en-us/library/ms247257.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Arne" wrote:
How do I create aspnet.mdf on a production machine?
How do I administer users on a production machine?

Jan 19 '06 #2
Phillip,
That article tells me how to connect to a SQLExpress database. It tells me
nothing about membership and roles that are administered on a website with
the ASPNETDB.MDF.
In Visual Studio there is a ASP.Net configuration for members and roles, but
this tool may not deploy to production.
How can I administer users in production?

"Phillip Williams" wrote:
http://msdn2.microsoft.com/en-us/library/ms247257.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Arne" wrote:
How do I create aspnet.mdf on a production machine?
How do I administer users on a production machine?

Jan 20 '06 #3
You cannot. Under the same section where the link that I posted was, there
is another article that applies to your question on roles:

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

Quoted from the above article
"SQL Server Express Edition
When a process attaches to a SQL Server Express Edition database (.mdf
file), the process must have administrative permissions. In general, this
makes SQL Server Express Edition databases impractical for production Web
sites because the ASP.NET process does not (and should not) run with
administrative privileges. Therefore, use SQL Server Express Edition
databases only under the following circumstances:

Use as a test database while developing your Web application. When you are
ready to deploy your application, you can transfer the database from SQL
Server Express Edition to a production instance of SQL Server.

Use if you are running a Web site that can use impersonation and you can
control the privileges of the impersonated user. In practice, this strategy
is practical only if the application is running on a local area network (not
a public Web site).

Store the .mdf file in your site's App_Data folder, because the contents of
the folder will not be returned to direct HTTP requests. You should also map
the .mdf extension to ASP.NET in IIS and to the HttpForbiddenHandler handler
in ASP.NET using the following element in the site's Web.config file:

<httpHandlers>
<add verb="*" path="*.mdf" type="System.Web.HttpForbiddenHandler" />
</httpHandlers>
"

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Arne" wrote:
Phillip,
That article tells me how to connect to a SQLExpress database. It tells me
nothing about membership and roles that are administered on a website with
the ASPNETDB.MDF.
In Visual Studio there is a ASP.Net configuration for members and roles, but
this tool may not deploy to production.
How can I administer users in production?

"Phillip Williams" wrote:
http://msdn2.microsoft.com/en-us/library/ms247257.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Arne" wrote:
How do I create aspnet.mdf on a production machine?
How do I administer users on a production machine?

Jan 20 '06 #4
Phillip,

An end user instance of a sqlexpress database runs just fine in the app_data
folder in a website. It works fine with sql authentication.
A sqlexpress database is ideal for a small non-profit organisation that
can't buy a complere SQL server.

Arne.

"Phillip Williams" wrote:
You cannot. Under the same section where the link that I posted was, there
is another article that applies to your question on roles:

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

Quoted from the above article
"SQL Server Express Edition
When a process attaches to a SQL Server Express Edition database (.mdf
file), the process must have administrative permissions. In general, this
makes SQL Server Express Edition databases impractical for production Web
sites because the ASP.NET process does not (and should not) run with
administrative privileges. Therefore, use SQL Server Express Edition
databases only under the following circumstances:

Use as a test database while developing your Web application. When you are
ready to deploy your application, you can transfer the database from SQL
Server Express Edition to a production instance of SQL Server.

Use if you are running a Web site that can use impersonation and you can
control the privileges of the impersonated user. In practice, this strategy
is practical only if the application is running on a local area network (not
a public Web site).

Store the .mdf file in your site's App_Data folder, because the contents of
the folder will not be returned to direct HTTP requests. You should also map
the .mdf extension to ASP.NET in IIS and to the HttpForbiddenHandler handler
in ASP.NET using the following element in the site's Web.config file:

<httpHandlers>
<add verb="*" path="*.mdf" type="System.Web.HttpForbiddenHandler" />
</httpHandlers>
"

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Arne" wrote:
Phillip,
That article tells me how to connect to a SQLExpress database. It tells me
nothing about membership and roles that are administered on a website with
the ASPNETDB.MDF.
In Visual Studio there is a ASP.Net configuration for members and roles, but
this tool may not deploy to production.
How can I administer users in production?

"Phillip Williams" wrote:
http://msdn2.microsoft.com/en-us/library/ms247257.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Arne" wrote:

> How do I create aspnet.mdf on a production machine?
> How do I administer users on a production machine?

Jan 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Arne | last post by:
Can I copy aspnetdb.mdf tp another computer and expect the ASPNet account to have rights to open this database? What is the proper way copy ASPNETDB to another webserver? What is the proper wat to...
5
by: VB Programmer | last post by:
My web hoster says that I have to rename my ASPNETDB.MDF SqlExpress db for my 2.0 site to work. Is this accurate? If so, how can I rename it without breaking anything on my site? FYI: This is...
2
by: te goody | last post by:
Problem summary: Web Site Admin Tool is not generating the application services database (aspnetdb.mdf); i.e. The DB is not found under the app_data directory. The Question: What configuration...
1
by: Derek | last post by:
I am trying to deploy a web site on a server but I am having problems with the ASPNETDB database. It works fine in development on my PC but as SQL Server 2005 Express Edition only supports local...
0
by: RAM | last post by:
Hello, I have written simple ASP.NET application with logging in. I need to open ASPNETDB database to read some information which is not available using class library (custom table). I have...
1
by: 3Dfelix | last post by:
Problems when uploading ASPNETDB.MDF to production server Hi all, I'm a little web with a login page and aspnetdb.mdf file as data base for users. I've done it on local server, with VS2005 and...
1
by: CFTK | last post by:
This is the error I get when I try to login in my application from another machine: An attempt to attach an auto-named database for file C:\Documents and Settings\....\App_Data\aspnetdb.mdf...
3
by: GaryDean | last post by:
I noticed that my asp.net project contains a 10 meg ASPNETDB.MDF database in the App_data folder. I never intentionally put it there, have never ran regsql.exe. Reading back on my logs it got...
3
by: R.A.M. | last post by:
Hello, I have created ASP.NET application with aspnetdb database. In the following codeI have an error: System.Security.Principal.IPrincipal user = HttpContext.Current.User; if...
6
by: Mr. X. | last post by:
I have visual studio 2008. My site has a plesk on it. I want to deploy my project, and save it on the host machine. Looking for solution for folowings, please : 1st solution =======...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.