question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How does the OwinHost.SystemWeb regiester it's module and handler ?

See original GitHub issue

when use Owin , there no configuration in web.config, but how it regiester the OwinHttpModule and OwinHttpHandler ?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
CZEMacLeodcommented, Aug 30, 2022

See https://github.com/aspnet/AspNetKatana/blob/main/src/Microsoft.Owin.Host.SystemWeb/PreApplicationStart.cs Basically, the assembly has a PreApplicationStartMethod attribute defined that causes the IIS dotnet hosting runtime to execute the Initialize function which then registers the OwinHttpModule. I don’t think the handler is registered as such - it is just setup as a route handler, same as MVC etc. based on the paths you map when you setup your owin app.

0reactions
msftbot[bot]commented, Sep 1, 2022

This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.

See our Issue Management Policies for more information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OWIN Middleware in the IIS integrated pipeline
SystemWeb nuget package registers the OwinHttpModule . Typically, HttpModule is registered in IIS via Web.config file, but Microsoft.Owin.Host.
Read more >
OwinHttpHandler Class (Microsoft.Owin.Host.SystemWeb)
Initiates an asynchronous call to the HTTP handler. System_CAPS_pubmethod, EndProcessRequest(IAsyncResult). Provides an asynchronous process End ...
Read more >
What is the process that makes IIS start responding to ...
Host.SystemWeb package the Startup's Configuration method won't ever be run. I suspect there's a custom module and handler involved in making ...
Read more >
OWIN and Katana Interfaces of ASP.Net
The Katana SystemWeb host registers an ASP.NET HttpModule and HttpHandler to intercept requests as they flow through the HTTP pipeline and send ...
Read more >
Developing Non-ASP.NET Websites running under IIS
The lesson learned here is, understand very carefully what IIS is doing based on the modules, handlers, and files. How Do Others Do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found