473,606 Members | 2,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I use AppDomains and add search paths to it?

I have an application that I am adding support for plug-ins and I am looking
for some help on the best way to handle this. My question has to do with
AppDomains and the best way to use them.

I have a directory structure like this:

MyApp
\AddIns
\AddIn1
\AddIn2

Part of my problem is that AddIn1 uses some of the assemblies that are
installed with MyApp and I don't want to duplicate those assemblies in the
AddIn1 or 2 directory. I don't want to put them in the GAC, so please don't
suggest that.

To support that now I am currently using this method:

AppDomain.Curre ntDomain.Append PrivatePath( <AddInPath);

The problem with that is that this method is considered obsolete and I
really want to do this right. I have read that I should put the add-in a
separate AppDomain, but I am wondering if each AddIn should be in its own
AppDomain and if so what is the memory overhead of the AppDomain. These are
mostly very small add-ins and I don't want to kill the computer this is
running on.

I am also wondering if this is possible with my directory structure. I
really don't know much about creating AppDomains or what would be needed. I
hoping that with the AppDomain pointing to a DLL in MyApp\AddIns\Ad dIn1 that
I can also add the directory MyApp to its search path so that it can use the
same assemblies as the main application.

Can a search path be added that is higher than the main application for a
dynamically loaded AppDomain and a dynamically loaded DLL? Any Help would
be greatly appreciated on this.

Thanks,

Eric Renken

Jan 22 '07 #1
12 12775
Hi Eric,

Can you show me your special requirement regarding the plug-in model?
Normally, there are 2 requirements for us to create a new AppDomain for the
plug-in assemblies:
1. Needs unloading support of plug-in assemblies
2. Needs a separate sandbox security environment to host the plug-in
assemblies

If you do not have these 2 requirements, I do not think you need to create
a separate AppDomain. You may just use Assembly.Load() method to load your
plug-in assemblies dynamically in your default AppDomain.
Yes, AppDomain.Appen dPrivatePath() method is obsolete in .Net2.0, however,
you may set the probing path in the app.config file through <probing>
element. Please refer to the link below for more details:
http://msdn2.microsoft.com/en-us/library/823z9h8w.aspx

The link below documents the offical search paths of Assembly.Load method:
"How the Runtime Locates Assemblies"
http://msdn2.microsoft.com/en-us/library/yx7xezcf.aspx

If you really wanted to leverage the new AppDomain model to load the
plug-in assemblies into the separate AppDomain for security and unloading
benifit, I recommend the following good article written by CLR developer
"Shawn Farkas", it provided a complete steps and source code of adopting
this model.
"Discover Techniques for Safely Hosting Untrusted Add-Ins with the .NET
Framework 2.0"
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

In this scenario, you can not use the private probing path to specify the
"MyApp" directory for the new AppDomain, because private probing path must
be a sub-folder of the application base directory. However, you may set the
new AppDomain's ApplicationBase to the same folder("MyApp") as the main
AppDomain, so that the new AppDomain(plug-in assemblies) can locate the
assemblies in this folder.

Finally, using multiple AppDomains is not a big overhead. Asp.net leverages
the same model: if you create multiple web applications on a Asp.net web
site, it will create a separate AppDomain for each web application to
handle the request.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 23 '07 #2
I was reading online and most people recommended running them in a separate
AppDomain. I don't mind running them with just the AssemblyLoad, but the
problem I have with that is that I don't know the exact path of the AddIn
until my application is running, so I can't put this information in the
app.config file.

The real problem is that the AddIn might have its own dependent DLLs that
are installed with it in its directory and when it tries to load its
dependent DLLs the AddIn can't search its own directory.

I will probably look at least creating one AppDomain for the AddIns and I
was thinking along the lines of what you said and setting the
ApplicationBase to MyApp and then I believe there is a way to set search
paths to a new AppDomain. I didn't see that in "Shawn Farkas" document. Do
you have a good reference on how to do that?

Eric Renken

""Jeffrey Tan[MSFT]"" <je***@online.m icrosoft.comwro te in message
news:gU******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Eric,

