{"action":"opened","issue":{"url":"https://api.github.com/repos/RoushTech/RollbarDotNet/issues/32","repository_url":"https://api.github.com/repos/RoushTech/RollbarDotNet","labels_url":"https://api.github.com/repos/RoushTech/RollbarDotNet/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/RoushTech/RollbarDotNet/issues/32/comments","events_url":"https://api.github.com/repos/RoushTech/RollbarDotNet/issues/32/events","html_url":"https://github.com/RoushTech/RollbarDotNet/issues/32","id":187507951,"number":32,"title":"Error on adding rollbar","user":{"login":"dtaalbers","id":6512556,"avatar_url":"https://avatars.githubusercontent.com/u/6512556?v=3","gravatar_id":"","url":"https://api.github.com/users/dtaalbers","html_url":"https://github.com/dtaalbers","followers_url":"https://api.github.com/users/dtaalbers/followers","following_url":"https://api.github.com/users/dtaalbers/following{/other_user}","gists_url":"https://api.github.com/users/dtaalbers/gists{/gist_id}","starred_url":"https://api.github.com/users/dtaalbers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtaalbers/subscriptions","organizations_url":"https://api.github.com/users/dtaalbers/orgs","repos_url":"https://api.github.com/users/dtaalbers/repos","events_url":"https://api.github.com/users/dtaalbers/events{/privacy}","received_events_url":"https://api.github.com/users/dtaalbers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-05T16:49:53Z","updated_at":"2016-11-05T16:49:53Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying to use your rollbar intergration in my dotnet CORE WebApi. But when I add the required lines of code (reading of your README) I get the following error\r\n\r\n```\r\nUnable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor' while attempting to activate 'RollbarDotNet.Builder.RequestBuilder\r\n```\r\n\r\nI've tried to add the lines of different places in my startup class, but still getting the errors. Any idea of what I am doing wrong?\r\n\r\n```\r\n        public void ConfigureServices(IServiceCollection services)\r\n        {\r\n            services.AddRollbarWeb(Configuration);\r\n            services.AddSingleton(Configuration);\r\n\r\n            services.AddElm(options =>\r\n            {\r\n                options.Path = new PathString(\"/elm\");\r\n                options.Filter = (name, level) => level >= LogLevel.Error;\r\n            });\r\n\r\n            services.AddMvc();\r\n\r\n            services.AddOptions();\r\n\r\n            services.Configure<ApiSettings>(Configuration.GetSection(\"ApiSettings\"));\r\n\r\n            // Configure mappings\r\n            Mappings.ConfigureMappings();\r\n        }\r\n\r\n\r\n        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline\r\n        public 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            app.UseRollbarExceptionHandler();\r\n\r\n            app.UseCors(builder =>\r\n               builder.WithOrigins(\"http://localhost:9000\")\r\n                   .AllowAnyMethod()\r\n                   .AllowAnyHeader()\r\n                   .AllowCredentials()\r\n               );\r\n\r\n            app.UseElmPage();\r\n            app.UseElmCapture();\r\n            app.UseMvc();\r\n        }\r\n```"}}
{"actor":{"display_login":"dtaalbers"}}