Solved

C# - MSHTML could not be found

Posted on 2008-06-19
3
2,066 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

627 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