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

"Microsoft.mshtml": Installation Problem, File or assembly name Microsoft.mshtml, or one of its dependencies, was not found

I wrote a c# application with Visual Studio 2003 and it uses InternetExplorer automation. For that, I reference Microsoft.mshtml in my project. On the development machine everything works well, but when I install it on another machine, i get the follwing error:

System.IO.FileNotFoundException: File or assembly name Microsoft.mshtml, or one of its dependencies, was not found. File name: "Microsoft.mshtml"

I also added a setup project to my solution, and Microsoft.mshtml.dll does show up in the Detected Dependencies. But even after installing the application with setup, the error occurs.

Any suggestions how to install the application on another machine?
0
enterprisemanager
Asked:
enterprisemanager
1 Solution
 
ShazbotOKCommented:
Change the properties of the reference to the Microsoft.mshtml to "Copy Local = True"
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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