• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2163
  • Last Modified:

C# - MSHTML could not be found

I get an error with the following code:

using MSHTML;

It says "the type or namespace name 'MSHTML' could not be found"

yet in C:\Program Files\Microsoft.NET\Primary Interop Assemblies I have Microsoft.mshtml.dll

any ideas?
0
Koderz
Asked:
Koderz
1 Solution
 
MuhammadAdilCommented:
You need to add reference of Microsoft.mshtml.

Regards,
Adil Fazal
0
 
Jaime OlivaresSoftware ArchitectCommented:
try with mshtml alone (lowercase)
0
 
KoderzAuthor Commented:
Thanks MuhammadAdil! For others who come upon this post here is how you do it:

Right-click on your project -> Add Reference -> and it should be under the .NET tab

Cheers!
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now