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

Reply via email to