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

URGENT : System areflexion assembly ???

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)

obj = AppDomain.CurrentDomain.CreateInstanceFromAndUnwra p
(item.FileName,
"PluginApp.PlugIn" + item.Name)

Doing this it is able to load my assembly only if it is
present in my application folder. It does not search in
the folder that I specified in AppendPrivatePath.

What am i doing wrong ?

Thnaks for your reply
serge

Jul 21 '05 #1
2 1269
Serge: Have you tried passing a *relative* path to AppendPrivatePath? That
is, pass @".\Plugins" instead of "C:\Blah\MyApp\Plugins"
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"Serge calderara" <se*************@maillefer.net> wrote in message
news:09****************************@phx.gbl...
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)

obj = AppDomain.CurrentDomain.CreateInstanceFromAndUnwra p
(item.FileName,
"PluginApp.PlugIn" + item.Name)

Doing this it is able to load my assembly only if it is
present in my application folder. It does not search in
the folder that I specified in AppendPrivatePath.

What am i doing wrong ?

Thnaks for your reply
serge

Jul 21 '05 #2
Hello,

Thnaks for your reply..

If I display the Appdomain.CurrentDomain.BaseDirectory it display my
application executable path with "\" at the end

Then I have try to append relative path as
AppDomain.CurrentDomain.AppenPrivatePath("PLugins" )

and also try AppDomain.CurrentDomain.AppenPrivatePath(".\PLugin s")

But still it does not found assemblies...
Do you have any other ideas ?

thnaks for your help


*** 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

8
by: Chris | last post by:
Hi, All my websites and webservices are down. I get the following message Server Error in '/mywebservices' Application....
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) ...
2
by: intrader | last post by:
I have a .NET interop assembly Hash.MD5Sum with two methods Identity and GetMD5Sum. I want to call the methods from ASP (JScript), The debugger tells me that object oMD5Sum has only one method...
3
by: Bratislav Jevtic | last post by:
Hi, I've just installed Ajax November CTP, changed app according to instructions and I am (was) satisfied. Next step - deployment to server. I'm receiving error:...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.