{"action":"closed","issue":{"url":"https://api.github.com/repos/HangfireIO/Hangfire/issues/591","repository_url":"https://api.github.com/repos/HangfireIO/Hangfire","labels_url":"https://api.github.com/repos/HangfireIO/Hangfire/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/HangfireIO/Hangfire/issues/591/comments","events_url":"https://api.github.com/repos/HangfireIO/Hangfire/issues/591/events","html_url":"https://github.com/HangfireIO/Hangfire/issues/591","id":159772022,"number":591,"title":"Cannot run HangFire on ASP.NET MVC 6?","user":{"login":"strich","id":987896,"avatar_url":"https://avatars.githubusercontent.com/u/987896?v=3","gravatar_id":"","url":"https://api.github.com/users/strich","html_url":"https://github.com/strich","followers_url":"https://api.github.com/users/strich/followers","following_url":"https://api.github.com/users/strich/following{/other_user}","gists_url":"https://api.github.com/users/strich/gists{/gist_id}","starred_url":"https://api.github.com/users/strich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strich/subscriptions","organizations_url":"https://api.github.com/users/strich/orgs","repos_url":"https://api.github.com/users/strich/repos","events_url":"https://api.github.com/users/strich/events{/privacy}","received_events_url":"https://api.github.com/users/strich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HangfireIO/Hangfire/labels/support","name":"support","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-11T12:48:16Z","updated_at":"2016-07-05T14:32:00Z","closed_at":"2016-07-05T14:32:00Z","body":"When trying to follow the Quick Start Installation instructions I run into the following build errors:\r\n\r\n```\r\n'IApplicationBuilder' does not contain a definition for 'UseHangfireDashboard' and the best extension method overload 'AppBuilderExtensions.UseHangfireDashboard(IAppBuilder)' requires a receiver of type 'IAppBuilder'\tGameRigger.DNX 4.5.1\r\n \r\n'IApplicationBuilder' does not contain a definition for 'UseHangfireServer' and the best extension method overload 'AppBuilderExtensions.UseHangfireServer(IAppBuilder)' requires a receiver of type 'IAppBuilder'\tGameRigger.DNX 4.5.1\r\n```\r\n\r\nI'm not sure how to work around this - My application is a largely default configuration of ASP.NET MVC 6.\r\n\r\n``` c#\r\npublic void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)\r\n        {\r\n            loggerFactory.AddConsole(Configuration.GetSection(\"Logging\"));\r\n            loggerFactory.AddDebug();\r\n\r\n            if (env.IsDevelopment())\r\n            {\r\n                app.UseBrowserLink();\r\n                app.UseDeveloperExceptionPage();\r\n                app.UseDatabaseErrorPage();\r\n            }\r\n            else\r\n            {\r\n                app.UseExceptionHandler(\"/Home/Error\");\r\n\r\n                // For more details on creating database during deployment see http://go.microsoft.com/fwlink/?LinkID=615859\r\n                try\r\n                {\r\n                    using (var serviceScope = app.ApplicationServices.GetRequiredService<IServiceScopeFactory>()\r\n                        .CreateScope())\r\n                    {\r\n                        serviceScope.ServiceProvider.GetService<ApplicationDbContext>()\r\n                             .Database.Migrate();\r\n                    }\r\n                }\r\n                catch { }\r\n            }\r\n\r\n            app.UseIISPlatformHandler(options => options.AuthenticationDescriptions.Clear());\r\n\r\n            app.UseStaticFiles();\r\n\r\n            app.UseIdentity();\r\n\r\n            // To configure external authentication please see http://go.microsoft.com/fwlink/?LinkID=532715\r\n\r\n            app.UseMvc(routes =>\r\n            {\r\n                routes.MapRoute(\r\n                    name: \"default\",\r\n                    template: \"{controller=Home}/{action=Index}/{id?}\");\r\n            });\r\n\r\n            app.UseHangfireDashboard();\r\n            app.UseHangfireServer();\r\n        }\r\n```"}}
{"actor":{"display_login":"odinserj"}}