I am using mshtml to parse HTML in my ASP.NET-MVC application. Works great on my development machine, which has VS2008 Professional installed. Works great on my staging machine, which has VS Express 2008/WebDev installed. But it throws a FileNotFoundException when trying to load the COM object on the production server, which has no versions of Visual Studio.
Exception type: FileNotFoundException Exception message: Could not load file or assembly
'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
I don't want to install Visual Studio on the production box. I have read a suggestion that running C:\Program files\Common Files\Merge modules\vs_piaredist.exe solves this problem but this directory does not exist on my production box. How can I use mshtml on the production machine?