Assembly.Load Troubles

  • Thread starter Thread starter Mike Hildner
  • Start date Start date
M

Mike Hildner

This throws an IOException:
Dim myAssembly As [Assembly] = [Assembly].Load(appPath & "\Plugins\Hello
World")

The assembly name is "Hello World", the file is Hello World.exe. Looking at
the help for the Load method, the string is requiring version, culture,
public key token (which I'm not passing)

I'm trying to build an extensible app, so how would I know the version etc.
if it's a third party plugin? Feels like I'm missing something stupid, but
don't know what.
 
You may use Assembly.LoadFrom(string) and provide a path to a manifest
module. Then you can retrieve all the information from Assmebly instance.

- Roman

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "Mike Hildner" <[email protected]>
| Subject: Assembly.Load Troubles
| Date: Fri, 9 Jan 2004 15:20:33 -0700
| Lines: 13
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 65.121.119.34
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:42620
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| This throws an IOException:
| Dim myAssembly As [Assembly] = [Assembly].Load(appPath & "\Plugins\Hello
| World")
|
| The assembly name is "Hello World", the file is Hello World.exe. Looking
at
| the help for the Load method, the string is requiring version, culture,
| public key token (which I'm not passing)
|
| I'm trying to build an extensible app, so how would I know the version
etc.
| if it's a third party plugin? Feels like I'm missing something stupid, but
| don't know what.
|
|
|

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top