N/Direct - The .NET Interoperability Resource Center 

Knowledge Base

 

 

 

Most Valuable Professional

Knowledge Base


The following is a list of interop related articles in the Microsoft Knowledge Base (KB). The list is not guaranteed to be complete, it has been compiled manually. If you think an article is missing or incorrectly categorized, or find that one has been removed or has changed title, please don't hesitate to contact me.

The list is sorted by article ID. If you prefer, you can also view them sorted by category.

If you want to be notified of new articles in the Microsoft Knowledge Base, I recommend you subscribe to kbAlertz.

 

835847 - FIX: Your Windows Forms user control does not print and does not appear in Print Preview in Internet Explorer 

834855 - A licensed Windows Forms user control does not appear in the browser if you connect to the Web site by using Windows NT authentication 

828943 - FIX: COM Interop Call May Return Incorrect HRESULT 

827418 - BUG: A Visual Basic Application Stops Responding While It Disconnects from the Managed Event Source 

827164 - FIX: References to STA Objects That Are Stored in Session State May Become Corrupted If They Are Called from a Session_End Event 

827163 - FIX: References to STA Objects That Are Stored in Session State May Become Corrupted If They Are Called from a Session_End Event 

826915 - FIX: Marshal.ReleaseComObject Does Not Correctly Release Objects That Implement the IDisposable Interface 

823986 - PRB: Primary Interop Assembly (PIA) Install Occurs the First Time That You Open a Microsoft Office Document That Is Referenced by a Managed Code Extension 

820126 - BUG: New Interop DLL Is Not Put in the Correct Location for the Project When a COM Component Is Added   [C++]

818982 - FIX: "COMException - Type Mismatch" Error Message When You Pass a VARIANT Parameter from Managed Code 

818612 - FIX: "COM Object Can Not Be Used" Error Message When You Use an STA COM Object That You Created by Using Server.CreateObject and Stored in Session Scope in a Different Web Page 

818220 - PRB: The ActiveX User Control Is Not Visible in the Form Designer When You Reopen an Existing Project 

818216 - BUG: "Public Overrides WriteOnly Property..." Error When You Try to Override a Microsoft Visual Basic 6.0 Property in Microsoft Visual Basic .NET   [VB.NET]

817248 - HOW TO: Call Visual Basic .NET Assembly from Visual Basic 6.0 and Call Visual Basic COM Component from Visual Basic .NET   [VB.NET, VB]

817005 - FIX: Severe Performance Issues When You Bind Session State to Threads in ASPCompat Mode 

814472 - PRB: Linker Warnings When You Build Managed Extensions for C++ DLL Projects   [C++]

814361 - PRB: Microsoft Visual Basic .NET Does Not Support Adding ActiveX Controls and Licenses at Run Time   [VB.NET]

813809 - PRB: IntelliSense Features Do Not Appear in Visual Basic 6.0 for .NET COM Interop Components   [VB.NET]

813588 - Access Violation May Occur in COM Modules When Managed Process Exits 

813105 - FIX: .NET Framework Implementation of IEnumConnections::Next Causes the Client Application to Stop Responding 

811658 - HOW TO: Use the Microsoft Visual Studio .NET Native Debugger to Debug a Microsoft Visual Basic 6.0 DLL When It Is Called from an ASP.NET Application 

811645 - HOWTO: Establish a COM Event Sink in the .NET Framework With Return Values by Using Visual C# .NET   [C#]

811532 - FIX: The Windows Forms ActiveX Control Importer (Aximp.exe) Does Not Handle Default Values Correctly 

811004 - HOW TO: Implement a Managed Component that Wraps the Browse For Folder Common Dialog Box by Using Microsoft Visual Basic .NET   [VB.NET]

810245 - FIX: Invalid Object in ASP Session State 

810228 - HOW TO: Establish a COM Event Sink with Return Values in the .NET Framework by Using Visual Basic .NET   [VB.NET]

