Returning AspNetUser table data from get request
Returning AspNetUser table data from get request I am using Asp.Net Web Api Identity - Individual User Account. I am returning AspNetUser Table Data from Web API. Note : This table is made my asp.net itself, not me. But, I changed its connection string to store it in a pre-exiting database in Sql, and now, returning table data causes Internal Server Error . Internal Server Error public AspNetUser Get(string id) { using (UserDBEntities entities = new UserDBEntities()) { return entities.AspNetUsers.FirstOrDefault(u => u.UserName == id); } } And class for AspNetUser table is default, as individual user account proposes. If I do it like below, error still persist on normal run, but not while debugging, that is when I debug the code step-by-step, it works file, and returns correct data, but when I remove my breakpoints and execute OR press continue while debugging instead of going step wise to return statement, it runs into erro...