Can you show me your special requirement regarding the plug-in model?
Normally, there are 2 requirements for us to create a new AppDomain for
the
plug-in assemblies:
1. Needs unloading support of plug-in assemblies
2. Needs a separate sandbox security environment to host the plug-in
assemblies

If you do not have these 2 requirements, I do not think you need to create
a separate AppDomain. You may just use Assembly.Load() method to load your
plug-in assemblies dynamically in your default AppDomain.
Yes, AppDomain.Appen dPrivatePath() method is obsolete in .Net2.0, however,
you may set the probing path in the app.config file through <probing>
element. Please refer to the link below for more details:
http://msdn2.microsoft.com/en-us/library/823z9h8w.aspx

The link below documents the offical search paths of Assembly.Load method:
"How the Runtime Locates Assemblies"
http://msdn2.microsoft.com/en-us/library/yx7xezcf.aspx

If you really wanted to leverage the new AppDomain model to load the
plug-in assemblies into the separate AppDomain for security and unloading
benifit, I recommend the following good article written by CLR developer
"Shawn Farkas", it provided a complete steps and source code of adopting
this model.
"Discover Techniques for Safely Hosting Untrusted Add-Ins with the .NET
Framework 2.0"
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

In this scenario, you can not use the private probing path to specify the
"MyApp" directory for the new AppDomain, because private probing path must
be a sub-folder of the application base directory. However, you may set
the
new AppDomain's ApplicationBase to the same folder("MyApp") as the main
AppDomain, so that the new AppDomain(plug-in assemblies) can locate the
assemblies in this folder.

Finally, using multiple AppDomains is not a big overhead. Asp.net
leverages
the same model: if you create multiple web applications on a Asp.net web
site, it will create a separate AppDomain for each web application to
handle the request.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

Jan 24 '07 #3
Hi Eric,

Thanks for your feedback!

#1, >the problem I have with that is that I don't know the exact path of
the AddIn until my application is running
Yes, I see your concern. However, Assembly.Load() method does not need the
absolute path of the Addin, you need to set the relative path to the Addin
through <probingin the app.config file(I assume you know of the relative
directory structures of Addin). Only Assembly.LoadFr om() method needs the
absolute path of the Addin. Please refer to the link below for more
information:
http://blogs.msdn.com/suzcook/archiv.../29/57143.aspx

#2, >The real problem is that the AddIn might have its own dependent DLLs
that
>are installed with it in its directory and when it tries to load its
dependent DLLs the AddIn can't search its own directory.
Sorry, do you mean this when using new AppDomain or using single AppDomain?
I assume you are talking under the context of single AppDomain. In this
scenario, once you have set the <probingto the "AddIns\Add In1" relative
path, the entire AppDomain CLR code will probe the "AddIns\Add In1" folder
for future using. So this is not a problem. To provide this, I have created
3 sample projects:
1. ClassLibrary1 (Class Library) with code below:
namespace ClassLibrary1
{
public class Class1
{
public static int Add(int a, int b)
{
return a + b + ClassLibrary2.C lass1.Multiply( a, b);
}
}
}

2. ClassLibrary2 (Class Library) with code below
namespace ClassLibrary2
{
public class Class1
{
public static int Multiply(int a, int b)
{
return a * b;
}
}
}

3. ProbingDllTest (Winform App)
private void button1_Click(o bject sender, EventArgs e)
{
MessageBox.Show (ClassLibrary1. Class1.Add(5, 6).ToString());
}

Now, I added an App.Config to the ProbingDllTest winform project with
setting the relative probing path:
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<probing privatePath="Ad dIns\AddIn1"/>
</assemblyBinding >
</runtime>
</configuration>

Finally, after building these 3 projects, I go into
"ProbingDllTest \bin\Debug" and I moved the ClassLibrary1.d ll and
ClassLibrary2.d ll into the "ProbingDllTest \bin\Debug\AddI ns\AddIn1"(yes, I
created the similar directory structure as you). When I click
"ProbingDllTest .exe", all can work well. This means ProbingDllTest. exe can
find "ClassLibrary1. dll" without any problem, and "ClassLibrary1. dll" can
find "ClassLibrary2. dll" without any problem either. If I have
misunderstood your point, please feel free to tell me, thanks.

