.NetStandard2.0 project with appdomain runtimeconfiguration is not passed

Posts   
 
    
OKP
User
Posts: 12
Joined: 03-Mar-2022
# Posted on: 02-Apr-2022 17:08:04   

Hi,

In my project there is a method where I do some stuff in an AppDomain. The project is .netstandard2.0 (llblgen version = latest v5.9). Therefore I initialize llblgen using runtimeconfiguration. I have a query that I execute in AppDomain. When doing that the Runtimeconfiguration gets lost, for example adapter connectionstring is empty. Is this a bug in the runtime or is there a specific way to pass the parents' runtimeconfiguration to (child) AppDomain? I could not find any documentation or help on that.

I use llblgen also in .NET4.8 project and in there llblgen is initialized from app.config. In that project if AppDomain is created, it gets the connection string ok from parent. The issue is only when initializing llblgen with runtimeconfiguration.

Best Regards, OKP

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003
# Posted on: 03-Apr-2022 10:19:30   

.net core has 1 appdomain, and the runtimeconfiguration data is stored in static variables which are present in the one appdomain of the application. If you start another appdomain on .net core, how do you start that, in another process? In any case, if you start another appdomain in .net fx or in another process, you have to rerun the runtimeconfiguration code

Frans Bouma | Lead developer LLBLGen Pro