Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support aot? #147

Closed
YahuiWong opened this issue May 9, 2024 · 4 comments
Closed

Support aot? #147

YahuiWong opened this issue May 9, 2024 · 4 comments

Comments

@YahuiWong
Copy link

YahuiWong commented May 9, 2024

I publish my dotnet 8 project by aot mode ,
After that the soft can`t working . and print the err msg

log4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML.
System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize
 ---> System.MissingMethodException: No parameterless constructor defined for type 'System.Configuration.ClientConfigurationHost'.
   at System.ActivatorImplementation.CreateInstance(Type, Boolean) + 0x119
   at System.Configuration.Internal.ConfigSystem.System.Configuration.Internal.IConfigSystem.Init(Type, Object[]) + 0x43
   at System.Configuration.ClientConfigurationSystem..ctor() + 0x47
   at System.Configuration.ConfigurationManager.EnsureConfigurationSystem() + 0x56
   --- End of inner exception stack trace ---
   at System.Configuration.ConfigurationManager.PrepareConfigSystem() + 0x35
   at System.Configuration.ConfigurationManager.GetSection(String) + 0x18
   at System.Configuration.ConfigurationManager.get_AppSettings() + 0x11
   at log4net.Util.SystemInfo.GetAppSetting(String) + 0x21
@FreeAndNil
Copy link
Contributor

@YahuiWong please See #142

@YahuiWong
Copy link
Author

YahuiWong commented May 9, 2024

@YahuiWong please See #142
@FreeAndNil
I do not know,Is #142 have a solution?

@FreeAndNil
Copy link
Contributor

@YahuiWong yes, see my comments and #143

@FreeAndNil
Copy link
Contributor

@YahuiWong please reopen when you have feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants