Click here to Skip to main content
11,645,087 members (68,769 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET MVC4
I have a local database to check authentication. You may create same database by C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe.

Create any MVC4 application and look _LoginPartial.cshtml file. You will see line
  • @Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })

1. Set your break point at method “Login” in Account controller.
2. Click in login and you will get exception at Unhandled exception at line 115, column 5 in http://localhost:61841/Scripts/jquery.unobtrusive-ajax.js.

But why it is so? How can I use my local database for authentication?
Why we are running javaScrip?

Any help will be very much appreciated.

Agha Khan
Posted 30-Jan-13 20:37pm
AghaKhan1.7K
Comments
Sergey Alexandrovich Kryukov at 31-Jan-13 2:48am
   
Why local database? This is not how authentication works...
—SA
AghaKhan at 31-Jan-13 4:18am
   
Thank you for your reply. FYI: You may add any database for authentication. Please check this. http://vantsuyoshi.wordpress.com/2012/02/24/create-simplemembership-with-asp-net-mvc-4-beta-sql-compact-edition-4ef-4-3-code-first/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 700
1 jyo.net 684
2 Sergey Alexandrovich Kryukov 473
3 CPallini 426
4 Afzaal Ahmad Zeeshan 418
0 OriginalGriff 1,065
1 Sergey Alexandrovich Kryukov 703
2 Afzaal Ahmad Zeeshan 702
3 DamithSL 681
4 CPallini 595


Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100