#3, >>setting the
>>ApplicationBa se to MyApp and then I believe there is a way to set search
paths to a new AppDomain.
I assume you mean you have created a new AppDomain and set the
AppDomainSetup. ApplicationBase to "MyApp" base directory, you want to know
how to tell the new AppDomain to search the Addin sub-directory. If I have
misunderstood you, please feel free to tell me.

Since you have set AppDomainSetup. ApplicationBase to "MyApp" base
directory, CLR will always probing "MyApp" base directory assemblies
without any problem. To set to another sub-directory(Addin ), you may use
AppDomainSetup. PrivateBinPath property. This property has the same effect
as <probingeleme nt in app.config

If you still have anything unclear, please feel free to tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 25 '07 #4
Hi Eric,

Have you reviewed my last reply to you? Does my reply make sense to you? If
you still need any help or have any concern, please feel free to tell me,
thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 29 '07 #5
Thanks for the information. I think your last example using
AppDomainSetup. PrivateBinPath will be the way I will need to go, because I
don't know the path of the Add-In. I do know it is in MyApp\AddIns, but I
don't know what directory after AddIns. It could be in MyApp\AddIns\Ad dIn1
or in MyApp\AddIns\Ad dIn2....

The only way to add that information to the Probing key in the app.config
would be by having the setup for the add-in modify that file, and I just
don't feel like that is a good idea.

I will do some research on how to implement the AppDomaiSetup.P rivateBinPath
unless you know of a link that would show this.

Thanks,

Eric
""Jeffrey Tan[MSFT]"" <je***@online.m icrosoft.comwro te in message
news:np******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Eric,

Thanks for your feedback!

#1, >the problem I have with that is that I don't know the exact path of
the AddIn until my application is running
Yes, I see your concern. However, Assembly.Load() method does not need the
absolute path of the Addin, you need to set the relative path to the Addin
through <probingin the app.config file(I assume you know of the relative
directory structures of Addin). Only Assembly.LoadFr om() method needs the
absolute path of the Addin. Please refer to the link below for more
information:
http://blogs.msdn.com/suzcook/archiv.../29/57143.aspx

#2, >The real problem is that the AddIn might have its own dependent
DLLs
that
>>are installed with it in its directory and when it tries to load its
dependent DLLs the AddIn can't search its own directory.
Sorry, do you mean this when using new AppDomain or using single
AppDomain?
I assume you are talking under the context of single AppDomain. In this
scenario, once you have set the <probingto the "AddIns\Add In1" relative
path, the entire AppDomain CLR code will probe the "AddIns\Add In1" folder
for future using. So this is not a problem. To provide this, I have
created
3 sample projects:
1. ClassLibrary1 (Class Library) with code below:
namespace ClassLibrary1
{
public class Class1
{
public static int Add(int a, int b)
{
return a + b + ClassLibrary2.C lass1.Multiply( a, b);
}
}
}

2. ClassLibrary2 (Class Library) with code below
namespace ClassLibrary2
{
public class Class1
{
public static int Multiply(int a, int b)
{
return a * b;
}
}
}

3. ProbingDllTest (Winform App)
private void button1_Click(o bject sender, EventArgs e)
{
MessageBox.Show (ClassLibrary1. Class1.Add(5, 6).ToString());
}

Now, I added an App.Config to the ProbingDllTest winform project with
setting the relative probing path:
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<probing privatePath="Ad dIns\AddIn1"/>
</assemblyBinding >
</runtime>
</configuration>

Finally, after building these 3 projects, I go into
"ProbingDllTest \bin\Debug" and I moved the ClassLibrary1.d ll and
ClassLibrary2.d ll into the "ProbingDllTest \bin\Debug\AddI ns\AddIn1"(yes, I
created the similar directory structure as you). When I click
"ProbingDllTest .exe", all can work well. This means ProbingDllTest. exe can
find "ClassLibrary1. dll" without any problem, and "ClassLibrary1. dll" can
find "ClassLibrary2. dll" without any problem either. If I have
misunderstood your point, please feel free to tell me, thanks.

