I had a web application. We needed to move it to anotherserver, after we moved that, the membership database (aspnetdb) did not work.....finally i solved the problem, and now I have another problem. although in the web.config enablepasswordretrieval is set to true, and the type is clear, i get error in password retrieval.
I have developed a Silverlight app using forms authentication and the asp net membership, aspnetdb, the whole enchilada.The bug I see is that the password for my users change by them self every bow and then, the way I fix them is by deleting the user and creating them again, this has been I problem all the time.In a post I read the problem was manifesting because I didn't have a machineKey in my web.config, I now do, so I dunno what the problem is this time...Is there a definitive fix to this? can you please provide assistance?
I am trying to save a user in the ASPNETDB using a simple password (5 numbers). There is an exception that says I cannot save the password. First I thought i was the password format, but did a simple check to "Clear" and had the same restriction. Is there a setting I have to specify in ASPNETDB or in VS2005 to let simple password come thru? The code I am using is :
Dim status As MembershipCreateStatus Try Membership.CreateUser(UserNameTextBox.Text, PasswordTextBox.Text, EmailTextBox.Text, QuestionTextBox.Text, AnswerTextBox.Text, True, status) Catch ex As Exception MsgBox("An exception occurred: " & ex.Message & ". Please re-enter your values and try again.") End Try If status = MembershipCreateStatus.InvalidPassword Then MsgBox("Invalid Password, please re-enter your values and try again")
I was wondering how I would go about changing a users password in ASPNETDB? There are some stored procedure I've been playing around with such as dbo.aspnet_Membership_setpassword and resetpassword but I've managed to corrupt the login password for my user as now I cannot login anymore (gives wrong username or password message in my webform login screen).Any ideas how I can successfully change my password from the ASPNETDB / stored procedure ?
1. When I publish to my hosting server it overwrites everything from the base directory up (like its supposed to). I can publish to a sub directory but then when visiting my domain, it wont find my published app. I thought of redirecting to the subfolder I publish to, but this doesnt seem very elegant. (ie [URL]). Im using godaddy shared, if that helps.
2. VS2008 makes this ASPNETDB for its local testing membership providing. Ive tried to switch it to another one locally, or to reference my hosted one to no avail, it defaults back to this ASPNETDB one. Thats ok. After I publish it, I change the web config to connect to my hosted DB and it works fine. My problem is that when it publishes, it includes this 10mb test ASPNETDB.mdf which takes a bunch of time and bandwith to upload. How do I prevent that from happening?Ive tried excluding from the project, but when I test again locally, and publish, it has created a new one.Ive tried deleteing it. Same thing as above.
I have added some collums to some of the tables in ASPNETDB.MDF and would like to display some of that data to my users on my website using the gridview.I have added the following connection string to my web.config :
Ive searched quite a while to do this.. havent found any revelant answer i already have a database named GAD.MDF with tables inside. However i wanna use the membership API to use the tables generated in the aspnetdb.mdf. Is there a way to generate thoses tables in my own database and then use my database instead? cause many host only enable us to use one database.
I am using vusiaul studio 2005. I have been unable to use the express database. I can create it, by simply tryign to log in. But if I try to open the ASPNETDB.MDF database itself I get the following error:
"This server version is not supported. You must have Microsoft SQL Server 2005 Beta 2 or later."
I have SQL 2005 loaded on my machine. I would think this would be enough. Anyone know where I can ge the Beta 2 download or does anyone have another resolution for this?
I have an aspnetdb and I have created another aspnetdb for another website, but instead of starting from scratch, I would like to import all the data from the one that has users and other data into the new aspnetdb. Is there a way to do this? Are any tools available?
I have a database called Database.mdf. It contains all my data (of course) and has the ASP.NET Membership Schema installed from using aspnet_regsql.exe. And, the Membership Schema was working just fine for about a month. Then all of a sudden users could not log in. After some looking around I saw a ASPNETDB.MDF in the App_Data folder, which was not there when I deployed the site. How can I determine what changed, and how can I fix the site so it goes back to using the Database.MDF Membership Schema and not the auto-generated ASPNETDB.MDF Membership Schema ?
I'm having a hard time wrapping my head around how to use the Memberships in MVC. I know there is the built in ASPNETDB database which has all the basic tables for users and such. But what if I wanted to add a relationship between one of my custom tables and this built in user table?
If I had a database table that contained blog comments, we'll call it Comment. And each Comment had a userID associated with it could I do something like?
I'm taking Microsoft's walk through on MVC 2 Forms Authentication - [URL]According to the walk through, when I register a user, ASP.NET creates the ASPNETDB.MDF file and it is supposed to show up in my APP_DATA folder upon refreshing in the solution explorer. The problem is, for me it is not and I want to have a look inside so I can understand it's structure.I can continue to run the project and login as the user I created, yet the ASPNETDB.MDF file is still not visible under the APP_DATA folder.
Can it be done? I tried renaming it once, and kept getting errors after that, something about authorization. I changed the Name of the DB, and the Name in the connection string in web.config, but didn't work.
I prefer not to reinvent the wheel. With an ASP.NET MVC v1.0 application, on Windows Server 2003, running SQL Server 2008 Express, the builtin template for ASP.NET MVC generates a Controller called AccountController.cs. It also generates under Views four Account views:
In Shared, it generates LogOnUserControl.ascx In the upper right corner of each rendered web page, one sees [ Log On ] App_Data is initially empty. The first time one logs on (or perhaps creates a registration), ASPNETDB.mdf will normally be created automatically. Here is the default connection string from the main ASP.NET MVC
I would like to know if it's possible not to use ASPNETDB.MDF file for the web parts.I don't want to store any data in ASPNETDB.MDF, I would like to remove that file, I tried delete it, but every time I compile my project, ASPNETDB.MDF creates it self automatically.
I have setup a Web Site Administration Tool for a web application and it work great Now i have another custom application that was built on a different server and site but i want to use the users in the existingWeb Site Administration Tool for authentication and authorisation.So i deployed the custom application to the the same server where the Web Site Administration Tool resides. and just changed the connection string to point to the same database.But when i login with a username and pass it says login no correct.http://myserver/IntranetAdminTool/default.aspx?pplicationPhysicalPath=C:Inetpubmyapplication&applicationUrl=/myapplicationwhen i go to the link above it works and i can see all my usershttp://myserver/IntranetAdminTool/default.aspx?pplicationPhysicalPath=C:Inetpubmyapplication2&applicationUrl=/myapplication2When i go to this link i can't see users as its th new custom application i just moved to the site.
I get error There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem:Server cannot access application directory 'C:Inetpubmyapplication2'. The directory does not exist or is not accessible because of security settings.Is my approach a resonable one and is this possible?
In one of my web app's pages, the code behind needs to grab the UserId of the person logged in, so that it can then be inserted into a table which was added to the original aspnetdb.mdf. This table contains a column with a uniqueidentifier primary key which is in direct relationship with the aspnet_Users table; however I seem to have trouble retrieving the UserId. This table contains the additional information of a user which is not included in the provider, and it has a one-to-one relationship with aspnet_Users.
I hope this makes sense. I haven't written any code for it yet; I'm only at the thinking part of this stage. But my mind keeps going blank.(perhaps I need a break from the solution???).
I have web application project and i want to edit aspnetdb Database, but id does not appear in App_Data folder.I even cant see web.config file for subfolerds. When i create web site project in vs, i can see the aspnetdb Database.
I built a cms system which use the aspnetdb and I made few changes on that database.I use it for login and registeration only , but today when I uploaded all the files , I realize that my hosting company use a prefix for the database name for example db1010101_*** so , is it ok to rename the database or I should create my own ?
btw I build my database on mssql 2005 and the hosting is 2000 so I will have some troubles :