Asp.net mvc 4 simple membership - c#

I've got some silly questions, but I'm quite new in mvc and haven't found any appropriate answers,so:
1: In asp .net mvc4 internet application, as you create a new project VS. creates registration by default. If u register a new account, does mvc store this in a database? (I read that it stores, and can be found in appdata, but it's empty for me, and in server explorer there is no connetion, but I can log in and out after registration, it works perfectly.) Do I have to set a new sql server for VS or it handles this by itself? So how does this exactly work?
2: My goal is to modify the registration form to store id,name, fullname, email, registration date as you register. How can i achieve this by "extending" the default registration?

It does use a db. Check the connection string in web.config. VS 2010 uses SQL Express I believe and VS2012 uses localdb. SQL is installed with VS. The db file is usually installed in the app data folder but it does get generated until the first user is created. I suggest you get Microsoft SQL Management Studio if you want to look inside the DB, or use sever explorer from within VS.

This post perfectly answers to both of your questions

Related

How to put database on azure website

I recently finished my asp website, bought the domain and azure hosting. Unfortunately, when I try to do anything that accesses the database I just get stuck on a loading screen. I just used the default asp razor mvc 5 project I think for the database along with a couple of custom tables.
So here is how I would do it since you have an existing database. I would follow azures website, and set up a SQL database. I would then script out the database on you local machine, and log into your azure database using SQL Server Express. Execute the script you generated from localDB. Then all of your data will be good to go. You will then need to take the connection string from azure, and put it in your applications config file. After modifying the connection string in your application you should redeploy, and verify everything is working the way you want. You will be able to verify your data is there in SQL Server Express.
Here is a link that may be of quite a bit of assistance to you. It includes step by step instructions as well as screen shots.
Another option is using this tool. I have never used it, but I know a few people who have had great success with it.

ASP.net Paraccel connection string

I am wondering if anyone knows how to connect an ASP.net application to paraccel? I am very new to ASP.net development, just installed visual studio. However I am tasked with creating a web service that connects to paraccel in order for another non asp.net application to get what it needs. I understand the connectionstring needs to be set in the Web.config file, however I cannot find any samples of this for paraccel
I believe Amazon's Redshift product is based on the ParAccel parallel datawarehouse. You need to use Npgsql to connect to a ParAccel datawarehouse.

Creating ASP.NET website with membership database in server

I am trying to find out how I can add the membership database to my Mircroft SQL Server and then be able to reference it from a ASP.NET application. Basically, I created a new website app project, how do I create the asp_net membership database and then tell my website to comunicate to it?, I found this
http://msdn.microsoft.com/en-us/library/879kf95c.aspx
But that is not what i want, it creates a database file in the App_Code folder, I want it to access my Microsoft SQL Server and then there have such database. I am new to this setting up login merbership stuff and some pointers would be of great help. I thought maybe there was like a wizard where you could specify the server etc..?
Regards
There is a really nice Walkthrough of that here. You just need to use aspnet_regsql.exe to create the necessary objects in SQL Server and use Membership provider settings to use this new connection string, it is explained here under the Step 4: Specifying the Provider and Customizing Its Settings.
Hope that helps.
Cheers

Using the "default" login system for a new MVC application

I've just created my first ASP.NET MVC app. Since I didnt choose to create an empty project, visual studio generated some views for me, including a register user page.
But what tables would i need to create to make use of the register/login-functionality?
Use the aspnet_regsql.exe tool to create your membership database.
http://msdn.microsoft.com/en-us/library/ms229862(v=vs.80).aspx
You actually don't need to create any user tables at all. Try and register and you'll see that the first time you do, it takes a little while to complete the operation. This is because the ASP.NET Membership table structure is being created for you.
However, in Visual Studio, you can go to Project->ASP.NET Configuration which will open a browser window for you to enable you to configure accounts more easily.
If you want to add the ASP.NET Membership tables to your own database, which allows you to add custom tables relating to and extending the functionality of the default membership, you can do so by following the steps in this answer.
You must use the ASP.NET Web Administration tools. Official instructions are provided for you here, including information about the database for your users/passwords.
http://www.asp.net/guided-tour/s27.aspx

How to use OracleMembershipProvider in ASP.NET MVC Application

As per the suggestions in my last post, I installed all the Oracle providers in the database (by running all the sql files). I am trying to figure out how to tweak the default ASP.NET MVC2 sample (the one that gets created on a new project in VS) to use Oracle database. But I could not still figure out how to use OracleMembershipProvider instead of default membership provider.
P.S I installed the ODAC (Universal Installer version) and I could access the database from a simple ASP.NET application.
EDIT: I tried to add in section of , but am getting a configuration error:
It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level.
This link provides some information on the allowDefinition error. There are also a number of SO posts that describe this error. You may want to look at them as well and see what worked for those folks.

Categories

Resources