This is a migrated thread and some comments may be shown as answers.

Operation could destabilize the runtime

1 Answer 173 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jay
Top achievements
Rank 1
Jay asked on 25 Sep 2009, 08:00 PM
We have a lot of sites hosted with Rackspace Cloud and they switched all of their .net servers to run under medium trust and it caused nearly all of the websites we have hosted with them to crash.  They were all using NHibernate which apparently won't run under medium trust.  OpenAccess has come to our rescue as I've been ripping out nhibernate and replacing it with it and then configuring it to run under medium trust.  This has worked for several of the websites but in others I get an error that says "Operation could destabilize the runtime".  The user code in all of the websites are pretty similar and don't do anything to crazy.  Below is a screenshot of the error I see.  Any ideas why I might be getting it and what I can do to resolved?  Thanks

Operation could destabilize the runtime.

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.Security.VerificationException: Operation could destabilize the runtime.

Source Error: 

Line 29:     protected void Page_Load(object sender, EventArgs e)Line 30:     {Line 31:         stories = SelectedCategory != nullLine 32:                       ? new List<Story>(SelectedCategory.Stories.Where(s => s.Publish))Line 33:                       : storyDAO.GetPublished();

Source File: \\fs1-n01\stor1wc1dfw1\380857\www.reasonsforoptimism.com\web\content\default.aspx.cs    Line: 31 

Stack Trace: 

[VerificationException: Operation could destabilize the runtime.]   ReasonsForOptimism.Model.Story.OpenAccessEnhancedOrigCctor() +23   ReasonsForOptimism.Model.Story..cctor() +56[TypeInitializationException: The type initializer for 'ReasonsForOptimism.Model.Story' threw an exception.]   System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(IntPtr type) +0   Telerik.OpenAccess.RT.TypeResolver.Initialize(Type t) +200   Telerik.OpenAccess.SPI.ConfigCollector.ProcessAssembly(Assembly inputAssembly2) +117   Telerik.OpenAccess.SPI.ConfigCollector.Collect(IConfigBuilder cBuilder, IAssemblyProvider asmLoader, Hashtable alreadyProcessed, Boolean collectReferences) +130   Telerik.OpenAccess.SPI.ConfigCollector.Collect(IConfigBuilder cBuilder, IAssemblyProvider asmLoader, Boolean collectReferences) +54   Telerik.OpenAccess.RT.DatabaseAdapter.GetPersistentClassesConfig(ConfigManager configManager, ArrayList jdoRootsArrayList, Boolean& allowRemote) +427   Telerik.OpenAccess.RT.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open) +694   Telerik.OpenAccess.RT.DatabaseAdapter.GetObjectScope(TransactionProvider provider) +32   Telerik.OpenAccess.RT.DatabaseAdapter.GetObjectScope() +12   Telerik.OpenAccess.Database.GetObjectScope() +13   ReasonsForOptimism.DAL.OpenAccess.OaScopeProvider.GetNewObjectScope() +57   ReasonsForOptimism.DAL.OpenAccess.OaScopeProvider.ObjectScope() +77   ReasonsForOptimism.DAL.OpenAccess.OpenAccessDao`1.get_Scope() +34   ReasonsForOptimism.DAL.OpenAccess.StoryDao.GetPublished() +52   _Default.Page_Load(Object sender, EventArgs e) in \\fs1-n01\stor1wc1dfw1\380857\www.reasonsforoptimism.com\web\content\default.aspx.cs:31   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35   System.Web.UI.Control.OnLoad(EventArgs e) +99   System.Web.UI.Control.LoadRecursive() +50   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074

1 Answer, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 29 Sep 2009, 03:45 PM
Hi Ben Friedman,

You can see the answer to your questions in the support thread you have submitted on this topic. Ticket ID: 246312. For any additional follow-up regarding this issue I suggest we continue our conversation in your support thread.

Kind regards,
Zoran
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Jay
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Share this question
or