This may be related.

https://github.com/dotnet/cli/issues/6108

The exception is thrown on line 54.

https://github.com/dotnet/corefx/blob/master/src/System.Configuration.ConfigurationManager/src/System/Configuration/ClientConfigPaths.cs

Den tors 7 mars 2019 kl 21:17 skrev <[email protected]>:

> Thank you, Gunnar.
>
> We were testing and when we execute the line *Fluently.Configure()**.Database
> (*SQLiteConfiguration.Standard.InMemory().ShowSql())...
>
> It gives us the error: "Operation is not supported on this platform"
>
> This is the trace of the error:
>
> System.TypeInitializationException: The type initializer for
> 'NHibernate.Cfg.Environment' threw an exception.
> ---> System.TypeInitializationException: The type initializer for
> 'NHibernate.NHibernateLogger' threw an exception.
> ---> System.Configuration.ConfigurationErrorsException: Configuration
> system failed to initialize
> ---> System.PlatformNotSupportedException: Operation is not supported on
> this platform.
>    at System.Configuration.ClientConfigPaths..ctor(String exePath, Boolean
> includeUserConfig)
>    at System.Configuration.ClientConfigPaths.GetPaths(String exePath,
> Boolean includeUserConfig)
>    at System.Configuration.ClientConfigurationHost.get_ConfigPaths()
>    at System.Configuration.ClientConfigurationHost.GetStreamName(String
> configPath)
>    at System.Configuration.ClientConfigurationHost.get_IsAppConfigHttp()
>    at
> System.Configuration.Internal.DelegatingConfigHost.get_IsAppConfigHttp()
>    at System.Configuration.ClientConfigurationSystem..ctor()
>    at System.Configuration.ConfigurationManager.EnsureConfigurationSystem()
>    --- End of inner exception stack trace ---
>    at System.Configuration.ConfigurationManager.EnsureConfigurationSystem()
>    at System.Configuration.ConfigurationManager.PrepareConfigSystem()
>    at System.Configuration.ConfigurationManager.GetSection(String
> sectionName)
>    at System.Configuration.ConfigurationManager.get_AppSettings()
>    at NHibernate.NHibernateLogger.GetNhibernateLoggerClass()
>    at NHibernate.NHibernateLogger..cctor()
>    --- End of inner exception stack trace ---
>    at NHibernate.NHibernateLogger.For(Type type)
>    at NHibernate.Cfg.Environment..cctor()
>    --- End of inner exception stack trace ---
>    at NHibernate.Cfg.Configuration.Reset()
>    at NHibernate.Cfg.Configuration..ctor(SettingsFactory settingsFactory)
>    at FluentNHibernate.Cfg.Fluently.Configure()
>
> Any ideas?
>
> Thanks
>
> El jueves, 7 de marzo de 2019, 15:17:37 (UTC-3), Gunnar Liljas escribió:
>>
>> Both NHibernate 5 and Fluent NHibernate should work just fine under .NET
>> Core on a Raspberry. You may run into a couple of issues with SQLite,
>> though, but as a last resort you should be able to create your own driver.
>> It's quite easy.
>>
>> /G
>>
>> Den tors 7 mars 2019 kl 16:54 skrev <[email protected]>:
>>
>>> We are developing a .net core 2.0 background application for *Raspberry
>>> PI 3 with Windows 10 IoT*.
>>>
>>>
>>> We want to use NHibernate 5, Fluent NHibernate 2.1.2 and SQLite core.
>>>
>>>
>>> *Is NHibernate 5.x compatible with ARM architecture?*
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "nhusers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/nhusers.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/nhusers.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to