Solved

C# - MSHTML could not be found

Posted on 2008-06-19
3
1,965 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now