{"action":"created","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/117","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/117/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/117/events","html_url":"https://github.com/NLog/NLog/issues/117","id":7406619,"number":117,"title":"Running NLog in ASP.net shared hosting environment","user":{"login":"Xharze","id":498258,"avatar_url":"https://avatars.githubusercontent.com/u/498258?v=3","gravatar_id":"","url":"https://api.github.com/users/Xharze","html_url":"https://github.com/Xharze","followers_url":"https://api.github.com/users/Xharze/followers","following_url":"https://api.github.com/users/Xharze/following{/other_user}","gists_url":"https://api.github.com/users/Xharze/gists{/gist_id}","starred_url":"https://api.github.com/users/Xharze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xharze/subscriptions","organizations_url":"https://api.github.com/users/Xharze/orgs","repos_url":"https://api.github.com/users/Xharze/repos","events_url":"https://api.github.com/users/Xharze/events{/privacy}","received_events_url":"https://api.github.com/users/Xharze/received_events","type":"User","site_admin":false},"labels":[{"id":13795223,"url":"https://api.github.com/repos/NLog/NLog/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/NLog/NLog/milestones/2","html_url":"https://github.com/NLog/NLog/milestone/2","labels_url":"https://api.github.com/repos/NLog/NLog/milestones/2/labels","id":305942,"number":2,"title":"2.1","description":"","creator":{"login":"Xharze","id":498258,"avatar_url":"https://avatars.githubusercontent.com/u/498258?v=3","gravatar_id":"","url":"https://api.github.com/users/Xharze","html_url":"https://github.com/Xharze","followers_url":"https://api.github.com/users/Xharze/followers","following_url":"https://api.github.com/users/Xharze/following{/other_user}","gists_url":"https://api.github.com/users/Xharze/gists{/gist_id}","starred_url":"https://api.github.com/users/Xharze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xharze/subscriptions","organizations_url":"https://api.github.com/users/Xharze/orgs","repos_url":"https://api.github.com/users/Xharze/repos","events_url":"https://api.github.com/users/Xharze/events{/privacy}","received_events_url":"https://api.github.com/users/Xharze/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":25,"state":"closed","created_at":"2013-04-08T15:33:06Z","updated_at":"2014-01-09T20:51:48Z","due_on":null,"closed_at":"2014-01-09T20:51:48Z"},"comments":1,"created_at":"2012-10-07T17:37:15Z","updated_at":"2016-12-15T11:41:08Z","closed_at":"2013-04-12T23:39:14Z","body":"<p>NLog does not currently run in ASP.NET partial trust. The issue has been reported multiple times on the forum:</p>\n\n<p>http://n2.nabble.com/Running-NLog-in-ASP-net-shared-hosting-environment-td1685842.html#a1685842</p>\n\n<p>&nbsp;</p>\n\n<p>Security Exception </p>\n\n<p>Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application&#39;s trust level in the configuration file. </p>\n\n<p>&nbsp;</p>\n\n<p>Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers. </p>\n\n<p>&nbsp;</p>\n\n<p>Source Error: </p>\n\n<p>&nbsp;</p>\n\n<p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. </p>\n\n<p>&nbsp;</p>\n\n<p>Stack Trace: </p>\n\n<p>&nbsp;</p>\n\n<p>[SecurityException: That assembly does not allow partially trusted callers.] </p>\n\n<p> MyAssembly.MyClass..cctor() +0</p>\n\n\nComments:\nI've been able to get NLog to run in Partial Trust environments without a problem.\n\nA couple of things I've had to do. \n1. Add the \"AllowPartiallyTrustedCallers\" attribite to the assembly.\n2. Strong Name sign the assembley\n3. Made a change to bypass the \"WindowsCreateFile\" in BaseFileAppender - This causes File logging to fail\n\nOf course under partial trust, you can only log to a file or directory under the current application.\n\nHappy to send you my code if you want.\n"},"comment":{"url":"https://api.github.com/repos/NLog/NLog/issues/comments/267307923","html_url":"https://github.com/NLog/NLog/issues/117#issuecomment-267307923","issue_url":"https://api.github.com/repos/NLog/NLog/issues/117","id":267307923,"user":{"login":"kshkrao3","id":11007754,"avatar_url":"https://avatars.githubusercontent.com/u/11007754?v=3","gravatar_id":"","url":"https://api.github.com/users/kshkrao3","html_url":"https://github.com/kshkrao3","followers_url":"https://api.github.com/users/kshkrao3/followers","following_url":"https://api.github.com/users/kshkrao3/following{/other_user}","gists_url":"https://api.github.com/users/kshkrao3/gists{/gist_id}","starred_url":"https://api.github.com/users/kshkrao3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kshkrao3/subscriptions","organizations_url":"https://api.github.com/users/kshkrao3/orgs","repos_url":"https://api.github.com/users/kshkrao3/repos","events_url":"https://api.github.com/users/kshkrao3/events{/privacy}","received_events_url":"https://api.github.com/users/kshkrao3/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T11:41:08Z","updated_at":"2016-12-15T11:41:08Z","body":"Could you please send code or could you please let know how exactly you've made changes?\r\n"}}
{"actor":{"display_login":"kshkrao3"}}