{"action":"created","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/1319","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/1319/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/1319/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/1319/events","html_url":"https://github.com/NLog/NLog/issues/1319","id":142629309,"number":1319,"title":"Issue with database target and Mono.Data.Sqlite","user":{"login":"tidusjar","id":6642220,"avatar_url":"https://avatars.githubusercontent.com/u/6642220?v=3","gravatar_id":"","url":"https://api.github.com/users/tidusjar","html_url":"https://github.com/tidusjar","followers_url":"https://api.github.com/users/tidusjar/followers","following_url":"https://api.github.com/users/tidusjar/following{/other_user}","gists_url":"https://api.github.com/users/tidusjar/gists{/gist_id}","starred_url":"https://api.github.com/users/tidusjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidusjar/subscriptions","organizations_url":"https://api.github.com/users/tidusjar/orgs","repos_url":"https://api.github.com/users/tidusjar/repos","events_url":"https://api.github.com/users/tidusjar/events{/privacy}","received_events_url":"https://api.github.com/users/tidusjar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-22T12:02:13Z","updated_at":"2016-03-22T15:52:52Z","closed_at":null,"body":"**Type** :\r\n- Bug\r\n\r\n\r\n**NLog version**: \r\n- 4\r\n\r\n**Platform**:\r\n- .Net 4.6\r\n\r\n**Current NLog config** (xml or C#, if relevant)\r\n\r\n```\r\n  <target name=\"Database\" xsi:type=\"Database\"\r\n         dbProvider=\"Mono.Data.Sqlite\" keepConnection=\"false\"\r\n         connectionString=\"Data Source=PlexRequests.sqlite\"\r\n         commandText=\"INSERT into Log(Date, Level, Logger, Callsite, Message) \r\n          values(@Date, @Loglevel, @Logger, @Callsite, @Message)\">\r\n    <parameter name=\"@Date\" layout=\"${longdate}\"/>\r\n    <parameter name=\"@Loglevel\" layout=\"${level:uppercase=true}\"/>\r\n    <parameter name=\"@Logger\" layout=\"${logger}\"/>\r\n    <parameter name=\"@Callsite\" layout=\"${callsite:filename=true}\"/>\r\n    <parameter name=\"@Message\" layout=\"${message}\"/>\r\n  </target>\r\n```\r\n\r\nIn case of a BUG:\r\n\r\n- What is the current result? Nothing is logged to the DB\r\n- Please post full exception details (message, stacktrace, inner exceptions)\r\n\r\n```Error during initialization of Database Target[Database_wrapped]\r\n    Could not load type 'Mono.Data.Sqlite' from assembly 'NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c'.\r\n    at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)\r\n   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)\r\n   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)\r\n   at System.Type.GetType(String typeName, Boolean throwOnError)\r\n   at NLog.Targets.DatabaseTarget.InitializeTarget()\r\n   at NLog.Targets.Target.Initialize(LoggingConfiguration configuration)\r\n   at NLog.Targets.Target.NLog.Internal.ISupportsInitialize.Initialize(LoggingConfiguration configuration)\r\n   at NLog.Config.LoggingConfiguration.InitializeAll()```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NLog/NLog/issues/comments/199877767","html_url":"https://github.com/NLog/NLog/issues/1319#issuecomment-199877767","issue_url":"https://api.github.com/repos/NLog/NLog/issues/1319","id":199877767,"user":{"login":"304NotModified","id":5808377,"avatar_url":"https://avatars.githubusercontent.com/u/5808377?v=3","gravatar_id":"","url":"https://api.github.com/users/304NotModified","html_url":"https://github.com/304NotModified","followers_url":"https://api.github.com/users/304NotModified/followers","following_url":"https://api.github.com/users/304NotModified/following{/other_user}","gists_url":"https://api.github.com/users/304NotModified/gists{/gist_id}","starred_url":"https://api.github.com/users/304NotModified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/304NotModified/subscriptions","organizations_url":"https://api.github.com/users/304NotModified/orgs","repos_url":"https://api.github.com/users/304NotModified/repos","events_url":"https://api.github.com/users/304NotModified/events{/privacy}","received_events_url":"https://api.github.com/users/304NotModified/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T15:52:52Z","updated_at":"2016-03-22T15:52:52Z","body":"yes indeed"}}