开发者

Linq: {"Operation could destabilize the runtime."}

In my App i when debuging a have this exception: {"Operation could destabilize the runtime."} in the foreach loop:

foreach (var item in Model)

when i hover the model in debugmode the first time i says :

ResultView=&开发者_运维知识库gt;Expending the result view will enumarate the enumarable

        base=>Operation Could not destabilize the runtime.

after hovering a couple more times, a get the ResultView shows my data. thats when i, in debugmode...

when i run my app without debugin it a overing over the Mode it throws this exception

what does this mean??

UPDATE The model is IQueryable by it still doesnt work, only when i'm i debug mode


It possibly means that I made a mistake when implementing the code generator for expression trees. When an expression tree lambda is turned into a delegate, we spit IL dynamically into the delegate body. If that IL code is not well-formed and unverifiable, then running it could make the jitter generate bad code, and that could, in theory, destabilize the runtime. I thought we caught all the unverifiable code defects, but it is possible that a few slipped through.

If you have a small, simple, self-contained repro of the problem and it looks like it matches the diagnosis above, send me an email via the contact link on my blog, and I'll get a bug entered on the team that now owns the IL generation code. The ideal repro would just be code which generates an offending expression tree lambda, compiles it, and gets the exception.

Thanks!


check out this........

http://weblogs.asp.net/mnissen/archive/2009/05/07/quot-operation-could-destabilize-the-runtime-quot-error-with-asp-net-medium-trust-level-in-cassini-on-vista.aspx

Operation could destabilize the runtime?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