Re: Assembly.Load() exception
- From: "C.C. \(aka Me\)" <me@xxxxxxxx>
- Date: Tue, 24 Jan 2006 14:52:47 -0500
You did not specify the filename or you forgot to put the extention on the
filename.
TestModule needs to have an extention (.DLL or .EXE).
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Charles Cox
VC/VB/C# Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Steve" <sss@xxxxxxx> wrote in message
news:exy0BxRIGHA.3056@xxxxxxxxxxxxxxxxxxxxxxx
> I'm playing with late binding and trying a very simple test to load an
> assembly
>
> In my "Host" application I have this code:
> <code>
> string modulePath =
> @"C:\PMDRepository\Tools\ManfBusProcMgr\Modules\TestModule\bin\Debug\TestModule";
> Assembly a = Assembly.Load(modulePath);
> </code>
>
> This is throwing the following exception:
> Could not load file or assembly
> 'C:\\PMDRepository\\Tools\\ManfBusProcMgr\\Modules\\TestModule\\bin\\Debug\\TestModule'
> or one of its dependencies. The given assembly name or codebase was
> invalid. (Exception from HRESULT: 0x80131047)
>
>
> The assembly that I'm trying to load is just a simple class library with
> one member and one property. Both were created in VS2005.
> I've done some initial googling, but nothing is popping up. Any ideas?
>
> Thanks for reading!
> Steve Klett
>
.
- Follow-Ups:
- Re: Assembly.Load() exception
- From: Steve
- Re: Assembly.Load() exception
- References:
- Assembly.Load() exception
- From: Steve
- Assembly.Load() exception
- Prev by Date: Re: Interface Question
- Next by Date: Re: Unable to invoking method via reflection
- Previous by thread: Re: Assembly.Load() exception
- Next by thread: Re: Assembly.Load() exception
- Index(es):
Relevant Pages
|