← Назад

Обновление до 4.0.6 и .NET 4.0

LogManager.Listeners.Add(new ConsoleLogListener()); кидает исключение.

Attempt by security transparent method 'Ecng.Interop.WinApi.AllocateConsole()' to call native code through method 'Ecng.Interop.WinApi.AttachConsole(UInt32)' failed. Methods must be security critical or security safe-critical to call native code. NetFx40_LegacySecurityPolicy не помогает или я не правильно его использую

Комментарии (2)

Вход или Создать аккаунт, Войдите или зарегистрируйтесь, чтобы оставить комментарий

Alexander
Alexander

Обновил либы на codeplex, попробуйте из сорсов забрать

P.S. А теперь и перевыложил все сборки.

destr
destr
destr Автор

Всё ок. Спасибо.