Critical bug with UserControls

0
0

Hi,

There’s a critical bug in the latest update (1.4.25.0) affecting Wisej VB.net projects.  I can no longer create a new Inherited UserControl, with the error ‘Exception has been thrown by target on an invocation’.

Existing UserControls don’t appear to load properly in Chrome, but Firefox and IE seems to be ok.  I’ve got an existing VB.net based Wisej project with a HtmlPanel control, and when trying to set the html text for the HtmlPanel text, Chrome hangs with the kill dialog eventually appearing.  However, placing the HtmlPanel directly onto a webform does not cause it to hang.

C# projects don’t appear to be affected.

 

  • Luca (ITG)
    Is HtmlPanel docked inside a UserControl?
  • You must to post comments
0
0

Hi Andrew, did you recompile the user controls? Looks like a binding error when the signature of a method cannot be resolved by .NET. The rightToLeft default argument of MessageBox,Show() has changed to RightToLeft. Checking the second problem.

 

  • Andrew Hills
    Hi Luca. Yes, all the user controls have been rebuilt and appear to build fine without error. This is a tricky one to diagnose because I’m unable to create a brand new VB project and add a user control, I get that same error, Exception has been thrown by the target of an invocation. To get this error, I create a new VB Wisej project, then right click on the solution name in solution explorer and select Add > New Item > Inherited User Control, then the error appears. I’ll perform a rollback this morning and see if that works. To answer your other questions, I have a UserControl with a Panel docked to the right which contains the HtmlPanel, then I have CKEditor docked to fill the remaining area in the UserControl. On load, the text for CKEditor is loaded from the DB, and the HtmlPanel gets populated with HTML items that can be dragged and dropped into CKEditor (essentially this: https://wisej.com/support/question/strange-drag-and-drop-behaviour). The UserControl gets displayed on a WebForm allowing the user to select a template to load from the DB.
  • Andrew Hills
    I’ve just found that if I create a brand new VB Wisej project, then try to add a UserControl I get the error. But if I add a new Empty Window then immediately try adding a new UserControl it works. If I then delete the UserControl and the empty window (Window2), save then close off VS, re-open the same project and try adding a UserControl again, the error comes back.
  • You must to post comments
0
0

I was finally able to replicate the problem in a separate VB project (see attached zip).

This example is essentially what happens in the main project I’m working on.  User chooses a template to load which is supposed to display the template text inside the CKEditor control with the draggable fields in the HtmlPanel which are contained within a UserControl.  The UserControl is added to a tab page on the form.  The tab page and UserControl are created at runtime.  This works as expected in IE and Firefox but will hang in Chrome.  As mentioned previously, this was working before latest update so if I need to tweak something to get this working again then please let me know.

  • Luca (ITG)
    Thank you! Can reproduce it.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.