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

Version conflict with Microsoft.Extensions.Hosting #437

Closed
martinmine opened this issue Nov 24, 2020 · 2 comments
Closed

Version conflict with Microsoft.Extensions.Hosting #437

martinmine opened this issue Nov 24, 2020 · 2 comments

Comments

@martinmine
Copy link
Contributor

In my project (2.0.0-beta7) I am using log4net through Microsoft.Extensions.Logging.Log4Net.AspNetCore and this results in the following exception when starting my application on Build() at the server builder: System.MethodAccessException: 'Attempt by method 'Microsoft.Extensions.Logging.Configuration.LoggerProviderConfigurationFactory.GetConfiguration(System.Type)' to access method 'Microsoft.Extensions.Logging.ProviderAliasUtilities.GetAlias(System.Type)' failed.'

The reason I get this is because SuperSocket is referencing 3.0.0 versions of .NET Core components, in my case it is the Microsoft.Extensions.Hosting that causes the incompatibilities . To get around this project I will then have to reference Microsoft.Extensions.Hosting version 3.1.9 in order to get my application started. This is a problem related to #419. Just wanted to bring this to your attention since I believe beta7 came out after #419 was closed.

@martinmine martinmine changed the title Version conflict with logging Version conflict with Microsoft.Extensions.Hosting Nov 24, 2020
@kerryjiang
Copy link
Owner

OK, I will upgrade libraries' version.

@martinmine
Copy link
Contributor Author

Confirmed fixed in 2.0.0-beta.8

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