Skip to content

Commit 8eb89a1

Browse files
github-actions[bot]KB BotIvetNikolovatodorarabadzhiev
authored andcommitted
Added new kb article resolving-microsoft-mshtml-assembly-error-telerik-report-designer (#1739)
* Added new kb article resolving-microsoft-mshtml-assembly-error-telerik-report-designer * Update resolving-microsoft-mshtml-assembly-error-telerik-report-designer.md * Add files via upload * Update resolving-microsoft-mshtml-assembly-error-telerik-report-designer.md --------- Co-authored-by: KB Bot <[email protected]> Co-authored-by: IvetNikolova <[email protected]> Co-authored-by: Todor Arabadzhiev <[email protected]>
1 parent 0d8d7a1 commit 8eb89a1

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed
401 KB
Loading
17.3 KB
Loading
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
title: Fixing "Could not load file or assembly Microsoft.mshtml" Error
3+
description: Resolve the "Could not load file or assembly Microsoft.mshtml" error encountered in Telerik Report Designer when designing reports.
4+
type: how-to
5+
page_title: Resolving Microsoft.mshtml Assembly Error in Telerik Report Designer
6+
meta_title: Resolving Microsoft.mshtml Assembly Error in Telerik Report Designer
7+
slug: resolving-microsoft-mshtml-assembly-error-telerik-report-designer
8+
tags: telerik reporting, error handling, microsoft.mshtml, gac, assembly references
9+
res_type: kb
10+
ticketid: 1692750
11+
---
12+
13+
## Environment
14+
15+
<table>
16+
<tbody>
17+
<tr>
18+
<td>Product</td>
19+
<td>Progress® Telerik® Reporting</td>
20+
</tr>
21+
</tbody>
22+
</table>
23+
24+
## Description
25+
26+
I encounter the `Could not load file or assembly Microsoft.mshtml` error when working with Telerik Report Designer. This happens consistently while updating or designing reports, particularly when adding a subreport and using an [HTMLTextBox]({%slug telerikreporting/designing-reports/report-structure/htmltextbox/overview%}) for a different SQL query. The error forces the system to shut down, requiring a restart.
27+
28+
## Solution
29+
30+
To resolve the "Could not load file or assembly Microsoft.mshtml" error, follow these steps:
31+
32+
### Step 1: Copy the Assembly to the Designer Folder
33+
34+
1. Locate the `microsoft.mshtml.dll` assembly file on your system.
35+
1. Copy the file to the Telerik Report Designer folder.
36+
37+
![Telerik Report Designer folder](images/TelerikReportDesignerFolder.png)
38+
39+
1. Open the report file (for example, `SampleReport.trdp`) and select the HTMLTextBox to check if the error is resolved.
40+
41+
### Step 2: Add Assembly Reference to the Configuration Files
42+
43+
1. Open the `Telerik.ReportDesigner.exe.config` or `Telerik.ReportDesigner.x86.exe.config` file.
44+
1. Add the following assembly reference. Ensure the `<Telerik.Reporting>` section is properly registered:
45+
46+
````XML
47+
<configuration>
48+
<configSections>
49+
<section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
50+
allowLocation="true" allowDefinition="Everywhere"/>
51+
</configSections>
52+
// ...
53+
<Telerik.Reporting>
54+
<AssemblyReferences>
55+
<add name="Microsoft.mshtml" version="7.0.3300.0" />
56+
</AssemblyReferences>
57+
</Telerik.Reporting>
58+
// ...
59+
````
60+
61+
62+
1. Save the changes and relaunch Telerik Report Designer.
63+
64+
### Step 3: Install Microsoft.mshtml in the Global Assembly Cache (GAC)
65+
66+
1. Open the Developer Command Prompt for Visual Studio.
67+
68+
![Developer Command Prompt](images/DeveloperCommandPrompt.png)
69+
70+
1. Run the command `gacutil /l microsoft.mshtml` to check if the assembly exists in the GAC. It should display `Number of items = 0` if missing.
71+
1. Navigate to the directory containing the `microsoft.mshtml.dll` file.
72+
1. Execute the following command to install the assembly: `gacutil /i microsoft.mshtml.dll`.
73+
1. Verify installation with `gacutil /l microsoft.mshtml`.
74+
75+
## See Also
76+
77+
*[Global Assembly Cache (GAC)](https://learn.microsoft.com/en-us/dotnet/framework/app-domains/gac)
78+
*[Install an assembly into the global assembly cache](https://learn.microsoft.com/en-us/dotnet/framework/app-domains/install-assembly-into-gac)

0 commit comments

Comments
 (0)