New installation - designer error - crash

Answered
0
0

Hi,
I have created an installation of 4.0.11 version in vs 2022 and every time i open the designer i am geting the error below.

Unable to cast object of type ‘Wisej.Web.Page’ to type ‘Wisej.Core.IWisejControl’.

This is happening in a new created project from web application template. Compilation is working fine but the designer crashes with the above error.
The new created project is using framework 4.8.1 and .net 9, the defaults and wisej version 4.0.11.

I have tried..

Uninstall both versions of wisej reboot and reinstalling only 4.0.11
Compile the project, close VS and reopen it.
Unsinstall and resinrall the product 4.0.11 several times.
Delete the folder AppData\Local\Microsoft\VisualStudio\17.0_xxx and recreated fron vs

Nothing works..!!

I had version 3.5 installed if this helps.
Thnaks

George

  • George Anifantakis
    Following the installer video i found that Wisej.NET-3-VS2022.vsix seeds to be installed first. I did that following the instruction then install ver 4.0.11. Now the templates have only Wisej 3 templates while Wisej 4 templates are missing. In the extentions installed tab both Wisej 3 and wisej 4 environments are installed and active.
  • George Anifantakis
    Does anybody know how to completed reset VS wisej environment properly to do the installation procedure agian ?
  • Frank (ITG)
    Hi George, the best way to uninstall an extensions is to go to Extensions – Mange Extensions, select extension and uninstall. Restart VS. Can you please post a screenshot of the Wisej.NET extensions after you did a fresh install? Best regards, Frank
  • You must to post comments
Best Answer
0
0

Hi,

After uninstall from extentions as wisej products, I did a deep search deleting all wisej dlls that i found in several folders.
After that, i install only  ver 4.0.11  and it seems to worl ok. I think that the problem occured from old  dlls that are not deleted after uninstall from all folders.

Thanks a lot for your support.
GA

  • You must to post comments
0
0

Hi George,

I installed Wisej in Visual Studio 2022 in the following order:

  1. Wisej 3
  2. Wisej 4

I then created a new project using Wisej 3 targeting .NET 9, and it opened correctly in the designer.

I’ve attached my test project in case it helps with troubleshooting.

Regards

  • You must to post comments
0
0

It’s not a crash. It’s an exception that a class cannot be cast to an interface. It means VS loaded multiple versions of the same assembly, which means you have multiple versions of Wisej.NET in the same project or an installation that is wrong. Delete all .bin and all .obj, uninstall all installations of wisej, search for any Wisej.Core and Wisej.Framework dlls and make sure the machine is clean. Install Wisej 4 extension and it will work.

Otherwise try on a clean machine.

  • You must to post comments
0
0

And a screenshot of the nugget package. It has other version.

Attachment
  • You must to post comments
0
0

Hi Frank, thanks a lot for your response.
I have procceded with the below acrions.

Uninstall from the VS extenions all Wisej products.
Restart the pc.

Fresh install using https://www.youtube.com/watch?v=8BTvHicJesc instructions.

After installtion finished, i have created a new wisej web aplication. When i open the designer same error occured.
Sending also screenshoots.

Thanks
GA

Attachment
  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.