Archivi del mese: febbraio 2016

HTTP Error 404.3-Not Found

Some times ago I got this error using IIS: HTTP Error 404.3-Not Found The page you are requesting cannot be served because of the extension configuration. If the page is script, add a handler. If the file should be downloaded, … Continua a leggere

Pubblicato in Uncategorized | Contrassegnato , , | Lascia un commento

Serializing Entity Framework classes with JSON (Web API) without relationship

How many times have you ever tried to serialize an object of a type generated by EntityFramework. As you know with Entity Framework the relationship between to tables are made using virtual IEnumerable. As just you try to access to … Continua a leggere

Pubblicato in .Net, Asp.Net, c#, Entity Framework, MVC | Contrassegnato , | Lascia un commento

Missing compiler required member ‘Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create’

If you are working with MS unit test that use dynamics object, you’ll get this error. Missing compiler required member ‘Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create’ to solve it add the reference to Microsoft.CSharp

Pubblicato in .Net, c# | Contrassegnato , , | Lascia un commento

The entity or complex type cannnot be constructed in a LINQ to Entities query

In some cases it is necessary read form a table and return a different type. A typical cases is if you read from a base table but you wanna return the view class and not the table class mapped by … Continua a leggere

Pubblicato in .Net, c#, Entity Framework | Contrassegnato | Lascia un commento

MVC Remove error from MiodelState

If you do client side validation, you’ll know that hiding some controller will remove the validation for that controller. But if you need to validate it on server side, the validation will act also in some controller hidded by javascript. … Continua a leggere

Pubblicato in .Net, MVC | Contrassegnato , , | Lascia un commento