Visual Studio 2019 Designer Crash after upgrading from version 14.2.20.1021 to 17.0.23.118

2 Answers 110 Views
Expressions General Discussions Report Designer (standalone)
ChrisM
Top achievements
Rank 1
Iron
ChrisM asked on 29 Jun 2023, 10:59 AM

After upgrading Telerik Reports from version 14.2.20.1021 to 17.0.23.118 we experience Visual Studio crashes when opening the "Expression..." 

editor after the first time.

 

Steps to reproduce:

* Open the report.

* Open the "Expression....". Loads correctly (as above)

* Close the report

* Reopen the same report

* Open the "Expression....". Visual Studio Crashes while showing the editor and shows the following:

Event Viewer shows the following:

OS and Visual Studio Versions

Microsoft Visual Studio Professional 2019 Version 16.11.27

OS : Windows 11 

 

Please advice on how to proceed.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 04 Jul 2023, 08:30 AM

Hello Chris,

I am sorry to hear that you are experiencing issues with the Visual Studio Report Designer.

I recommend ensuring that you have updated all Telerik Reporting references in your project to the new version, which includes every place csproj file, (web/app).config, etc. Consider running the 'Upgrade Wizard' to achieve this faster than it would if done manually  - Using the Upgrade Wizard - Telerik Reporting

If the issue persists, please produce and send us a trace log from the Visual Studio application with the crash error - Troubleshooting Visual Studio Report Designer Problems - Telerik Reporting.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
0
ChrisM
Top achievements
Rank 1
Iron
answered on 07 Jul 2023, 07:44 AM

Upgrading to the latest version (R2 2023 (17.1.23.606))   solves the problem with Visual Studio 2019 crash.

Thanks.

ChrisM
Top achievements
Rank 1
Iron
commented on 03 Aug 2023, 09:35 AM

I'm reposting because after two weeks we experience exactly the same problem.

We try to uninstall the 17.1.23.606 version and install it again but with no effect.

Note that the crash happens when we open the Expression modal on HtmlTextBox, not ordinary text boxes.

Please advise.

Dimitar
Telerik team
commented on 07 Aug 2023, 01:05 PM

The Report Designers need the assembly Microsoft.mshtml for the HtmlTextBox designer. If this assembly is not present in the Global Assembly Cache, it could lead to crashes, however, I am not sure why that would be the case since it was working before. Still, better to be sure, I suggest looking into your system's GAC and ensuring that the assembly is present there - How to: View the Contents of the Global Assembly Cache - .NET Framework | Microsoft Learn.

If you would need further assistance, I will need to see a trace log from the Visual Studio application - Troubleshooting Visual Studio Report Designer Problems - Telerik Reporting.

I will be looking forward to receiving an update from you.

.

ChrisM
Top achievements
Rank 1
Iron
commented on 07 Aug 2023, 01:54 PM

Hello,

The Microsoft.mshtml is installed in GAC:

  Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

 

 

Dimitar
Telerik team
commented on 09 Aug 2023, 12:53 PM

Hello Chris,

In such a case, could you please use the Fuslogvw.exe tool to check for any assemblies not being loaded correctly?

 Is it the same report that causes the crash? If you create a new report and add a new HtmlTextBox to it, does it crash too?

 Also, is there a reason for not generating the trace log from the VS app? It could potentially be very helpful in figuring out the root of the issue and I would appreciate it if you could attach such a log with your next reply, if possible - Troubleshooting Visual Studio Report Designer Problems - Telerik Reporting.

ChrisM
Top achievements
Rank 1
Iron
commented on 09 Aug 2023, 01:41 PM

Hello again,

I've attached the two log files. log2.txt created using devenv /Log switch and Devenv.txt through devenv config option.

Also the Fuslogvw.exe  doesn't show any bind errors.

 

Dimitar
Telerik team
commented on 14 Aug 2023, 09:21 AM

Hello Chris,

Thank you for the attached logs!

The main error seems to be indicating that the value of the HtmlTextBox that you are trying to open is invalid:

System.ArgumentException: Value does not fall within the expected range.
   at mshtml.IHTMLSelectionObject.createRange()
   at Telerik.Reporting.HtmlEditor.FilterUtils.GetSelectedElement(IHTMLDocument2 document)
   at Telerik.Reporting.HtmlEditor.RealFontSizeCommand.GetCurrentValue(IHTMLDocument2 document)
   at Telerik.Reporting.HtmlEditor.RealFontSizeCommand.get_Value()
   at Telerik.Reporting.HtmlEditor.EditorToolbar.OnEditorUpdateUI(Object sender, EventArgs e)
   at Telerik.Reporting.HtmlEditor.EditorToolbar.SetButtonCheckedState(EditorMode mode)
   at Telerik.Reporting.Design.Common.ExpressionBuilder.ExpressionHtmlEditor.LoadState(StatePersistence persistence)
   at Telerik.Reporting.Design.Persistence.UserPersistence.LoadState(Control parentControl, StatePersistence persistence)
   at Telerik.Reporting.Design.Persistence.UserPersistence.LoadState(Control parentControl, StatePersistence persistence)
   at Telerik.Reporting.Design.Persistence.UserPersistence.LoadState(Control parentControl, StatePersistence persistence)
   at Telerik.Reporting.Design.Persistence.UserPersistence.LoadStateCore(Control persistentControl)

Is the problem thrown only with a specific report/HtmlTextBox or it will be reproduced even if you create a new empty HtmlTextBox item? If it is the former, please try to change the value of the problematic HtmlTextBox from the properties tab, without opening the edit menu or from the code behind.

If it is the latter, please try the approach mentioned in the top answer of the visual studio - "Value does not fall within the expected range" when trying to add a reference in a project - Stack Overflow article.

In case the above does not help, please send a sample report with the issue so that we may debug it locally.

Tags
Expressions General Discussions Report Designer (standalone)
Asked by
ChrisM
Top achievements
Rank 1
Iron
Answers by
Dimitar
Telerik team
ChrisM
Top achievements
Rank 1
Iron
Share this question
or