Solved

C# - MSHTML could not be found

Posted on 2008-06-19
3
2,000 Views
Last Modified: 2008-06-19
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
Comment
Question by:Koderz
3 Comments
 
LVL 6

Accepted Solution

by:
MuhammadAdil earned 250 total points
ID: 21824494
You need to add reference of Microsoft.mshtml.

Regards,
Adil Fazal
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 21824561
try with mshtml alone (lowercase)
0
 

Author Comment

by:Koderz
ID: 21826254
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question