I tried just the name and I get the same exception.
Does the assembly need to be in the same location as the loading assembly?
"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
news:epeJw0RIGHA.1132@TK2MSFTNGP10.phx.gbl...[color=blue][color=green]
> ><code>
>> string modulePath =
>>@"C:\PMDRepository\Tools\ManfBusProcMgr\Modules\ TestModule\bin\Debug\TestModule";
>> Assembly a = Assembly.Load(modulePath);
>></code>[/color]
>
> Assembly.Load takes a assembly name, not a file path. You can try
> Assebmly.LoadFrom instead (though it has its own set of problems).
>
>
> Mattias
>
> --
> Mattias Sjögren [C# MVP] mattias @ mvps.org
>
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
> Please reply only to the newsgroup.[/color]