operation could destabilize
Posted: Fri 13 Jul 2012 19:31
I have the simplest query, accessing one table from the dotConnect-generated data context, and get the following error every time
Using a brand new licensed copy of 7.0.25.0 on windows7 x64 with VS2010
================================
System.Security.VerificationException: Operation could destabilize the runtime. at MaterializeProject(MaterializerScope ) at Devart.Data.Linq.Engine.ObjectReader`1.a() at Devart.Data.Linq.Engine.ObjectReader`1.a(T& A_0) at Devart.Data.Linq.Engine.ObjectReader`1.g() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at _Default.getActiveProjects() in c:\Users\K5IMIEAV\Documents\Visual Studio 2010\WebSites\WebSite1\Default.aspx.cs:line 42
=================================
Line 42 => projectsList = query.ToList<Project>();
=================================
and Project is a struct that is being utilized with this query
DataContext data = new DataContext();
var query = data.ACTIVEPROJECTSREPORTs.Select(p => new Project {
cn = p.CNAME,
pn = p.PNAME,
pl = p.PL,
t = p.TYPE,
sp = "",
sd = p.SDATE,
lmd = p.LMDATE,
d = p.DI
});
Using a brand new licensed copy of 7.0.25.0 on windows7 x64 with VS2010
================================
System.Security.VerificationException: Operation could destabilize the runtime. at MaterializeProject(MaterializerScope ) at Devart.Data.Linq.Engine.ObjectReader`1.a() at Devart.Data.Linq.Engine.ObjectReader`1.a(T& A_0) at Devart.Data.Linq.Engine.ObjectReader`1.g() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at _Default.getActiveProjects() in c:\Users\K5IMIEAV\Documents\Visual Studio 2010\WebSites\WebSite1\Default.aspx.cs:line 42
=================================
Line 42 => projectsList = query.ToList<Project>();
=================================
and Project is a struct that is being utilized with this query
DataContext data = new DataContext();
var query = data.ACTIVEPROJECTSREPORTs.Select(p => new Project {
cn = p.CNAME,
pn = p.PNAME,
pl = p.PL,
t = p.TYPE,
sp = "",
sd = p.SDATE,
lmd = p.LMDATE,
d = p.DI
});