#3, >>setting the
>>>ApplicationB ase to MyApp and then I believe there is a way to set search
paths to a new AppDomain.
I assume you mean you have created a new AppDomain and set the
AppDomainSetup. ApplicationBase to "MyApp" base directory, you want to know
how to tell the new AppDomain to search the Addin sub-directory. If I have
misunderstood you, please feel free to tell me.

Since you have set AppDomainSetup. ApplicationBase to "MyApp" base
directory, CLR will always probing "MyApp" base directory assemblies
without any problem. To set to another sub-directory(Addin ), you may use
AppDomainSetup. PrivateBinPath property. This property has the same effect
as <probingeleme nt in app.config

If you still have anything unclear, please feel free to tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

Jan 30 '07 #6
Hi Eric,

Thanks for your feedback.

Yes, for the new AppDomain, you should use AppDomainSetup. PrivateBinPath
property to set the private probing paths. If you are not sure which
sub-directories under MyApp\AddIns you wanted to search, you may just
enumerate "MyApp\AddI ns" directory and add all the sub-folders to
AppDomainSetup. PrivateBinPath property. The usage of
AppDomainSetup. PrivateBinPath property is pretty straight, you may just
separate multiple sub-folder paths with semicolon. The "Figure 3" in the
article below demonstrated the usage of AppDomainSetup, so you may add an
extra AppDomainSetup. PrivateBinPath property setting:
"Discover Techniques for Safely Hosting Untrusted Add-Ins with the .NET
Framework 2.0"
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

If you still have anything unclear or need any help, please feel free to
tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 31 '07 #7
Thanks for the advice, now I will try implementing all of this.

Eric Renken

""Jeffrey Tan[MSFT]"" <je***@online.m icrosoft.comwro te in message
news:Ca******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Eric,

Thanks for your feedback.

Yes, for the new AppDomain, you should use AppDomainSetup. PrivateBinPath
property to set the private probing paths. If you are not sure which
sub-directories under MyApp\AddIns you wanted to search, you may just
enumerate "MyApp\AddI ns" directory and add all the sub-folders to
AppDomainSetup. PrivateBinPath property. The usage of
AppDomainSetup. PrivateBinPath property is pretty straight, you may just
separate multiple sub-folder paths with semicolon. The "Figure 3" in the
article below demonstrated the usage of AppDomainSetup, so you may add an
extra AppDomainSetup. PrivateBinPath property setting:
"Discover Techniques for Safely Hosting Untrusted Add-Ins with the .NET
Framework 2.0"
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

If you still have anything unclear or need any help, please feel free to
tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

Jan 31 '07 #8
Ok, if you meet any further problem during the implementation, please feel
free to tell me, I am glad to be any help. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Feb 1 '07 #9
OK, now I am trying to implement this and it just isn't working.

Here is my basic code:

System.IO.FileI nfo fi = new System.IO.FileI nfo(path);

AppDomainSetup setup = new AppDomainSetup( );
setup.Applicati onBase =
AppDomain.Curre ntDomain.SetupI nformation.Appl icationBase;
setup.PrivateBi nPath = fi.DirectoryNam e;

Log.Information ("Creating new AppDomain: {0}",
node.Attributes["name"].Value);
Log.Information ("Setup Private Bin Path: {0}", setup.PrivateBi nPath);

AppDomain domain =
AppDomain.Creat eDomain(node.At tributes["name"].Value, myComputerEvide nce,
setup);
_domains.Add(do main);

bool found = false;

TimeSummit.AddI n.IAddIn addIn =
(TimeSummit.Add In.IAddIn)domai n.CreateInstanc eFrom(path,
node.SelectSing leNode("type"). InnerText).Unwr ap();
Everything seems to execute correctly except for the last line. I am
loading this from an XML file and I know the "type" InnerText is the full
name for the type that has my Interface.

When this code executes I keep getting this error:

Type is not resolved for member
'TimeSummit.Add In.TimeSummitSy nch.TimeSummitS ynch,TimeSummit .AddIn.TimeSumm itSynch,
Version=3.2.0.3 , Culture=neutral , PublicKeyToken= null'.

