By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 1,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

help with appdomain and Application.ExecutablePath

P: n/a
Hi Everyone,
I'm having a problem loadin a assembly into memory. Here is the code I'm
trying to run(Its a C# convert from an article (Search Dynamically for
Plug-ins):

Dim domain As AppDomain = AppDomain.CreateDomain("PluginLoader")
Dim finder As PluginFinder =
CType(domain.CreateInstanceFromAndUnwrap(Applicati on.ExecutablePath ,
"NFDocs.NarcoDocs.PluginFinder"), NFDocs.NarcoDocs.PluginFinder)
Dim FoundPluginTypes As ArrayList =
finder.SearchPath(Environment.CurrentDirectory)

I beleive part of my problem is the Application.ExecutablePath, If I try run
it in the immediate Window I get the following error:
'ExecutablePath' is not a member of 'MyApplication'

If I try and just run the above as is, I get the followinf error:
Could not load type 'NFDocs.NarcoDocs.PluginFinder' from assembly
'NarcoDocs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
I've got the followinf imports:
Imports System
Imports System.Drawing
Imports System.Collections
Imports System.ComponentModel
Imports System.Windows.Forms
Imports System.Windows.Forms.Application
Imports System.Data
Imports System.Configuration
Imports NFDocs.Plugins.NFDocs.Plugins

Thanks for any help.
Michael Lee

Nov 17 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.