EF Object Reference Error is Solved
.NET Development, Entity Framework, Visual StudioVisual Studio, Entity Framework (EF)
C#.net/vb.net asp.net 4.5
EF error 6.0
Visual Studio 2013
Errors:
Object reference not set to an instance of an object.
An exception of type 'System.NullReferenceException' occurred
Web…
SOLVED: Bootstrap Typeahead Error
.NET Development, Bootstrap, C#, Entity Framework, jQuery, MVC5Recently, while trying to implement Bootstrap's typeahead.js to an ASP.NET MVC project, we ran into a couple problems. To start, we were using the following articles as a guide:
http://deanhume.com/home/blogpost/twitter-bootstrap-typeahead-and-asp-net-mvc---key-value-pairs/88
http://yassershaikh.com/using-twitter-typeahead-js-with-asp-net-mvc-web-api/
The…
HOWTO: Route AP12 Controls in MVC
.NET Development, C#, MVC, MVC5, Visual Studio.net MVC
Our .net MVC development team started working with the new Web API 2 controllers released with Visual Studio 2013, and quickly hit some important issues.
Routing and AttributeRouting and using Web API 2 controllers inside an…
Entity Framework Error CS1061
.NET Development, C#, Entity Framework, MVC, MVC4, MVC5Recently, while developing an application using Entity Framework, I ran into several compilation errors after adding an additional table to my database. Most notably was this error when trying to declare a couple of variables that had once worked…
Solved: Data Annotation Client Validation
.NET Development, C#Data Annotations
Summary:
You may have found code samples to generate your own Data Annotations handler for Web Forms. You may have found incomplete or broken examples. Stop. Use this instead: http://davalidation.codeplex.com/
You…
ThrowIfMaxHttpCollectionKeysExceeded
.NET DevelopmentOn Dec 29, 2011, Microsoft released a security update KB2656356 / MS11-100 for ASP.NET to address a potential Denial of Service vulnerability. In the update, Microsoft introduced a limit to the number of data elements on an ASP.NET form. …