.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Microsoft.mshtml / mshtml.dll versioning and reference issues

Posted By:      Posted Date: August 28, 2010    Points: 0   Category :.NET Framework
Hi, Couldn't find a more relevant section to put this in, so I'll throw it here as I'm coding in C#, although that doesn't really matter. I'm using .NET 4, trying to add a reference to mshtml, and I want to have all the capabilities depending on the version the client has installed. If I add a reference to the COM component called 'Microsoft HTML Object Library', the reference is labelled "MSHTML" and the path points to an assembly in the GAC called 'Microsoft.html' for some reason. Even though I have IE8 installed, it is still missing the IE8 interfaces, which makes me think it is just pointing to the Microsoft.html.dll wrapper instead of generating the reference from the actual COM compoment. The Microsoft.html.dll wrapper is missing the IE8 interfaces, and from what I can tell, this wrapper is somewhat unnecessary with the .NET 4 "Embed Interop Types" feature. The other thing that scares me is the "Specific Version" field on the reference, which is set to true, and I can't change it. What if someone has a lower version of "Microsoft HTML Object Library" than my dev machine? EDIT: Sorry, got a little confused between adding a reference to Microsoft.mshtml .NET assembly and directly to the COM component.  If I add the reference to the COM component, "Specific Version" isn't available in the properties, bu

View Complete Post

More Related Resource Links

64 bit OS and Microsoft.mshtml issue





I have an application developed on a 32 bit machine using .net framework 2.0. One of the module of the application uses Microsoft.mshtml namespace. The application runs fine on a 32 bit OS, but when I try to run the same application on a 64 bit OS, the module using this namespace(Microsoft.mshtml) fails to run. Rest Of the application is running absolutely fine. It is not even generating any error message which I can provide here. I have installed the Primary interoperatiblity assemblies Assemblies 2005 since this helped me fix this issue on 32 bit Windows 2000 server. Is it so that 64 bit OS need interop assemblies specifically designed for 64 bit OS ? or this is something else.



Please Help Me On This Issue.





Versioning Issues With Optional Arguments

One nice new feature introduced in C# 4 is support for named and optional arguments . While these two features are often discussed together, they really are orthogonal concepts. Let's look at a quick example of these two concepts at work. Suppose we have a class with one method having the following signature. // v1 public static void Redirect( string url, string protocol = "http" ); This hypothetical library contains a single method that takes in two parameters, a required string url and an optional string protocol . The following shows the six possible ways this method can be called. HttpHelpers.Redirect( "http://haacked.com/" ); HttpHelpers.Redirect(url: "http://haacked.com/" ); HttpHelpers.Redirect( "http...(read more)

Need PIAs for MSHTML 8

I've got an application that references Microsoft.mshtml.dll version 7.x.  I'd like to use mshtml version 8 since it supports css 2.1 (specifically the content property for before/after pseudoelements). Unfortunately, I cannot find PIAs for mshtml 8.x. I attempted to reference mshtml.dll directly, but go the following error: A reference to 'mshtml.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.   Does anyone know how I can find/generate these PIAs?   Thanks, Steve

Issues when booting SP 2010 Microsoft Preconfigured VHD with Sun VirtualBOX

guys, Environment : host OS : windows 7 pro 64 bit sun virtual box 3.2.8 (latest with windows 2008 64 bit support0 Sharepoint 2010 I dont have windows 2008\ HyperV so i am trying to load the sharepoint 2010 preconfigured VHD on my windows 7 box using sun virtualBOX. i downloaded all the 20 files for option "a" from the microsoft site( http://www.microsoft.com/downloads/en/details.aspx?FamilyID=751fa0d1-356c-4002-9c60-d539896c66ce&displaylang=en) , extracted the files, started up VirtualBox, allocated it around 4GB RAM or more, selected windows 2008 64 bit as the OS then when i try to boot the SP 2010 VHD VirtualBOX shows me a blue screen of death, restarts, show me two optons "launch startup Repair" and "start normally", starting nomarlly shows blue screen of death but when i select startup repair it asks me for Recovery CD which ofcourse there is none after selcting the keyboard type which is "US" . Question is what am i doing wrong, i heard that lots of people have used VHD in virtualBox and it seems to be working fine? Any help is appreciated, i have downloaded all the vhd files twice and also extracted them twice, what could go wrong? thanks sameer

Missing Assembly Reference for Microsoft.Office,.Server.Search

I am getting the following error while accessing the namespace: Microsoft.Office.Server.Search.Query  The type or namespace name 'Query' does not exist in the namespace 'Microsoft.Office.Server.Search' (are you missing an assembly reference?)   I have added references to 1) Microsoft.Sharepoint  2) Microsoft.Office.Server and  3) Microsoft.Office.Server.Search I am using VS 2010 and set the framework version to 3.5 and Sharepoint RTM Version  vinod kumar Bhasyam

Microsoft.DataTransformationServices.Controls reference trouble



I have an issue when trying to add a reference to Microsoft.DataTransformationServices.Controls

from .Net tab and even form the golbal assembly cache

Have you any idea of how to fix that issue


The complexity resides in the simplicity

mshtml.dll problem with windows 7


I have a windows forms application embedding in it the IE browser control.

I compiled it with salamander software in order to be run without .net framework.

This applications is intended to run on a CDROM with softlock security applied to it!

