473,781 Members | 2,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

aspnetdb.mdf

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 admin aspnetdb.mdf on a
non-development computer?
Jan 19 '06 #1
2 2116
no. attaching a database requires sqladmin permissions (default with
sqlexpress) but not something you'd want the asp.net account to have. you
should supply a seperate installation script.

-- bruce (sqlwork.com)
"Arne" <Ar**@discussio ns.microsoft.co m> wrote in message
news:9A******** *************** ***********@mic rosoft.com...
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 admin aspnetdb.mdf on a
non-development computer?

Jan 19 '06 #2
Hello Arne,
Can I copy aspnetdb.mdf tp another computer and expect the ASPNet
account to have rights to open this database?
No. Machine1\ASPNET and Machine2\ASPNET are not the same principal. And on
the same computer Windows Explorer's file copy will only preserve ASPNET's
ACLs for a file if the ASPNET user performs the copy (thus becoming the copy's
owner), or the parent directory has ACLs for ASPNET set.
What is the proper way
copy ASPNETDB to another webserver? What is the proper wat to admin
aspnetdb.mdf on a non-development computer?


A simple CMD shell script that copies the MDF file and runs CACLS to set
access permissions for ASPNET should do the trick.

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de
Jan 19 '06 #3

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

Similar topics

5
3059
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 the error I'm getting after I publish my site to their servers... An attempt to attach an auto-named database for file c:\hosting\myhost\member\myaccount\customerdomains\mysite\App_Data\ASPNETDB.MDF failed. A database with the same name exists,...
2
2517
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 am I missing to allow WAT to create the application services database? Scenarios I tried: On a dedicated developer workstation running WXP w/ SP2, I installed
1
1708
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 databases I need to migrate ASPNETDB to one of our SQL Servers running SQL Server 2000. I have used aspnet_regsql.exe to create the database and added these lines to the web config file in the connectionstrings section.
0
1184
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 written: using (SqlConnection aspnetdb = new SqlConnection(ConfigurationManager.ConnectionStrings.ConnectionString)) { aspnetdb.Open(); // here problem
1
2946
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 SQLExpress. On local it run OK. The problem araise when I upload the precompiled site to a production server. On production server I have SQLserver 2000. I have read that I need to create on server the same db using the command aspnet_regsql.exe. ...
1
1841
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 failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. What should I do..? I´m lost..!
3
1989
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 there on March 7th the day I was adding some web references. How might this have gotten added to the project? -- Regards, Gary Blakely
3
3534
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 (user.IsInRole("Manager")) // HERE ERROR The error is: Generating user instances in SQL Server is disabled. Use sp_configure 'user
6
9591
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 ======= Should ASPNETDB.MDF is necessary,
0
9639
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10143
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10076
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9939
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8964
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7486
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2870
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.