{"action":"created","issue":{"url":"https://api.github.com/repos/Xabaril/BeatPulse/issues/65","repository_url":"https://api.github.com/repos/Xabaril/BeatPulse","labels_url":"https://api.github.com/repos/Xabaril/BeatPulse/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/Xabaril/BeatPulse/issues/65/comments","events_url":"https://api.github.com/repos/Xabaril/BeatPulse/issues/65/events","html_url":"https://github.com/Xabaril/BeatPulse/issues/65","id":331534529,"node_id":"MDU6SXNzdWUzMzE1MzQ1Mjk=","number":65,"title":"An error occurred starting the application","user":{"login":"sorcer1","id":584256,"node_id":"MDQ6VXNlcjU4NDI1Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/584256?v=4","gravatar_id":"","url":"https://api.github.com/users/sorcer1","html_url":"https://github.com/sorcer1","followers_url":"https://api.github.com/users/sorcer1/followers","following_url":"https://api.github.com/users/sorcer1/following{/other_user}","gists_url":"https://api.github.com/users/sorcer1/gists{/gist_id}","starred_url":"https://api.github.com/users/sorcer1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorcer1/subscriptions","organizations_url":"https://api.github.com/users/sorcer1/orgs","repos_url":"https://api.github.com/users/sorcer1/repos","events_url":"https://api.github.com/users/sorcer1/events{/privacy}","received_events_url":"https://api.github.com/users/sorcer1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-12T10:45:29Z","updated_at":"2018-06-12T12:17:04Z","closed_at":null,"author_association":"NONE","body":"Hello, \r\nI have this error when i run my web api :\r\n`System.AggregateException: One or more errors occurred. (The DbContextOptions passed to the LivenessDb constructor must be a DbContextOptions<LivenessDb>. When registering multiple DbContext types make sure that the constructor for each context type has a DbContextOptions<TContext> parameter rather than a non-generic DbContextOptions parameter.) ---> System.InvalidOperationException: The DbContextOptions passed to the LivenessDb constructor must be a DbContextOptions<LivenessDb>. When registering multiple DbContext types make sure that the constructor for each context type has a DbContextOptions<TContext> parameter rather than a non-generic DbContextOptions parameter.`\r\n\r\nThis my how i put BeatPulse in my project :\r\n\r\n ```\r\n.UseBeatPulse(options =>\r\n                {\r\n                    options.ConfigurePath(\"hc\")\r\n                         .ConfigureTimeout(1500)\r\n                         .ConfigureDetailedOutput(true);\r\n                })\r\n```\r\n           ```\r\n services.AddBeatPulseUI();\r\n            services.AddBeatPulse(setup =>\r\n            {\r\n                //add sql server liveness\r\n                setup.AddSqlServer(connectionBuilder.ConnectionString);\r\n            });\r\n```\r\n\r\n```\r\n{\r\n  \"BeatPulse-UI\": {\r\n    \"Liveness\": [\r\n      {\r\n        \"Name\": \"SQL\",\r\n        \"Uri\": \"https://localhost:88/hc/sqlserver\"\r\n      }\r\n    ],\r\n    \"Webhooks\": [\r\n      {\r\n        \"Name\": \"\",\r\n        \"Uri\": \"\",\r\n        \"Payload\": \"\"\r\n      }\r\n    ],\r\n    \"EvaluationTimeOnSeconds\": 60\r\n  }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Xabaril/BeatPulse/issues/comments/396568511","html_url":"https://github.com/Xabaril/BeatPulse/issues/65#issuecomment-396568511","issue_url":"https://api.github.com/repos/Xabaril/BeatPulse/issues/65","id":396568511,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjU2ODUxMQ==","user":{"login":"sorcer1","id":584256,"node_id":"MDQ6VXNlcjU4NDI1Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/584256?v=4","gravatar_id":"","url":"https://api.github.com/users/sorcer1","html_url":"https://github.com/sorcer1","followers_url":"https://api.github.com/users/sorcer1/followers","following_url":"https://api.github.com/users/sorcer1/following{/other_user}","gists_url":"https://api.github.com/users/sorcer1/gists{/gist_id}","starred_url":"https://api.github.com/users/sorcer1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorcer1/subscriptions","organizations_url":"https://api.github.com/users/sorcer1/orgs","repos_url":"https://api.github.com/users/sorcer1/repos","events_url":"https://api.github.com/users/sorcer1/events{/privacy}","received_events_url":"https://api.github.com/users/sorcer1/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T12:17:04Z","updated_at":"2018-06-12T12:17:04Z","author_association":"NONE","body":"More details about the error :\r\n\r\n```\r\nMovieSystemV4.Api> [14:20:43 ERR] Connection id \"0HLEGBRB1HRQM\", Request id \"0HLEGBRB1HRQM:00000002\": An unhandled exception was thrown by the application.\r\nMovieSystemV4.Api> System.InvalidOperationException: The DbContextOptions passed to the LivenessDb constructor must be a DbContextOptions<LivenessDb>. When registering multiple DbContext types make sure that the constructor for each context type has a DbContextOptions<TContext> parameter rather than a non-generic DbContextOptions parameter.\r\nMovieSystemV4.Api>    at Microsoft.EntityFrameworkCore.DbContext..ctor(DbContextOptions options)\r\nMovieSystemV4.Api>    at lambda_method(Closure , ServiceProviderEngineScope )\r\nMovieSystemV4.Api>    at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\r\nMovieSystemV4.Api>    at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)\r\nMovieSystemV4.Api>    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)\r\nMovieSystemV4.Api>    at BeatPulse.UI.Middleware.UIApiEndpointMiddleware.InvokeAsync(HttpContext context, IServiceScopeFactory serviceScopeFactory)\r\nMovieSystemV4.Api>    at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\nMovieSystemV4.Api>    at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)\r\nMovieSystemV4.Api>    at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.Invoke(HttpContext httpContext)\r\nMovieSystemV4.Api>    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)\r\n```"}}
{"actor":{"display_login":"sorcer1"}}