views:

98

answers:

0

I'm working on a WCF host by using ServiceHost and dynamically creating several application domains to keep my services up. I'm also planning to keep my assemblies on database and load them by using Assembly.Load(byte[])

But now I stumbled on a problem: how to load my configuration file (aka *.dll.config) from database and pass it to my new domain? My prototype uses AppDomainSetup.ConfigurationFile and load it from file system, but it will not exist physically on disk.

There is any way to load that configuration file from a byte[]?