Category Archives: MVC

Areas in ASP.NET Core

Introduction In a default MVC application everything is organized by Controllers and Views. The controller name determines the first part of your URL, and the controller method the second part. By default the view that will be rendered has the … Continue reading

Posted in .Net, Codeproject, Development, MVC, Web | Tagged , , , | Leave a comment

Structuring an MVC app for easy testing

Introduction In this article I want to give you some handles to structure your MVC applications in such a way that they become easier to test. The article isn’t really about MVC, but if you want more information on MVC, I … Continue reading

Posted in .Net, Codeproject, Development, MVC, Testing | Leave a comment

Creating an OData V4 service

I’m writing an agenda application, where the data can be delivered to the calendar control using either REST or OData V4. I choose the latter because this will allow for much more flexibility afterwards. I already have an MVC 5 … Continue reading

Posted in .Net, Codeproject, Development, MVC, MVC5, Web API | Tagged | 3 Comments

Using the repository pattern

In most applications database access is necessary. In .NET there are 2 main ways of doing this: ADO.NET or using the Entity Framework. Of course there are great 3rd party libraries like NHibernate that do the trick as well, and … Continue reading

Posted in .Net, Architecture, Codeproject, Development, MVC, WCF | Tagged | 3 Comments

Could not load file or assembly ‘System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’

When creating a new MVC5 application using VS2013 I got the following error: Could not load file or assembly ‘System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception … Continue reading

Posted in .Net, Development, MVC, MVC5, Web API | 2 Comments