Hi, I'm working on a school project - a fake online store. I've used some code from the MusicStore example on the Asp.Net website.
When I started working on the checkout controller, I encountered a problem. I keep getting this error when I try to login on the website with the user I'm seeding in my Initializer.
An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Web.dll but was not handled in user code Additional information: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed The error points to this specific part of my _Layout.cshtml:
@if (User.IsInRole("Admin")) { <li>@Html.ActionLink("Categories", "Index", "Categories")</li> }
Any id ...

Go to the complete details ...