{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/147","labels_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/147/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/147/events","html_url":"https://github.com/aspnetboilerplate/module-zero/issues/147","id":125616934,"number":147,"title":"System.StackOverflowException in AuthorizationProvider","user":{"login":"emaish","id":6557160,"avatar_url":"https://avatars.githubusercontent.com/u/6557160?v=3","gravatar_id":"","url":"https://api.github.com/users/emaish","html_url":"https://github.com/emaish","followers_url":"https://api.github.com/users/emaish/followers","following_url":"https://api.github.com/users/emaish/following{/other_user}","gists_url":"https://api.github.com/users/emaish/gists{/gist_id}","starred_url":"https://api.github.com/users/emaish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emaish/subscriptions","organizations_url":"https://api.github.com/users/emaish/orgs","repos_url":"https://api.github.com/users/emaish/repos","events_url":"https://api.github.com/users/emaish/events{/privacy}","received_events_url":"https://api.github.com/users/emaish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-08T13:52:41Z","updated_at":"2016-01-08T14:11:33Z","closed_at":null,"body":"in ABP version 0.7.6.0, Authorization provider moved from Application Project to Core Project,\r\nwhen i Create Permission in Authorization Provider and run the application, i got System.StackOverflowException\r\n\r\nhere is Authorization Provider in Core Project\r\n\r\n```C#\r\nusing Abp.Authorization;\r\nusing Abp.Localization;\r\nusing Abp.MultiTenancy;\r\n\r\nnamespace ACHPay.Enterprise.Authorization\r\n{\r\n    public class EnterpriseAuthorizationProvider : AuthorizationProvider\r\n    {\r\n        public override void SetPermissions(IPermissionDefinitionContext context)\r\n        {\r\n            context.CreatePermission(\"Read.Permission.Banks\", L(\"Permission.Banks\"), multiTenancySides: MultiTenancySides.Tenant);\r\n            context.CreatePermission(\"Write.Permission.Banks\", L(\"Permission.Banks\"), multiTenancySides: MultiTenancySides.Tenant);\r\n            context.CreatePermission(\"Delete.Permission.Banks\", L(\"Permission.Banks\"), multiTenancySides: MultiTenancySides.Tenant);\r\n        }\r\n\r\n        private static ILocalizableString L(string name)\r\n        {\r\n            return L(name);\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/comments/170013309","html_url":"https://github.com/aspnetboilerplate/module-zero/issues/147#issuecomment-170013309","issue_url":"https://api.github.com/repos/aspnetboilerplate/module-zero/issues/147","id":170013309,"user":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T14:11:33Z","updated_at":"2016-01-08T14:11:33Z","body":"This is very simple. L method recursively calls itself. It never ends. Why did you write it like that? It should be similar this:\r\n\r\n````C#\r\nprivate static ILocalizableString L(string name)\r\n{\r\n    return new LocalizableString(name, \"YourLocalizationSourceName\");\r\n}\r\n````\r\n\r\nYourLocalizationSourceName will be your source name. It's better to get it from a consts."}}