Cannot open form in designer "unable to cast object of type 'Wisej.Web.Form' to type 'Wisej.Core.IWisejControl'

Answered Closed
0
0

As per the title…

The project is new, the form (Window) is new.

What am I doing wrong?

Thanks,

Geoff

  • You must to post comments
Best Answer
0
0

Hi, Frank,

The extra hints helped.

The problem was caused by relocating documents folder from D: drive to C: drive when I had to replace the main HDD.

I had to edit the “Projects and Solutions\Locations” settings for each Visual Studio version to make it point to the current folder..

Thanks

Geoff

  • You must to post comments
0
0

Hi Geoff,

here you can find a couple more hints:

https://wisej.com/support/question/no-project-templates-available-in-wisej-2-0beta

Best regards
Frank

  • You must to post comments
0
0

Hi, Frank,

Still no luck. I have even installed the latest update today.

Template folders and files are where they should be.

In VS 2015, the WiseJ and Wisej2 categories were created. Only the WiseJ category has project type options.

No WiseJ/2 categories or project types appear in VS2017 or 2019

Any further ideas, places to look or steps to take?

Is there a step to perform in the VS environment?

 

Regards,

Geoff

 

  • You must to post comments
0
0

Hi Geoff,

you can download the templates here:

http://wisej.s3.amazonaws.com/downloads/Templates/2_1/Templates.zip

Please unzip them into

C:\users\<youruser>\documents\Visual Studio 20xx\Templates

Best regards
Frank

  • You must to post comments
0
0

Hi, Frank,

I’ve done a complete uninstall-reinstall-PC restart cycle.

I also checked all drives for any WiseJ references/files – none found after uninstall.

Are there files stored in hidden folders?

All 3 VS versions were checked when installing.

Still cannot see the WiseJ2 templates in new projects in VS2017, VS2019.

In VS2015, the option shows, but there are no templates (blank panel). VS2015 also shows a WiseJ(presumably) V1 option, and a project is created, but the form cannot be designed.

So, your help to manually install templates will be appreciated. Or a different approach if you think it will be faster.

I’m also happy to do a cleanup of any files that may have gotten “lost” – just let me know where to look.

I will add that my PC had a disk failure late 2019, and that the recovered backup version was quite old. It hasn’t caused any problems with other applications, but some settings and user configurations were affected – its possible this is causing the issue with WiseJ.

I also have VWG 10 installed on this PC – will that cause an issue?

Regards,

Geoff

  • You must to post comments
0
0

Hi Geoff,

this usually happens if there is a mix of Wisej 1.x and Wisej 2.x code.
Wisej 1.x reference Wisej.core.dll and Wisej.web.dll while Wisej 2.x only references Wisej.framework.dll

Please also note that when running Wisej 1.x and Wisej 2.x on the same machine,
there are 2 groups in the Visual Studio Toolbox.

If you accidentally drop a control from the Wisej group instead of the Wisej 2 group onto a Wisej 2 window
the error you described can occur too.

Hope that helps.

Best regards
Frank

  • You must to post comments
Showing 6 results