Solved

C# - MSHTML could not be found

Posted on 2008-06-19
3
2,007 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cant save 3D 4 23
Getting error in connectionstring with Excel. 30 46
VS2013 publish C# application Created folder -- where is it??? 10 28
MailAddress in vb 4 29
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…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

820 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