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
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
Upgrading to the latest version (R2 2023 (17.1.23.606)) solves the problem with Visual Studio 2019 crash.
Thanks.
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.
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.
.
Hello,
The Microsoft.mshtml is installed in GAC:
Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
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.
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.
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.