COM and .NET - Links to documents and tutorials: Difference between revisions

From Yggenyk
Jump to navigation Jump to search
No edit summary
 
Line 17: Line 17:
:* [http://msdn.microsoft.com/en-us/library/4a9t8a9a.aspx Step 3: Checking the Global Assembly Cache]
:* [http://msdn.microsoft.com/en-us/library/4a9t8a9a.aspx Step 3: Checking the Global Assembly Cache]
:* [http://msdn.microsoft.com/en-us/library/15hyw9x3.aspx Step 4: Locating the Assembly through Codebases or Probing]
:* [http://msdn.microsoft.com/en-us/library/15hyw9x3.aspx Step 4: Locating the Assembly through Codebases or Probing]
====Loading Assemblies from code====
* [http://msdn.microsoft.com/en-us/library/25y1ya39.aspx How to: Load Assemblies into an Application Domain] (Preferred)
* [http://msdn.microsoft.com/en-us/library/system.reflection.assembly.loadfrom.aspx Assembly..::.LoadFrom Method]
* [http://msdn.microsoft.com/en-us/library/system.reflection.assembly.loadfrom.aspx Assembly..::.LoadFrom Method]



Latest revision as of 07:25, 19 February 2009

<google>ENGELSK</google>

Making C# .NET COM Servers

Merge all dependencies into one .NET COM component

Locating Assemblies

Loading Assemblies from code

General links about COM how it works and how to register components

Component Object Model (General)

Trouble shooting

If it won't work and you get strange errors like

  • CreateObject (-2146233079 automation error).
  • 80010002 "Call was canceled by the message filter"
  • 80131522

Try putting try/catch handlers in your .NET code (especially the constructor) with tracing...
Use Trace.WriteLine(e); and Sysinternals Dbgview.exe to trace what is happening

id=siteTree