Ticket Q512306
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Error System.Security.VerificationException using DXTabControl programmatically

Operation could destabilize the runtime (Dashboards v.13.1)

created 12 years ago

NOTE: I have a reproducible case attached. First project uses v12.2 and second one references v13.1
We just recently upgraded to version 13.1 of the Ultimate suite after using the trial version 12.2. I am using VS2010 and have .NET 4.0 installed on my machine. Basically when I attempt to embed a dashboard within a xaml page I get the execption below when running the application under the debugger. When not under the debugger I do not get the exception. I dont have this problem when referencing the older 12.2 libaries and unfortunately since we had trial version dont want to downgrade to 12.2.

C#
System.Security.VerificationException was unhandled Message=Operation could destabilize the runtime. Source=DevExpress.XtraLayout.v13.1 StackTrace: at DevExpress.XtraLayout.Handlers.DragDropDispatcher.CreateDispatcherState(DragDropDispatcherState state) at DevExpress.XtraLayout.Handlers.DragDropDispatcher..ctor() at DevExpress.XtraLayout.Handlers.DragDropDispatcherFactory.CreateIDragDropDispatcher() at DevExpress.XtraLayout.Handlers.DragDropDispatcherFactory.get_Default() at DevExpress.XtraLayout.Handlers.LayoutControlHandler.AutoScrollByMoving(Point mousePos) at DevExpress.XtraLayout.Handlers.LayoutControlHandler.OnTimer() at DevExpress.XtraDashboardLayout.DashboardLayoutControlHandler.OnTimer() at DevExpress.XtraLayout.LayoutControlImplementor.OnTimedEvent(Object sender, EventArgs e) at System.Windows.Forms.Timer.OnTick(EventArgs e) at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run(Window window) at System.Windows.Application.Run() at WpfApplication6.App2.Main() in C:\Users\xxx\Documents\visual studio 2010\Projects\DashboardTestSln\obj\x86\Debug\App2.g.cs:line 0 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:
Show previous comments (2)

    Also want to add that I have local admin rights on my computer. I debug using visual studio 2010 ultimate and I tried the suggestion on Q308912 and compiled and run (debugger attached) with Release/x86 profile and I still get the exception.

      Ok, I think I may have found a workaround as per Q262635, it has to do with IntelliTrace; simply changing the IntelliTrace settings to "IntelliTrace events only" was able to get around this problem (i.e. Tools->Options->IntelliTrace->General)

      DevExpress Support Team 12 years ago

        I am happy to hear that the problem is now resolved. Thank you for informing me.
        Please do not hesitate to contact us if you find an issue in our product or run into a problem when using it. We will be happy to assist you.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.