c# - How to stop OWIN Startup class for Identity Framework being called for image requests? -


is possible stop owin startup class being called every request images within /content/images folder?

i finding new dbcontext being newed every image request, when there doesn't need authorization checks images.

update:

i created brand new mvc project , found class not being called images within /content/images/.

so looks if, default, doesn't call when request /content folder, reason in application does.

is there setting in web.config or properties of folder configures this?

in config, replace runallmanagedmodulesforallrequests="true" runallmanagedmodulesforallrequests="false". if breaks in application, might have fiddle precondition="managedhandler" on registered modules, of times property should set false.

see can't stop firing asp.net module static content details on how property works.


Comments