This project has moved and is read-only. For the latest updates, please go here.


NullReferenceException in DesktopWindowManager.cs (VS 2012 Only)


I get a NullReferenceException when trying to use the AeroWizard Control template item in a new project.
It seems it's happening in DesktopWindowManager somewhere.

Note: This does not happen for the "Wizard97" or "Custom Wizard" controls.
Using VS 2012, Works fine in VS 2015

file attachments

Closed Mar 13 at 6:22 PM by dahall
Unable to duplicate error.


dahall wrote Oct 30, 2015 at 3:58 PM

I've done a walkthrough of the code and can't find anything with just a visual review. Are there any details you can provide like the full exception detail or the activity being performed when the exception occurs?

wrote Aug 25, 2016 at 8:50 PM

jacobvoll wrote Aug 25, 2016 at 8:50 PM

Hi dahall,

Apologies for the mega delay. This is working in VS2015 but not in VS2012.

Attached is a minimal example project for VS2012 which demonstrates the issue on my machine.

Here's the detail:
System.NullReferenceException occurred
Message=Object reference not set to an instance of an object.
Microsoft.Win32.DesktopWindowManager.DesktopWindowManager.MessageWindow.ExecuteEvents(Int32 idx)
InnerException: null
Please let me knwo if you can run the attached proejct and launch the AeroWizard button successfully in VS2012.

Thanks for everything!

dahall wrote Aug 27, 2016 at 6:19 PM

I'm so sorry, but I have upgraded the project to VS2015 and no longer have VS2012 available. I opened the ZIP file and ran the program in the Debug folder without any error on Win10.

wrote Aug 29, 2016 at 8:33 PM

wrote Mar 13 at 6:22 PM