Ticket Q408821
Visible to All Users

I just upgraded to DXperience 12.1 and nothing with WPF is working. Demo apps, demo source

created 13 years ago

When I run any of the WPF demo apps, they never start. I get the following from event viewer:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Application Error"
/>
  <EventID
Qualifiers="0">1000</EventID>
  <Level>2</Level>
  <Task>100</Task>
  <Keywords>0x80000000000000</Keywords>
  <TimeCreated SystemTime="2012-06-13T12:47:47.000000000Z" />
  <EventRecordID>60788</EventRecordID>
  <Channel>Application</Channel>
  <Computer>SCOTT-LAPTOP.NDL.local</Computer>
  <Security />
  </System>
- <EventData>
  <Data>DevExpress.VideoRent.Wpf.exe</Data>
  <Data>1.0.0.0</Data>
  <Data>4fd355e2</Data>
  <Data>KERNELBASE.dll</Data>
  <Data>6.1.7601.17651</Data>
  <Data>4e211319</Data>
  <Data>e0434352</Data>
  <Data>0000b9bc</Data>
  <Data>1268</Data>
  <Data>01cd4962ba9b5e84</Data>
  <Data>C:\Users\Public\Documents\DXperience 12.1
Demos\WPF\DevExpress.VideoRent.Wpf\Bin\DevExpress.VideoRent.Wpf.exe</Data>
  <Data>C:\Windows\syswow64\KERNELBASE.dll</Data>
  <Data>f9fde697-b555-11e1-9f2c-f04da2bed905</Data>
  </EventData>
  </Event>
When I run the demo app from source I get the following exception: System.TypeInitializationException was unhandled HResult=-2146233036 Message=The type initializer for 'DevExpress.Xpf.Core.DXWindow' threw an exception. Source=DevExpress.Xpf.Core.v12.1 TypeName=DevExpress.Xpf.Core.DXWindow StackTrace: at DevExpress.Xpf.Core.DXWindow…ctor() at DevExpress.RealtorWorld.Xpf.View.MainWindow…ctor() in C:\Users\Public\Documents\DXperience 12.1 Demos\WPF\DevExpress.RealtorWorld.Wpf\CS\DevExpress.RealtorWorld.Wpf\View\MainWindow.xaml.cs:line 8 at DevExpress.RealtorWorld.Xpf.AppStartup.InitApp() in C:\Users\Public\Documents\DXperience 12.1 Demos\WPF\DevExpress.RealtorWorld.Wpf\CS\DevExpress.RealtorWorld.Wpf\Program.cs:line 34 at DevExpress.RealtorWorld.Xpf.Program.Main(String[] args) in C:\Users\Public\Documents\DXperience 12.1 Demos\WPF\DevExpress.RealtorWorld.Wpf\CS\DevExpress.RealtorWorld.Wpf\Program.cs:line 20 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel) at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly() at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData) at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext) at System.Activator.CreateInstance(ActivationContext activationContext) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: System.Security.VerificationException HResult=-2146233075 Message=Operation could destabilize the runtime. Source=DevExpress.Xpf.Core.v12.1 StackTrace: at DevExpress.Xpf.Core.DXWindow…cctor() InnerException:

Comments (2)

    I have uninstalled and reinstalled DVX 12.1.4 and reinstalled VS2010 SP1. I still cannot run any WPF demo app. I loaded RealtorWorld demo source. I can compile it but cannot run. When I open AgentDetailView.xaml there is a yellow bar at the top that says:
    VerificationException was thrown on "CurrentAgentHomesEdit": Cannot create instance of GridControl
    An Unhandled Exception has occurred
    Operation could destabilize the runtime
    at DevExpress.Xpf.Grid.GridControl…cctor()

      When I run the RealtorWorld app from VS2010 I get the following exception:
      System.TypeInitializationException was unhandled
        HResult=-2146233036
        Message=The type initializer for 'DevExpress.Xpf.Core.DXWindow' threw an exception.
        Source=DevExpress.Xpf.Core.v12.1
        TypeName=DevExpress.Xpf.Core.DXWindow
        StackTrace:
             at DevExpress.Xpf.Core.DXWindow…ctor()
             at DevExpress.RealtorWorld.Xpf.View.MainWindow…ctor() in C:\Users\Public\Documents\DXperience 12.1 Demos\WPF\DevEx

      Answers approved by DevExpress Support

      created 13 years ago (modified 12 years ago)

      I had a copy of .Net 4.5 Beta that was uninstalled but still hanging around. I had to re-install that then uninstall it. Then I installed .Net 4 and everything started working.

        Other Answers

        created 13 years ago (modified 13 years ago)

        This issue can occur if you have the .NET 4.5 beta framework installed. It comes with VS11 RC and Win 8 Consumer Review.
        To solve the issue, install the latest available version of VS (at this moment, VS12 RC ) or update Windows 8 to the latest version. I.e., you need to have the latest version of .NET Framework installed that does not have this problem.

          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.