Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

A com addin works in F# but not in C#

$
0
0

Hello,

Has anyone ever come across a problem where a COM addin would be usable in F# code but not in C#?

I have a COM addin that I load into F# using System.Activator.CreateInstance(Type.GetTypeFromProgID(AddinName)),

where AddinName is the string containing the name of the COM addin. In F#, this call returns an object which is of type System._ComObject, but the same is not working in C# where I get a run-time System.IO.FileNotFoundException.

I have verified that the two projects reference the same dll and have the same build and debug settings.

Thanks,

Elena


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>