473,568 Members | 3,014 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

modifying aspnetdb

Hello,
I am learning ASP.NET. In web application I am programming now I decided to
add a table "Users" to aspnetdb database (with extra data about users) and a
trigger AFTER UPDATE of "aspnet_Use rs" table. But now I cannot run my
application because of error in line:
MembershipUser mu = Membership.GetU ser();
System.Data.Sql Client.SqlExcep tion: Cannot open user default database. Login
failed.
Login failed for user 'PC\ASPNET'.
A few months ago in another application I modified aspnetdb and (as I
rememeber) there was no problem.
Do you know something about modifying asnetdb database?
/RAM/
Dec 19 '06 #1
4 3636
dgk
On Tue, 19 Dec 2006 20:12:17 +0100, "R.A.M."
<r_********@poc zta.onet.plwrot e:
>Hello,
I am learning ASP.NET. In web application I am programming now I decided to
add a table "Users" to aspnetdb database (with extra data about users) and a
trigger AFTER UPDATE of "aspnet_Use rs" table. But now I cannot run my
application because of error in line:
MembershipUser mu = Membership.GetU ser();
System.Data.Sq lClient.SqlExce ption: Cannot open user default database. Login
failed.
Login failed for user 'PC\ASPNET'.
A few months ago in another application I modified aspnetdb and (as I
rememeber) there was no problem.
Do you know something about modifying asnetdb database?
/RAM/
Don't know. But usually additional user data is put into the user
profile and you don't need to create your own table.
Dec 19 '06 #2
What is user profile?
....Sorry, I am rather beginner...
/RAM/

Uzytkownik "dgk" <dg*@somewhere. comnapisal w wiadomosci
news:pj******** *************** *********@4ax.c om...
Don't know. But usually additional user data is put into the user
profile and you don't need to create your own table.

Dec 19 '06 #3
"R.A.M." <r_********@poc zta.onet.plwrot e in message
news:em******** **@news.onet.pl ...
What is user profile?
http://www.google.co.uk/search?sourc...ile+membership
Dec 19 '06 #4
This is an error in the connectionstrin g that is used to connect to the
database that holds the aspnet membership system. Your connection string is
using a trusted account. This means that the current user context that the
page is running under is the one used to connect to the database. In this
case, it's the ASPNET user account. This is not an account that has access
to the database normally which is why you receive this error. You either
need to go into SQL Server itself and grant this user privaleges, or use a
named SQL server login and pass that username and password in the
connectionstrin g (and set trusted to false).
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"R.A.M." <r_********@poc zta.onet.plwrot e in message
news:em******** **@news.onet.pl ...
Hello,
I am learning ASP.NET. In web application I am programming now I decided
to add a table "Users" to aspnetdb database (with extra data about users)
and a trigger AFTER UPDATE of "aspnet_Use rs" table. But now I cannot run
my application because of error in line:
MembershipUser mu = Membership.GetU ser();
System.Data.Sql Client.SqlExcep tion: Cannot open user default database.
Login failed.
Login failed for user 'PC\ASPNET'.
A few months ago in another application I modified aspnetdb and (as I
rememeber) there was no problem.
Do you know something about modifying asnetdb database?
/RAM/

Dec 20 '06 #5

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

Similar topics

5
3053
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...
2
2512
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/...
1
1700
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...
0
1176
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...
1
2940
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....
1
1824
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
1983
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
8711
by: Paul | last post by:
Hello All, I am working through the SAMS "ASP.NET 2.0 - Unleased" book to teach myself ASP.NET. It is a great book, but Chapter 21 "Using ASP.NET Membership" is causing me problems - or maybe I am just missing something. It is telling me that in order to modify user password requirements I need to add the following to the web.config file.
1
2959
by: kcddoorman | last post by:
I have searched all over the internets for a solution to this problem and there are many ways to work around it but I'm wondering if there is a more simple solution. I have asp.net 2.0 working with SQL Server 2005 Express and IIS 5.0. I made a page that contains the CreateUserWizard so people can get access to rest of my applications. Using the...
0
7693
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...
0
7605
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...
0
8118
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...
1
7665
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...
0
7962
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...
0
6277
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...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
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...

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.