unitycontainer / microsoft-logging

Adapter for Microsoft.Extensions.Logging
Apache License 2.0
16 stars 6 forks source link

Security problem #2

Closed emanueldejanu closed 6 years ago

emanueldejanu commented 6 years ago

Hi,

I was wandering why this library is using [assembly:SecurityTransparent] because it gives me the following error when starting an ASP.NET MVC 5 application:

Attempt by security transparent method 'Unity.Microsoft.Logging.LoggingExtension..ctor(Microsoft.Extensions.Logging.ILoggerFactory)' to access security critical type 'Microsoft.Extensions.Logging.ILoggerFactory' failed

Regards,

Emanuel

ENikS commented 6 years ago

What should it use?

bjorn-ali-goransson commented 6 years ago

Same here. Had to downgrade. If you clone my repo and upgrade to 1.0.2 you should be able to reproduce it. Do you want those details?

bjorn-ali-goransson commented 6 years ago

Duplicate of https://github.com/unitycontainer/microsoft-logging/issues/1

ENikS commented 6 years ago

Duplicate of https://github.com/unitycontainer/microsoft-logging/issues/1