810098 - BUG: Object Reference is Not Set to an Instance of an Object   [C#]

330900 - FIX: ExecutionEngineException Error After a Typical Exception Is Thrown 

328912 - INFO: Microsoft Office XP PIAs Are Available for Download 

328557 - FIX: You receive a "NullReferenceException" error message when you try to pass a .NET Framework class to a COM wrapper class 

328347 - PRB: "Member Not Found" Error Message When You Use a For Each Statement on an Excel Collection with Visual Basic .NET or Visual C# .NET   [VB.NET]

328275 - HOW TO: Handle Events for the Office Web Components in Visual Studio .NET   [C#]

327507 - PRB: "Access to the Registry Key Denied" Error Message When You Register .NET Assembly for COM Interop 

327135 - BeforeNavigate2 Event of WebBrowser Control Does Not Fire 

327128 - BUG: TlbImp Silently Produces an Unloadable Assembly Without Warning 

327116 - PRB: InterOp Interfaces Must Match Vtable Layout for Early Binding to Work   [VB.NET]

327113 - BUG: Exception Error When You Use a Declare Function that Returns a Date Type in Visual Basic .NET   [VB.NET]

327107 - FIX: OutOfMemoryException Occurs When You Access Non-Fixed Size Safe Arrays in a User-Defined Type 

327106 - BUG: Some Marshal Class APIs Throw System.ExecutionEngineException If You Pass a Pointer, ByRef, or Array Type 

326652 - HOW TO: Dynamically Add ActiveX Controls that Require Run-Time Licenses in Visual C# .NET   [C#]

326651 - HOW TO: Dynamically Add ActiveX Controls that Require Run-Time Licenses in Visual Basic .NET   [VB.NET]

326251 - Composite ActiveX Controls Do Not Reactivate When Focus Is on the Child Control 

326217 - INFO: WebOCHostCSharp.exe Hosts the WebBrowser Control in C# .NET   [C#]

325791 - PRB: "Access Denied" Error Message Occurs When You Impersonate an Account in ASP.NET and Then Call STA COM Components   [C#, VB]

325742 - HOW TO: Implement .NET COM Interfaces that Require ByRef Parameters   [J#]

325699 - COM Interop Cannot Propoerly Deal with A Disconnected Stub 

325079 - BUG: The BeforeNavigate2 Event of WebBrowser Control Does Not Fire If Hosted in a Visual C# .NET Application   [C#]

324547 - FIX: Windows Control That Is Hosted in Microsoft Internet Explorer Leaks Unmanaged Resources 

324181 - FIX: Marshaling of Fixed Arrays of BSTR Fields in .NET Framework 

323737 - BUG: "System.InvalidCastException" Error Message When You Pass a Collection from a .NET-Connected Application to Visual Basic 6.0 Components   [VB.NET]

322376 - Access Violation in Type Library Importer When You Import More Than 81 Event Interfaces 

322173 - FIX: OnKeyUp Event Does Not Fire for WebBrowser Control 

322172 - FIX: Marshalling Structures that Contain SafeArray Fields 

322027 - OL2002: COM Add-Ins Are Not Trusted If They Are Created with Visual Studio .NET 

321695 - HOW TO: Wrap a UCOMIStream in a Stream Class in Visual Basic .NET   [VB.NET]

321525 - HOW TO: Use DTS Package Events in Visual Basic .NET   [VB.NET]

321415 - An Access Violation Occurs in ADO Under Heavy Stress with .NET COM Interop or Java 

321340 - HOW TO: Wrap a UCOMIStream in a Stream Class   [C++]

321078 - PRB: String That You Pass to Unmanaged Win32 API in Visual Studio .NET Returns Empty   [C#, VB.NET]

320780 - PRB: Cannot Add ActiveX Control to Toolbox 

320780 - PRB: Cannot Add ActiveX Control to Toolbox 

320523 - HOW TO: Check the Type of a COM Object (System.__ComObject) with Visual C# .NET   [C#]

320369 - BUG: "Old Format or Invalid Type Library" Error When Automating Excel 2002   [C#, VB.NET, C++]

319985 - HOW TO: Handle Data Transformation Services Package Events in Visual C# .NET   [C#]

319559 - HOW TO: Handle Events for the Office XP Chart Component on a Windows Form in Visual C# .NET   [C#]

319557 - HOW TO: Handle Events for the Office XP Chart Component by Using Visual Basic .NET   [VB.NET]

319398 - PRB: InvalidCastException When You Bind Office XP Web Component on a .NET Windows Form   [VB.NET]

319350 - HOW TO: Use the SHGetFileInfo Function to Get the Icons That Are Associated with Files in Visual C# .NET   [C#]

319342 - HOW TO: Handle Events for the Office XP Spreadsheet Component on a Windows Form in Visual Basic .NET   [VB.NET]

319341 - HOW TO: Handle Events for the Office XP Spreadsheet Component on a Windows Form in Visual C# .NET   [C#]

319340 - HOW TO: Use the SHGetFileInfo Function to Get the Icons That Are Associated with Files in Visual Basic .NET   [VB.NET]

318804 - HOW TO: Set a Windows Hook in Visual C# .NET   [C#]

318614 - HOW TO: Set Up a COM Component to Be Used from a .NET Client Across Computer Boundaries   [C#]

318608 - BUG: Tlbimp.exe Generates Interface Wrappers that Cannot Be Used   [VB.NET]

318559 - INFO: Using the Primary Interop Assembly for ADO (ADODB) in Visual Studio .NET 

318466 - Tlbimp.exe Cannot Handle Coclasses That List Source Interfaces That Are Defined in a Different Type Library 

317887 - BUG: .NET Method That Takes a ByRef Value Type Parameter Fails When You Pass a Variant Type   [VB.NET]

317626 - PRB: Overloaded Methods in a .NET Component May Not Be Version-Compatible for Unmanaged Clients 

317624 - BUG: System.OutOfMemoryException Thrown When You Invoke a COM Method That Returns a Structure Containing a String Array   [VB.NET, VB]

317577 - BUG: Call to Managed Class Method with StringBuilder as In or Out Parameter May Fail   [C#, C++]

317406 - HOW TO: Use the Unmanaged HTML Help API from a Managed Visual C# .NET Application   [C#]

317346 - INFO: Native Versus COM-Callable .NET Controls in Internet Explorer 

317322 - PRB: Tlbexp.exe May Produce Invalid Method Declarations 

317273 - PRB: Unhandled Exception When You Pass Non-Public Class Object to COM DLL   [VB.NET]

317203 - BUG: Type Library Importer Imports VARIANT_BOOL Field as Int16 

317157 - PRB: Errors When You Reference the Access 10.0 Type Library with Visual Studio .NET 

317116 - PRB: Helpstring Information May Be Lost During COM Interop 

317114 - HOW TO: Automate Microsoft Access From Visual C# .NET   [C#]

317113 - HOW TO: Automate Microsoft Access From Visual Basic .NET   [VB.NET]

317109 - PRB: Office Application Does Not Quit After Automation from Visual Studio .NET Client   [VB.NET]

317030 - HOW TO: Handle Arrays Returned as Variants from Visual Basic COM Object   [C#, VB.NET, VB]

317007 - BUG: TypeLoadException Is Generated Instead of MarshalDirectiveException   [C#]

316741 - FIX: "Method Not Found" Error Message When You Add UserControl to Form If UserControl Code Invokes AXControl Methods   [C#, VB.NET]

316724 - PRB: Macro Warning in Office Application When You Load .NET Add-in 

316723 - PRB: Visual Studio .NET Shared Add-in Is Not Displayed in Office COM Add-ins Dialog Box 

316653 - PRB: Error Using WithEvents or Delegates to Handle Excel Events from Visual Basic .NET or Visual C# .NET   [VB.NET]

316581 - BUG: Compile Error Message When You Implement a Class in a Referenced COM Library   [VB.NET]

316552 - FIX: Type Library Importer (Tlbimp.exe) Fails to Parse Certain Type Libraries 

316516 - HOW TO: Sink Managed Visual Basic Events in Internet Explorer Script   [VB.NET]

316478 - BUG: "Object Variable or With Block Variable Not Set" Error Message When You Access a Public Object Variable   [VB.NET]

316384 - HOW TO: Automate Word from Visual C# .NET to Create a New Document   [C#]

316383 - HOW TO: Automate Word from Visual Basic .NET to Create a New Document   [VB.NET]

316334 - FIX: COM Interop Marshaler Incorrectly Matches Types Between Assemblies 

316171 - BUG: All Controls on Windows Form Disappear If You Remove Reference to One Control from Project   [VB.NET]

316163 - PRB: Error Message When You Attempt to Build a Class Library Project: COM Interop Registration Failed   [VB.NET]

316142 - PRB: Error Message When You Add a COM Component: Converting the Type Library to a .NET Assembly Failed   [VB.NET]

316138 - BUG: "Type Mismatch" Error When You Assign Value Type Variable to Property Through COM InterOp   [VB.NET]

316138 - BUG: "Type Mismatch" Error When You Assign Value Type Variable to Property Through COM InterOp   [VB.NET]

316126 - HOW TO: Use Visual C# .NET to Automate a Running Instance of an Office Program   [C#]

316125 - PRB: Visual C# .NET Error Attaching to Running Instance of Office Application   [C#]

315981 - BUG: Visual Basic .NET "'[Method]' is ambiguous across the inherited interfaces" Error Message When Using Office Automation   [VB.NET]

315974 - HOW TO: Use ADO Recordsets in Visual Basic .NET   [VB.NET]

315974 - INFO: Roadmap for Using ADO in .NET   [VB.NET]

315847 - HOW TO: Use ActiveX Components in Visual Studio .NET with Visual Basic .NET   [VB.NET]

315155 - DOC: Office XP Service Pack 1 Is Required to Run Word Interop Sample in .NET Framework 

313891 - HOW TO: Sink Managed C# Events in Internet Explorer Script   [C#]

313802 - HOW TO: Retrieve Contacts by Using Outlook Object Model in Visual Basic .NET   [VB.NET]

313801 - HOW TO: Retrieve Appointments by Using the Outlook Object Model in Visual Basic .NET   [VB.NET]

313797 - HOW TO: List Members of a Distribution List by Using Outlook Object Model in Visual Basic .NET   [VB.NET]

313796 - HOW TO: List the File Menu Commands by Using Outlook Object Model in Visual Basic .NET   [VB.NET]

313795 - HOW TO: Retrieve Unread Messages from Inbox by Using Outlook Object Model in Visual Basic .NET   [VB.NET]

313791 - HOW TO: Delete an Outlook Folder by Using Outlook Object Model in Visual Basic .NET   [VB.NET]

313789 - HOW TO: Create a Meeting Request by Using Outlook Object Model in Visual Basic .NET   [VB.NET]

313788 - HOW TO: Create an Appointment by Using Outlook Object Model in Microsoft Visual Basic .NET   [VB.NET]

313666 - PRB: "Assembly Generation Failed" Error Message When You Try to Build a Managed DLL Without a Strong Name 

313506 - PRB: Visual Basic .NET Does Not Support the ComImport Attribute to Manually Declare a COM Component   [VB.NET]

313104 - BUG: NWFREADME:Word Interoperability Sample Generates An Exception Error Using the Word Find Object   [C#]

313068 - HOW TO: Host a WebBrowser Control in Visual C# .NET to Post Form Data   [C#]

312777 - HOW TO: Handle Document Events in a Visual C# .NET Application 

312120 - BUG: ActiveX Control Disappears in Windows Forms Designer 

311452 - INFO: Develop Microsoft Office Solutions with Visual Studio .NET 

311334 - INFO: ActiveX Control Containers That Support .NET Controls 

311303 - WebOCHostVB.exe Hosts the WebBrowser Control in Visual Basic .NET   [VB.NET]

311299 - PRB: Cannot Retrieve Top-Level IWebBrowser2 Interface from a .NET UserControl 

311298 - BUG: BeforeNavigate2 Event of WebBrowser Control Does Not Fire If Hosted in Visual Studio .NET Application 

311297 - HOW TO: Deploy COM Interop Programs to Internet Explorer 

311295 - HOW TO: Automate Internet Explorer Within a Contained Visual Basic .NET UserControl 

311294 - HOW TO: Host a WebBrowser Control in Visual Basic .NET to Post Form Data   [VB.NET]

311288 - HOW TO: Invoke the Find, View Source, and Options Dialog Boxes for the WebBrowser Control from Visual Basic .NET   [VB.NET]

311284 - HOW TO: Handle Document Events in a Visual Basic .NET Application 

311282 - HOW TO: Use the WebBrowser Control NewWindow2 Event in Visual Basic .NET   [VB.NET]

311259 - HOW TO: Convert from System::String* to Char* in Visual C++ .NET   [C++]

311058 - INFO: Microsoft .NET Framework Does Not Support Data Access Object   [VB.NET]

309694 - BUG: AppDomainUnloaded Exception When You Use Managed Extensions for C++ Components   [C++]

309336 - BUG: InvalidCastException Is Generated When You Try to Sink Outlook Application Events 

309330 - BUG: InvalidCastException When You Call a COM Component That Is Marked as STA 

309329 - BUG: COM Interop: No Built-in Support VARIANT of Type VT_RECORD 

309327 - PRB: Premature Garbage Collection of Object Reference   [VB.NET]

309047 - PRB: Unhandled Exception When You Set ADO Property to a String in Visual C# .NET   [C#]

308825 - HOWTO: Handle PowerPoint Events With Visual C# .NET   [C#]

308611 - HOW TO: Open ADO Connection and RecordSet Objects in Visual C# .NET   [C#]

308499 - PRB: Unhandled Exception When You Set ADO Property to a String in Visual Basic .NET   [VB.NET]

308409 - PRB: Visual Basic .NET Error Using GetObject or GetActiveObject For Running Instance of Office Application   [VB.NET]

308330 - HOWTO: Handle PowerPoint Events With Visual Basic .NET   [VB.NET]

308247 - HOW TO: Use ASP.NET to Query and Display Database Data in Excel by Using Visual Basic .NET   [VB.NET]

308095 - PRB: Creating STA Components in the Constructor in ASP.NET ASPCOMPAT Mode Negatively Affects Performance 

308047 - HOW TO: Open ADO Connection and Recordset Objects by Using Visual Basic .NET   [VB.NET]

307292 - HOWTO: Dismiss a Dialog Box Displayed by an Office Application with Visual Basic .NET   [VB.NET]

307029 - HOW TO: Transfer XML Data to Microsoft Excel 2002 by Using Visual C# .NET   [C#]

307021 - HOW TO: Transfer XML Data to Microsoft Excel 2002 by Using Visual Basic .NET   [VB.NET]

306801 - HOW TO: Interoperate with a COM Server That Returns Conformant Arrays by Using Visual BASIC .NET   [VB.NET]

306719 - BUG: Using the WebBrowser Control on Windows.Forms.Form with the Opacity Set to "< 1" Causes the Computer to Fail 

306683 - HOW TO: Run Office Macros Using Automation From Visual C# .NET   [C#]

306682 - HOWTO: Run Office Macros Using Automation From Visual Basic .NET   [VB.NET]

306422 - HOW TO: Create an Office XP Smart Tag DLL by Using Visual C# .NET   [C#]

306285 - HOW TO: Implement a Managed Component that Wraps the Browse For Folder Common Dialog Box by Using C#   [C#]

306058 - HOW TO: Create an Office XP Smart Tag DLL by Using Visual Basic .NET   [VB.NET]

306023 - HOW TO: Transfer Data to an Excel Workbook by Using Visual C# .NET   [C#]

306022 - HOW TO: Transfer Data to an Excel Workbook by Using Visual Basic .NET   [VB.NET]

305990 - HOW TO: Interoperate with a COM Server That Returns Conformant Arrays by Using Visual C# .NET   [C#]

305814 - HOW TO: Pass Optional Method Arguments from C#   [C#]

304662 - HOWTO: Use the WebBrowser Control to Open Office Documents with Visual C# .NET   [C#]

304661 - HOW TO: Binding for Office Automation Servers with Visual Basic .NET   [VB.NET]

304643 - HOWTO: Use the WebBrowser Control to Open an Office Document in Visual Basic .NET   [VB.NET]

303872 - HOWTO: Create an Excel Macro Using Automation from Visual C# .NET   [C#]

303871 - HOW TO: Create an Excel Macro by Using Automation from Visual Basic .NET   [VB.NET]

303718 - HOWTO: Use Automation to Create and Show a PowerPoint Presentation with Visual C# .NET   [C#]

303717 - HOWTO: Use Automation to Create and Show a PowerPoint Presentation with Visual Basic .NET   [VB.NET]

303296 - HOWTO: Use Automation to Get and Set Office Document Properties with Visual C# .NET   [C#]

303294 - HOWTO: Use Automation to Get and Set Office Document Properties with Visual Basic .NET   [VB.NET]

303018 - HOWTO: Use Automation to Create Office Command Bars and Controls with Visual C# .NET   [C#]

303017 - HOWTO: Use Automation to Create Office Command Bars and Controls with Visual Basic .NET   [VB.NET]

302902 - HOWTO: Binding for Office Automation Servers with Visual C# .NET   [C#]

302901 - HOW TO: Build an Office COM Add-in by Using Visual C# .NET   [C#]

302896 - HOW TO: Build an Office COM Add-in by Using Visual Basic .NET   [VB.NET]

302817 - HOWTO: Handle Events for Word Using Visual C# .NET   [C#]

302816 - HOWTO: Handle Events for Microsoft Word Using Microsoft Visual Basic .NET   [VB.NET]

302815 - HOW TO: Handle Events for Excel by Using Visual C# .NET   [C#]

302814 - HOW TO: Handle Events for Excel by Using Visual Basic .NET   [VB.NET]

302295 - HOWTO: Obtain the Window Handle for an Office Automation Server Using Visual C# .NET   [C#]

302281 - HOWTO: Obtain the Window Handle for an Office Automation Server Using Visual Basic .NET   [VB.NET]

302096 - HOWTO: Automate Excel With Visual C# .NET To Fill or Obtain Data In a Range Using Arrays   [C#]

302094 - HOWTO: Automate Excel From Visual Basic .Net To Fill or Obtain Data In a Range Using Arrays   [VB.NET]

302084 - HOWTO: Automate Microsoft Excel from Microsoft Visual C# .NET   [C#]

301982 - HOWTO: Automate Microsoft Excel from Visual Basic .NET   [VB.NET]

301659 - HOWTO: Automate Microsoft Word to Perform Mail Merge from Visual C# .NET   [C#]

301656 - HOWTO: Automate Microsoft Word to Perform a Mail Merge from Visual Basic .NET   [VB.NET]