NickCraver / StackExchange.Exceptional

Error handler used for the Stack Exchange network
https://nickcraver.com/StackExchange.Exceptional/
Apache License 2.0
859 stars 170 forks source link

postgresql store : what's the type I must use ? #151

Closed ghost closed 5 years ago

ghost commented 5 years ago

I've installed those packages : StackExchange.Exceptional.AspNetCore 2.0.0-rc2.28 StackExchange.Exceptional.PostgreSql 2.0.0-rc2.28

In configureServices, I have :

            services.AddExceptional(Configuration.GetSection("Exceptional"), settings =>
            {
                settings.UseExceptionalPageOnThrow = HostingEnvironment.IsDevelopment();
            });

In Configure, the first line is : app.UseExceptional(); The appSettings :

  "Exceptional": {
    "Store": {
      "ApplicationName": "",
      "Type": "PostgreSql",
      "ConnectionString": ""
    }

When I try to access the errors action, I get

System.Exception: Could not find error store type: PostgreSql
   at StackExchange.Exceptional.ErrorStore.Get(ErrorStoreSettings settings)
   at StackExchange.Exceptional.Internal.ExceptionalSettingsBase.get_DefaultStore()
   at StackExchange.Exceptional.ExceptionalMiddleware.HandleRequestAsync(HttpContext context)
   at api.Controllers.DefaultController.Exceptions() 
NickCraver commented 5 years ago

Can you share what your .csproj looks like?

NickCraver commented 5 years ago

@oooolivierrrr any update? Also consider the fix in #160 - I believe that workaround is the same issue as here that changes in later versions of ASP.NET Core.

ghost commented 5 years ago

i gave up


From: Nick Craver notifications@github.com Sent: Saturday, March 2, 2019 8:05:57 AM To: NickCraver/StackExchange.Exceptional Cc: oooolivierrrr; Mention Subject: Re: [NickCraver/StackExchange.Exceptional] postgresql store : what's the type I must use ? (#151)

@oooolivierrrrhttps://github.com/oooolivierrrr any update? Also consider the fix in #160https://github.com/NickCraver/StackExchange.Exceptional/issues/160 - I believe that workaround is the same issue as here that changes in later versions of ASP.NET Core.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/NickCraver/StackExchange.Exceptional/issues/151#issuecomment-468918883, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ApH6vUhegIwRnz2U6zRxAnfX5A4ZcZeuks5vSnc1gaJpZM4YT8Ob.

NickCraver commented 5 years ago

@oooolivierrrr Got it - thanks for responding :)