Title: StructureMap isn't creating WebAPI controllers for some reason. · Issue #6 · webadvanced/Structuremap.WebAPI2 · GitHub
Open Graph Title: StructureMap isn't creating WebAPI controllers for some reason. · Issue #6 · webadvanced/Structuremap.WebAPI2
X Title: StructureMap isn't creating WebAPI controllers for some reason. · Issue #6 · webadvanced/Structuremap.WebAPI2
Description: Hi I'm struggling at the moment to work out what's going on with my app. We've recently included an owin Startup class and I believe that's what's made StructureMap stop working. It seems like WebAPI can't create any of my controllers an...
Open Graph Description: Hi I'm struggling at the moment to work out what's going on with my app. We've recently included an owin Startup class and I believe that's what's made StructureMap stop working. It seems like WebA...
X Description: Hi I'm struggling at the moment to work out what's going on with my app. We've recently included an owin Startup class and I believe that's what's made StructureMap stop working...
Opengraph URL: https://github.com/webadvanced/Structuremap.WebAPI2/issues/6
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"StructureMap isn't creating WebAPI controllers for some reason.","articleBody":"Hi \r\n\r\nI'm struggling at the moment to work out what's going on with my app.\r\n\r\nWe've recently included an owin Startup class and I believe that's what's made StructureMap stop working.\r\n\r\nIt seems like WebAPI can't create any of my controllers and I can't see StructureMap anywhere in the stack trace so that's making me think it's not registered as the controller factory or something.\r\n\r\n \"ExceptionMessage\": \"Type 'GRP2App.Web.API.AuthController' does not have a default constructor\",\r\n \"ExceptionType\": \"System.ArgumentException\",\r\n \"StackTrace\": \"\r\n at System.Linq.Expressions.Expression.New(Type type)\r\n at System.Web.Http.Internal.TypeActivator.Create[TBase](Type instanceType)\r\n at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.GetInstanceOrActivator(HttpRequestMessage request, Type controllerType, Func`1\u0026 activator)\r\n at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)\"\r\n\r\nWhat am I missing? There must be an OWIN config line that I'm missing that tells OWIN that StructureMap is my DI container and to use it to create controller instances","author":{"url":"https://github.com/B3nCr","@type":"Person","name":"B3nCr"},"datePublished":"2017-05-10T10:15:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/6/Structuremap.WebAPI2/issues/6"}
| 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:ca546e0c-523f-2752-9cfc-bf39e4bd2c41 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4A4:14F53A:4B13E8:602C46:6990B734 |
| html-safe-nonce | df9a96c8cbb0a7b412db5b2fa1f542d7f024dbb96f9375a833ad1c3f3a5c2360 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEE0OjE0RjUzQTo0QjEzRTg6NjAyQzQ2OjY5OTBCNzM0IiwidmlzaXRvcl9pZCI6IjExMTAyMDcxOTc2MjU3NTk1NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0e340db1bd772551a975fb2c99f8c4088e70ab509c8ed18f95b1cb17410126bc |
| hovercard-subject-tag | issue:227631680 |
| 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/webadvanced/Structuremap.WebAPI2/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/234fd733c2da26eb77e936b7b7b86733724c83a6be0cae4982d32f298a92b14e/webadvanced/Structuremap.WebAPI2/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/234fd733c2da26eb77e936b7b7b86733724c83a6be0cae4982d32f298a92b14e/webadvanced/Structuremap.WebAPI2/issues/6 |
| og:image:alt | Hi I'm struggling at the moment to work out what's going on with my app. We've recently included an owin Startup class and I believe that's what's made StructureMap stop working. It seems like WebA... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | B3nCr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/webadvanced/Structuremap.WebAPI2 git https://github.com/webadvanced/Structuremap.WebAPI2.git |
| octolytics-dimension-user_id | 556018 |
| octolytics-dimension-user_login | webadvanced |
| octolytics-dimension-repository_id | 19080138 |
| octolytics-dimension-repository_nwo | webadvanced/Structuremap.WebAPI2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 19080138 |
| octolytics-dimension-repository_network_root_nwo | webadvanced/Structuremap.WebAPI2 |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width