Hello,

that is my problem. If I use the content of a valid xml configuration file
the system starts a new AppDomain without any problems, but it seems to
ignore the content of the xml.

Andreas

-----Ursprüngliche Nachricht-----
Von: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Im Auftrag von Thokala,
Sreeramudu (GE Healthcare)
Gesendet: Dienstag, 20. Februar 2007 06:02
An: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Betreff: Re: [ADVANCED-DOTNET] System.AppDomainSetup.SetConfigurationBytes
Usage

The MSDN documentation clearly says it has to be a valid xml and the
only thing here is,  xml is  in the form of bytes.

The SetConfigurationBytes method provides a way to override the
configuration information of an application that creates a new
application domain. The configuration file information in value
overrides the configuration file information for the application. For
example, when the Example.exe application creates a new application
domain, it can override the configuration information originally
obtained from the Example.exe.config file.

The XML in value is the same as the XML in a normal configuration file,
except that it is stored as a Byte array.  

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas Heisel
Sent: Monday, February 19, 2007 6:50 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] System.AppDomainSetup.SetConfigurationBytes
Usage

Hello List,

I try to start a new AppDomain with a custom configuration. I want to
avaid writing a configuration file to disk. The documentation states,
that System.AppDomainSetup.SetConfigurationBytes will do the job, but it
doesn't.
I can't start a new AppDomain if I call SetConfigurationBytes with some
rubbish. It must be valid XML. But the content seems to be ignored.

Has anyone experience with this?

Andreas

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to