If you are trying to use the simplemembership in mvc4 in visual studio and if you get this error Invalid object name ‘dbo.UserProfile’ in mvc4 Here is a simple fix for this This error will come when your table owner is not dbo. Change the table ownership in SQL Server by using the following […]
In SQL you would use the following query to get the count of number of rows in a table. Select count(*) from tblMyData In LINQ In VB.NET you would use the following to get it Dim v = (From u In MyContext.MyTable).Count() In C# you would use the following […]
Saving Changes is not permitted. The changes you have made require the following tables to be dropped and re-created.
In SQL Server if you attempt to modify a table structure through the Table Designer you would encounter this error. There is a simple fix for it. Step 1 Go to Tools > Options Step 2 Go to Designer > Table and Database Designers and Untick the option Step 3: […]
In your Create Actions in a Controller in MVC4, if you try to save text with html tags then you get this annoying error. A potentially dangerous Request.Form value was detected from the client Description: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script. The […]