I am thinking this is because it has having problems loading some of its
referenced assemblies. Remember this is in a structure like this:

C:\MyApp
\AddIn
\MyAddIn1

I believe I have the AppDomainSetup configured correctly as its AppBase is
set to the main AppDomain's base, and the I add the path for the AddIn.
This is the full path C:\MyApp\AddIn\ MyAddIn1.

Any help would be greatly appreciated.

Thanks,

Eric Renken

""Jeffrey Tan[MSFT]"" <je***@online.m icrosoft.comwro te in message
news:fb******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Ok, if you meet any further problem during the implementation, please feel
free to tell me, I am glad to be any help. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

Feb 20 '07 #10

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

Similar topics

7
2658
by: Andrei Ivanov | last post by:
This happend again, but now, postgresql tells me where it happens: pg_dump: SQL command failed pg_dump: Error message from server: ERROR: did not find '}' at end of input node pg_dump: The command was: select (select usename from pg_user where usesysid = datdba) as dba, pg_encoding_to_char(encoding) as encoding, datpath from pg_database where datname = 'dc' pg_dumpall: pg_dump failed on database "dc", exiting
2
3315
by: Bob | last post by:
I've seen an article for how to add search paths to a VS.Net XML config file so you don't need to register DLL's in the GAC to have them work in plugins. But the article was for VS.Net 2002, not 2003, and the XML file it showed looked completely different than the one of the same name on my machine. Anyone know where I could find updated information on this? TIA, Bob
2
2369
by: Gregory S. Williamson | last post by:
Dear peoples, I've got a problem which seemed to be neatly solved by the use of schemas, and in fact it mostly works, but I have tried to go one step too far, perhaps. Rather than have the application do SET search_path TO f12057; SELECT * FROM parcel-owners WHERE ... ; SET search_path TO public;
1
1675
by: Chris Ashley | last post by:
I have a managed C++ wrapper which is referencing an unmanaged C++ DLL. How can I modify the reference search paths for ASP 2.0 so it can find the unmanaged DLL? It copies the managed DLL okay, but can't find the unmanaged DLL ('the specified module coult not be found'). It only seems to work when I place the unmanaged DLL in the System32 folder. Doesn't work in the project root, solution root, or bin directory.
8
1687
by: Fred Mertz | last post by:
I'm working towards an MCTS cert and I'm having to learn a bunch of stuff that I doubt I'd stumble across on my own. One such feature of .NET is AppDomains; programatically creating new AppDomains and programmatically loading/unloading assemblies in them. Question: What are some scenarios where I'd want to... 1 - programmatically create or destroy AppDomains 2 - load and unload assemblies in AppDomains?
2
2528
by: DeveloperX | last post by:
I've a shared add in written in C#. It works on the dev machine fine with VS2003 installed, but not on a machine without VS. We've been doing lots of research, and my current concern (discovered using filemon) is that it looks in the app base directory. In this case the app base directory is the home of Excel.exe. I can load my application specific portion of the add into a seperate appdomain and set the dll path from there, but then I...
6
1745
by: Ole Nielsby | last post by:
The standard doesn't define this but what conventions do projects use? As I understand it, #include <somelibrary.h> is used for including system headers and those of frameworks such as wxWidgets - and #include "someheader.h"
3
3749
by: | last post by:
If this is simple, forgive my ignorance, but I'm coming from the CompactFramework where we don't use AppDomains. I did a fair bit of archive searching and couldn't find an answer and I got no responsed in the remoting group after a week, so I'm throwing a little wider net this time. I have a desktop app (FFx 2.0) developed with Studio 05 that loads assemblies in a separate AppDomains from the primary UI. I'd like to be able to hook up...
8
1556
by: tow | last post by:
I have a python script (part of a django application, if it makes any difference) which is exhibiting the following behaviour: import my_module # succeeds imp.find_module("my_module") # fails, raising ImportError which is completely baffling me. According to sys.path, both should fail; the directory containing my_module is not in sys.path (though the my_module directory itself is). More puzzlingly, printing out my_module.__file__...
0
8431
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8096
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8306
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6773
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5966
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5466
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1557
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.