You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
martinmine
changed the title
Version conflict with logging
Version conflict with Microsoft.Extensions.Hosting
Nov 24, 2020
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 referenceMicrosoft.Extensions.Hosting
version3.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.The text was updated successfully, but these errors were encountered: