Adding a reg-free COM dependency to ExcelDNA.xll.config

55 views
Skip to first unread message

Masariello

unread,
Nov 23, 2009, 8:25:46 AM11/23/09
to ExcelDna
Does anyone have any experience with adding a reg-free COM dependency
to ExcelDNA.xll.config?

XlAddIn.Initialize fails at the first "Debug.Print" call with a
COR_E_TARGETINVOCATION (0x80131604)

I think I ran out of options here. Any guidance very much appreciated!
Thanks in advance!


My COM module manifest is really pretty simple. It has only one
coclass with one IDispatch interface marshalled by the COM TLB
marshaller (see below). I've made a Native.MyComModule.manifest file
that looks like this:

################ BEGIN FILE Native.MyComModule.manifest
###################
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity type = "win32" name = "MyComModule.dll" version
= "1.0.0.0" />
<file name = "MyComModule.dll">
<comClass clsid="{05F5B69B-B4E7-4500-94E5-8AA1533B44D5}"
threadingModel = "Apartment" />
<typelib tlbid="{BAE209E9-D942-4397-8806-FA93B54C2486}"
version="1.0" helpdir=""/>
</file>
<comInterfaceExternalProxyStub
name="IDoStuff"
iid="{2BAAAC04-7035-40DA-852D-35066FDE47CF}"
proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
baseInterface="{00000000-0000-0000-C000-000000000046}"
tlbid="{BAE209E9-D942-4397-8806-FA93B54C2486}" />
</assembly>
################ END FILE Native.MyComModule.manifest
###################

Then in the same directory (which contains all my bins, btw, really
simple) I add an ExcelDNA.xll.config file that looks like this:

################ BEGIN FILE ExcelDNA.xll.config ###################
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity type = "win32" name = "ExcelDNA" version =
"1.0.0.0" />
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Native.MyComModule"
version="1.0.0.0" />
</dependentAssembly>
</dependency>
</assembly>
################ END FILE ExcelDNA.xll.config ###################

Masariello

unread,
Nov 23, 2009, 9:51:00 AM11/23/09
to ExcelDna
After posting I realized that the the .config file was supposed to be
like this

################ BEGIN FILE ExcelDNA.xll.config ###################
<?xml version ="1.0"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity type="win32"
name="Native.MyComModule" version="1.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Reply all
Reply to author
Forward
0 new messages