Title: Are exceptions suppressed on purpose upon initialization? · Issue #25 · NEventStore/NEventStore.Persistence.SQL · GitHub
Open Graph Title: Are exceptions suppressed on purpose upon initialization? · Issue #25 · NEventStore/NEventStore.Persistence.SQL
X Title: Are exceptions suppressed on purpose upon initialization? · Issue #25 · NEventStore/NEventStore.Persistence.SQL
Description: Consider the following initialization code I used for evaluating NEventStore: Wireup .Init() .UsingSqlPersistence("Core NEventStore") .WithDialect(new MsSqlDialect()) .UsingJsonSerialization() .Build(); It all ran fine in a standalone co...
Open Graph Description: Consider the following initialization code I used for evaluating NEventStore: Wireup .Init() .UsingSqlPersistence("Core NEventStore") .WithDialect(new MsSqlDialect()) .UsingJsonSerialization() .Bui...
X Description: Consider the following initialization code I used for evaluating NEventStore: Wireup .Init() .UsingSqlPersistence("Core NEventStore") .WithDialect(new MsSqlDialect()) .UsingJsonSerializat...
Opengraph URL: https://github.com/NEventStore/NEventStore.Persistence.SQL/issues/25
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Are exceptions suppressed on purpose upon initialization?","articleBody":"Consider the following initialization code I used for evaluating NEventStore:\n\n```\nWireup\n.Init()\n.UsingSqlPersistence(\"Core NEventStore\")\n.WithDialect(new MsSqlDialect())\n.UsingJsonSerialization()\n.Build();\n```\n\nIt all ran fine in a standalone console applicaiton. However, when I tried to use it in the initialization routines of an ASP.NET web application. The root cause of the error is, of course, missing CREATE TABLE permissions on the IIS user within my database.\n\nIt took me some good four hours to detect this, because the initialization method of the `SqlPersistenceEngine` actively suppresses exceptions. I used a custom `ILog` with breakpoints in each method to jump through all log messages. It seems that the following things happen:\n1. attempting to CREATE TABLE\n2. fails due to insufficient permissions, but the exception is suppressed\n3. transaction gets completed\n4. attempting to CREATE TABLE again\n5. fails due to transaction being already completed\n\nIn the end I was confronted with an exception that had really nothing much to do with the actual root cause of the error.\n","author":{"url":"https://github.com/conradreuter","@type":"Person","name":"conradreuter"},"datePublished":"2016-07-28T11:47:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/25/NEventStore.Persistence.SQL/issues/25"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:58d715cc-8370-ae5c-513e-80b4f689a706 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF0C:1B7B42:114BF74:178F429:69733056 |
| html-safe-nonce | c4b7a4db48dbad83d16f1fe92562d2e2c7564a43eb35062759aad3003590c9b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjBDOjFCN0I0MjoxMTRCRjc0OjE3OEY0Mjk6Njk3MzMwNTYiLCJ2aXNpdG9yX2lkIjoiMzMxNjU1MDc5MTE0MDE1OTU3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8e9ee378fb1636086794d59cd93abdde05821cd0b0dc859f7f4f72c3ca6271c2 |
| hovercard-subject-tag | issue:168076703 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NEventStore/NEventStore.Persistence.SQL/25/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f1707135a7d1b093a635ae28a14b4524cc7d45eb20e450a2275cd8efa2244f55/NEventStore/NEventStore.Persistence.SQL/issues/25 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f1707135a7d1b093a635ae28a14b4524cc7d45eb20e450a2275cd8efa2244f55/NEventStore/NEventStore.Persistence.SQL/issues/25 |
| og:image:alt | Consider the following initialization code I used for evaluating NEventStore: Wireup .Init() .UsingSqlPersistence("Core NEventStore") .WithDialect(new MsSqlDialect()) .UsingJsonSerialization() .Bui... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | conradreuter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/NEventStore/NEventStore.Persistence.SQL git https://github.com/NEventStore/NEventStore.Persistence.SQL.git |
| octolytics-dimension-user_id | 4486767 |
| octolytics-dimension-user_login | NEventStore |
| octolytics-dimension-repository_id | 36130556 |
| octolytics-dimension-repository_nwo | NEventStore/NEventStore.Persistence.SQL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36130556 |
| octolytics-dimension-repository_network_root_nwo | NEventStore/NEventStore.Persistence.SQL |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width