{"action":"opened","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/2636","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/2636/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/2636/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/2636/events","html_url":"https://github.com/NLog/NLog/issues/2636","id":309732284,"number":2636,"title":"NLog 4.5 does not seem to work for projects on ASP.NET Core 1.1 targeting full .NET FW 4.6.1","user":{"login":"hiredgunhouse","id":173206,"avatar_url":"https://avatars2.githubusercontent.com/u/173206?v=4","gravatar_id":"","url":"https://api.github.com/users/hiredgunhouse","html_url":"https://github.com/hiredgunhouse","followers_url":"https://api.github.com/users/hiredgunhouse/followers","following_url":"https://api.github.com/users/hiredgunhouse/following{/other_user}","gists_url":"https://api.github.com/users/hiredgunhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/hiredgunhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiredgunhouse/subscriptions","organizations_url":"https://api.github.com/users/hiredgunhouse/orgs","repos_url":"https://api.github.com/users/hiredgunhouse/repos","events_url":"https://api.github.com/users/hiredgunhouse/events{/privacy}","received_events_url":"https://api.github.com/users/hiredgunhouse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-29T12:18:25Z","updated_at":"2018-03-29T12:18:25Z","closed_at":null,"author_association":"NONE","body":"**Type**:\r\n- Bug (possibly)\r\n\r\n**NLog version**: 4.5\r\n\r\n**Platform**: .Net 4.5\r\n\r\n**Current NLog config** xml, but not relevant\r\n\r\nIn case of a BUG:\r\n\r\n- What is the current result?\r\nThe app crashes\r\n- What is the expected result?\r\nThe app does not crash and logs.\r\n- Did you checked the [Internal log](https://github.com/NLog/NLog/wiki/Internal-Logging)?\r\nNo\r\n- Please post full exception details (message, stacktrace, inner exceptions)\r\nWhen the app starts this is what is logged in \"Output\" window in VS:\r\n'WebApplication1.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_32\\mscorlib\\v4.0_4.0.0.0__b77a5c561934e089\\mscorlib.dll'. Symbol loading disabled by Include/Exclude setting.\r\n'WebApplication1.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'R:\\nlog45issue\\WebApplication1\\bin\\Debug\\net461\\WebApplication1.exe'. Symbols loaded.\r\n'WebApplication1.exe' (CLR v4.0.30319: WebApplication1.exe): Loaded 'R:\\nlog45issue\\WebApplication1\\bin\\Debug\\net461\\Microsoft.AspNetCore.Hosting.dll'. Symbol loading disabled by Include/Exclude setting.\r\n'WebApplication1.exe' (CLR v4.0.30319: WebApplication1.exe): Loaded 'R:\\nlog45issue\\WebApplication1\\bin\\Debug\\net461\\Microsoft.AspNetCore.Hosting.Abstractions.dll'. Symbol loading disabled by Include/Exclude setting.\r\n'WebApplication1.exe' (CLR v4.0.30319: WebApplication1.exe): Loaded 'C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\netstandard\\v4.0_2.0.0.0__cc7b13ffcd2ddd51\\netstandard.dll'. Symbol loading disabled by Include/Exclude setting.\r\n'WebApplication1.exe' (CLR v4.0.30319: WebApplication1.exe): Loaded 'R:\\nlog45issue\\WebApplication1\\bin\\Debug\\net461\\Microsoft.Extensions.DependencyInjection.Abstractions.dll'. Symbol loading disabled by Include/Exclude setting.\r\nAn unhandled exception of type 'System.TypeLoadException' occurred in Unknown Module.\r\nMethod 'ConfigureAppConfiguration' in type 'Microsoft.AspNetCore.Hosting.WebHostBuilder' from assembly 'Microsoft.AspNetCore.Hosting, Version=1.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.\r\n\r\n- Are there any workarounds? not sure\r\n- Is there a version in which it did work? NLog 5.0-beta09\r\n- Can you help us by writing an unit test? maybe (IMHO this is more related to application dependencies and configuration)\r\n\r\n\r\nI followed the instructions from the WIKI (https://github.com/NLog/NLog.Web/wiki/Getting-started-with-ASP.NET-Core-(csproj---vs2017))\r\nAs the title specifies, my project is ASP.NET Core 1.1 targetting full .NET FW (v 4.6.1).\r\nHere is a repo with the problem reproduced using instructions from the WIKI:  https://github.com/hiredgunhouse/nlog45issue\r\n"}}
{"actor":{"display_login":"hiredgunhouse"}}