473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

help with appdomain and Application.ExecutablePath

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
0 2090

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: A. Elamiri | last post by:
Hello, I created a small app which acts as a services manager. I basically drop a DLL in a Services folder and set the frequency through the application for how often do I want the code in the...
11
by: Harry Whitehouse | last post by:
I'm trying to obtain the load directory for my application, as well as the Windows directory on the machine, but I don't know how this is accomplished in VC++ .NET. In C# there is an Application...
5
by: Tiraman | last post by:
Hi , i have the A.dll in my GAC (only one occurrence) and after i deleted it from the GAC i saw that it still working . so i did IISRESET and now it throw an error . can we define the time...
5
by: Benny Raymond | last post by:
What should I do instead of this: AppDomain.CurrentDomain.AppendPrivatePath(Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + @"\plugins"); now that...
1
by: Rain | last post by:
AppDomain appDomain = AppDomain.CreateDomain("appDomain", null, null); try { appDomain.Load(@"FF-DeliousDateTimeRequestor.dll"); } finally { AppDomain.Unload(appDomain); }
3
by: gs | last post by:
I do want the path and the filename of the executable. However, visual studio .net basic express 2005 rejects Application.ExecutablePath Error 1 Name 'Application' is not declared. ..... ...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
3
by: Olie | last post by:
I am trying to run an application by creating a new AppDomain and then running the executable in the new domain. This works perfectly but when the application runs it is looking in the wrong...
4
by: illegal.prime | last post by:
Hi all, I'm getting unexpected results when trying to preload assemblies into an AppDomain I'm creating. Upon creation of the AppDomain - I attach an AssemblyResolve to both my current AppDomain...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.