The problem is that everytime i run the application it gives an error in the following dll: mshtml.dll

Can anyone advice?



cannot find a reference to Microsoft.sharepoint.dll on sharepoint a macchine



 I have sharepoint 2007 installed on server 2008 (VPC).

 In VS2008 I am unable to find Microsot.Shaerpoint.dll in "ADD Reference" section.

 I am able to browse for it in C:\...\ISAPI\Microsoft.Sharepoint.dll and add it.

I am wondering why is this not in .Net tab like I find in other sharepoint machines.

Am I missing any upodates or service packs for VS2008. I do not have SP1 installed to mention.

Please help resolve this.

Thank you

Looking for Microsoft Ajax 4 Client Templates reference/documentation/help


 I inherited the application that uses Microsoft Ajax 4 client templates. Syntax like {binding x, source=y, <another attribute>=z...}, special variables like: $id, $element, $itemdata, and Sys.UI.DataView components are all over. I don't understand the syntax and the usage.

I've been looking on the Web for any help, and all I find are some blogs that use those syntaxes, but no documentation. This site (asp.net) might had them in the past but now all they have is jQuery and Control Toolkit.

Can you please provide me some links where I can learn about MS client templates, syntax, Sys.UI.DataView, and how to use them.




Microsoft.Practices.EnterpriseLibrary DLL versioning Heck


I have to fix a program using Microsoft.Practices.EnterpriseLibrary. I get an error saying the assembly manifest doesn't match the web.config.  The web.config is defined as version  All the ones in the project are version 5.0.414.0.  Fine, I change those to 5.0.414.0.  I get the same error.

Does anyone have any ideas what this thing wants.  It doesn't say what version it's found, just that it isn't the one I specified.  It doesn't say where it's found it because it's not in my project. 

If this is Microsoft's solution to DLL hell, they seem to have only succeeded in adding another nine levels to the suffering.

At least they could have setting where you don't care what verison it is and let what happens, happens. 

Adding a reference to Microsoft excel object library


Its my first website with Visual studio 2005 and one of the things I used t do in VS2003 was to add the reference to Microsoft excel object library.

but the reference will not add, it does not give any error just goes back to the ide with no reference in the bin folder.

has anyone seen this or know what it is?

Infopath 2010 and Microsoft Access integration issues



I followed all the steps in the help article to create a new form from an existing Microsoft Access database. I publish this form using the "publish to network folder option" but i use a local folder on my computer

The form opens and i can add data, but when i submit it, i get this error mesage: Accessing data across domains is not supported for forms opened from the Internet

The database is located in the same folder as the published form so i am not sure what i am doing wrong here.Any help would be appreciated




issues with Microsoft.Office.Interop.Excel in asp.net throwing Exception from HRESULT: 0x800A03EC


i m using Microsoft.Office.Interop.Excel in asp.net for Excel file as anEmail attachment .

i get the data and write to Excel but when i try to save like:

oWB.SaveAs(strCurrentDir +strFile, Microsoft.Office.Interop.Excel.


XlFileFormat.xlWorkbookNormal, null,

mshtml on win7 x64 compiled for ANY CPU platform


Hi everyone


Our application use component 'Dynamic Html Editor' to allow user edit html text.

Our application refer to microsoft.mshtml.

When this application built in x86 mode - dynamic html editor works properly on windows 7 x64.

But now we need include other component which need application be compiled for 64 target platform. So we cannot prepare application in x86 mode any more.

So when we prepare application in Any CPU target platform, and install it on Windows 7 x64, application does not see registered dynamic html editor control and the following exception occurs:

     MESSAGE:          Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

     TYPE: System.Runtime.InteropServices.COMException

     SOURCE:           System.Windows.Forms

     STACK TRACE:     

   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)

   at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
   at System.Windows.Fo

Compatibility issues between Microsoft Visual Studio 2005 and Windows Server 2008 R2


Dear sirs,

When I was installing SQL Server 2005 64 bit on Windows Server 2008 R2, I received a notice informing the software Microsoft Visual Studio 2005 has known compatibility issues with this version of Windows.

So how can I get around these problems?

I need to use Visual Studio 2005 to create the Integration Services packages.

Also, I need to migrate directories of Integration Services packages from a server with SQL Server 2005 32 bit on Windows Server 2003 32 bit for a server with SQL Server 2005 64 bit on Windows Server 2008 R2. How can I proceed to do this?

Thanks in advance.

Jose Luiz

Mshtml/WebBrowser based html editor breaks with IE9

My 32-bit .net 3.5 winforms app hangs if run concurrently with IE9. It uses the System.Windows.Forms.WebBrowser control for editing html along with the IHTMLDocument2 COM interface. The app references mshtml. This did not happen with IE8.

Microsoft AJAX CDN

Content delivery networks (CDNs) are composed of "edge cache" servers that are strategically placed around the world at key Internet network points. These "edge cache" servers can be used to cache and deliver all types of content - including images, videos, CSS and JavaScript files.

Using a CDN can significantly improve a website's end-user performance, since it enables browsers to more quickly retrieve and download content. For example, instead of having a browser request for an image traverse all the way across the Internet to your web server to download, a CDN can instead serve the request directly from a nearby "edge cache" server that might only be a single network hop away from your customer (making it return much faster - which makes your pages load quicker).
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend