{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1332","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1332/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1332/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1332/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1332","id":174090988,"number":1332,"title":"Problem to register type in IoC with LifestylePerWebRequest scope","user":{"login":"thiagoburgo","id":1056545,"avatar_url":"https://avatars.githubusercontent.com/u/1056545?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagoburgo","html_url":"https://github.com/thiagoburgo","followers_url":"https://api.github.com/users/thiagoburgo/followers","following_url":"https://api.github.com/users/thiagoburgo/following{/other_user}","gists_url":"https://api.github.com/users/thiagoburgo/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagoburgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagoburgo/subscriptions","organizations_url":"https://api.github.com/users/thiagoburgo/orgs","repos_url":"https://api.github.com/users/thiagoburgo/repos","events_url":"https://api.github.com/users/thiagoburgo/events{/privacy}","received_events_url":"https://api.github.com/users/thiagoburgo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-30T18:28:50Z","updated_at":"2016-08-31T19:02:42Z","closed_at":null,"body":"`Abp 10.3.0`\r\n\r\nHi, \r\n\r\nWhen I try register a object in my module in MVC web with LifestylePerWebRequest, a exception is throw:\r\n\r\n```\r\n\r\nLooks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule\r\nTo fix this add\r\n<add name=\"PerRequestLifestyle\" type=\"Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor\" />\r\nto the <httpModules> section on your web.config.\r\nWindsor also detected you're running IIS in Integrated Pipeline mode. This means that you also need to add the module to the <modules> section under <system.webServer>.\r\nAlternatively make sure you have Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 assembly in your GAC (it is installed by ASP.NET MVC3 or WebMatrix) and Windsor will be able to register the module automatically without having to add anything to the config file.\r\n```\r\n\r\nI put correct configuration in modules section in web.config, but don't works anyway:\r\n\r\n ```\r\n<system.webServer>\r\n    <!--configuration/system.webServer/security/requestFiltering/requestLimits@maxQueryString-->\r\n    <security>\r\n      <requestFiltering>\r\n        <requestLimits maxQueryString=\"5000\" maxUrl=\"1000\" />\r\n      </requestFiltering>\r\n    </security>\r\n    <modules runAllManagedModulesForAllRequests=\"true\">\r\n      <remove name=\"WebDAVModule\" />\r\n      <add name=\"PerRequestLifestyle\" type=\"Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor\" />\r\n    </modules>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/comments/243866697","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1332#issuecomment-243866697","issue_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1332","id":243866697,"user":{"login":"thiagoburgo","id":1056545,"avatar_url":"https://avatars.githubusercontent.com/u/1056545?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagoburgo","html_url":"https://github.com/thiagoburgo","followers_url":"https://api.github.com/users/thiagoburgo/followers","following_url":"https://api.github.com/users/thiagoburgo/following{/other_user}","gists_url":"https://api.github.com/users/thiagoburgo/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagoburgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagoburgo/subscriptions","organizations_url":"https://api.github.com/users/thiagoburgo/orgs","repos_url":"https://api.github.com/users/thiagoburgo/repos","events_url":"https://api.github.com/users/thiagoburgo/events{/privacy}","received_events_url":"https://api.github.com/users/thiagoburgo/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T19:02:42Z","updated_at":"2016-08-31T19:02:42Z","body":"@hikalkan, \r\n\r\nYou register normally in  Initialize() module's method?\r\n\r\nHere have no way to do this work... What is your IIS version?\r\n\r\nThanks,"}}
{"actor":{"display_login":"thiagoburgo"}}