473,386 Members | 1,753 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,386 software developers and data experts.

Urgent help on USe of AppendPrivatePath ??

Dear all

I am using the following code in my applciation

AppDomain.CurrentDomain.AppendPrivatePath("\Plugin s"
objDomain = AppDomain.CurrentDomain.CreateInstanceFromAndUnwra p(Name + ".dll", "NomosNetSuite.PluginApp.PlugIn" & Name

Return (CType(objDomain, IPlugIn).Icon

If I place the library that I need to load at the same place of my executable folder I am able to load it and instanciate it without any problem

Then If I move the same file to the Plugins folder and add that folder to the reflexion by calling AppendAppPrivatePath, I am noit able to load it, I get an error that it cannot found the library

As you can see the path is relative, I could found any information on that to clear me up

Does oen of you can help me and give me a hint

THnaks for your hel
Regard
CALDERARA Serg
Maillefer S.A
Jul 21 '05 #1
2 1887
> AppDomain.CurrentDomain.AppendPrivatePath("\Plugin s")

Don't use a backslash at the beginng - private paths are *always*
relative to your current path (your assembly's path):

AppDomain.CurrentDomain.AppendPrivatePath("Plugins ")

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Jul 21 '05 #2

Hi,

I just try what you suggest as calling AppendPrivatePath("Plugins")

buut still no way, it cannot found the library

Any other hint?

regards
Serge
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #3

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

Similar topics

4
by: serge calderara | last post by:
Dear all, I need to create an instance object of a library wit the following way: obj = AppDomain.CurrentDomain.CreateInstanceFromAndUnwrap ("Mylib.dll, "PluginApp.PlugIn") This works fine...
2
by: Serge calderara | last post by:
Hello, I have try to use the AppenPrivate path to current domain for assembly reflexion as follow : AppDomain.CurrentDomain.AppendPrivatePath( Global.ENVIRONMENT_PATH.PLUGINS_FILE_PATH) ...
0
by: Serge calderara | last post by:
Hello I have an application which works with plug-ins components that I load using follwoing code AppDomain.CurrentDomain.AppendPrivatePath("." + Global.ENVIRONMENT_PATH.PLUGINS_FILE_PATH obj...
28
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
2
by: Serge calderara | last post by:
Dear all I am using the following code in my applciation AppDomain.CurrentDomain.AppendPrivatePath("\Plugins" objDomain = AppDomain.CurrentDomain.CreateInstanceFromAndUnwrap(Name + ".dll",...
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...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
1
by: Peter Morris [Capable Objects] | last post by:
System.AppDomain.AppendPrivatePath(string) is obsolete : AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. From what I can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.