Server Error in '/' Application.

Unable to cast object of type 'Devart.Data.Linq.Mapping.MetaType' to type 'Devart.Data.Linq.Engine.ba'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type 'Devart.Data.Linq.Mapping.MetaType' to type 'Devart.Data.Linq.Engine.ba'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidCastException: Unable to cast object of type 'Devart.Data.Linq.Mapping.MetaType' to type 'Devart.Data.Linq.Engine.ba'.]
   MaterializeFeed(MaterializerScope ) +6026
   Devart.Data.Linq.Engine.EntityReader`3.a() +240
   Devart.Data.Linq.Engine.ObjectReader`1.a(T& A_0) +40
   Devart.Data.Linq.Engine.ObjectReader`1.c() +115
   Devart.Data.Linq.DataProvider.a(c1 A_0, IDbConnection A_1, IDataReader A_2) +1138
   Devart.Data.Linq.DataProvider.a(c1 A_0, Object[] A_1) +5104
   Devart.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute(Expression expression) +52
   System.Linq.Queryable.FirstOrDefault(IQueryable`1 source, Expression`1 predicate) +490
   Pictures.Default.Page_Load(Object sender, EventArgs e) +3777
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18056