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