Any time I re-open a Wisej Project in VS after closing without quitting VS e. g. switching from one solution to another, the Wisej Designer crashes. I always must restart VS. It does not matter which type of Wisej designer object (Page, Window, Desktop) is involved.
I never had Wisej 1.x installed or used.
The only fix is to make sure that you are not referencing different versions of the assemblies being loaded by the VS designer. Including project assemblies. It’s not a Wisej issue.
VS copies the assemblies loaded by the designer in a shadow directory. When these copies are out of date and cannot be updated or don’t match the references used by other assemblies you see this issue. Sometimes between the same assembly since in .NET you can load multiple identical copies of the same assembly resulting in the same type being loaded more than once and not being able to cast.
We cannot change the way VS loads the assemblies. This problem occurs with all systems (winforms, wpf, asp.net) and all frameworks. Try to delete /bin and /obj, and .vs after closing the designer and VS. Reopen and recompile all. Check the references set to Copy true. Make sure you don’t have multiple versions of the assemblies being designed. Delete the VS shadow temp directories. There are many sources from Microsoft on where they are located.
Reinstalling VS or Wisej is not related to this. Once you get the hang of it, it should work smoothly. I work daily on dozens of different projects in VS, with multiple versions and many assemblies loaded in the designer without issues. When this happens for me it’s enough to close VS, clean, reopen and it works.
Is there any fix for this problem yet? Seems others have similar issues: Issues opening designer when working in multiple project solutions – Wisej (In my case, I can switch between projects of a solution).
It happens to all Wisej projects even the simplest HelloWorld from template. And yes, I tried all the workarounds that have been posted (except re-installing VS).
I still must always close VS when switching between solutions, even closing+re-opening the same “HelloWorld” crashes.
This is a common visual studio problem when the same assembly is loaded multiple time. All component libraries using the designer may hit this issue:
Do this with a new clean project.
Otherwise you have to search for the VS cache and delete it. It’s probably here
15.0_6d397e1a has to be your VS installation instance. There may be more than one.
I also had these errors.
In my case I removed the “WiseJ.Framework” dll from my project and re-add the dll from the local (!) (c => Program Files) folder.
Then it should work.
I got this effect when installing extensions from NuGet and the extensions load the WiseJ.Framework dll from NuGet.
Please login first to submit.