emacinty
01-30-2005, 12:37 AM
Hello!
My assembly uses the XmlApplicationContext along with a location of
the style "assembly://" in order to get bean definitions from an
embedded resource. That all works fine when my assembly is used
from a pure .Net application.
However, when my assembly is used via COM Interop from a Word
AddIn, my assembly can't be resolved:
"Unable to load assembly [<name of assembly>]"
This is nested within the following, thrown on constructing the context:
"Exception has been thrown by the target of an invocation."
There are not normally any problems with my assembly in terms
of .Net finding it, so I suspect this may be a side affect of Interop
and the fact that I don't use the GAC - just a guess.
I'd be more than happy to look up the resource myself and pass
in a stream - does Spring.Net let me do this? The context above
only seems to support resources which can be addressed via a
string location.
thanks
Ewan MacIntyre
PS I'm using the code from CVS from 2005-01-28.
My assembly uses the XmlApplicationContext along with a location of
the style "assembly://" in order to get bean definitions from an
embedded resource. That all works fine when my assembly is used
from a pure .Net application.
However, when my assembly is used via COM Interop from a Word
AddIn, my assembly can't be resolved:
"Unable to load assembly [<name of assembly>]"
This is nested within the following, thrown on constructing the context:
"Exception has been thrown by the target of an invocation."
There are not normally any problems with my assembly in terms
of .Net finding it, so I suspect this may be a side affect of Interop
and the fact that I don't use the GAC - just a guess.
I'd be more than happy to look up the resource myself and pass
in a stream - does Spring.Net let me do this? The context above
only seems to support resources which can be addressed via a
string location.
thanks
Ewan MacIntyre
PS I'm using the code from CVS from 2005-01-28.