HTTP Handlers

Topics: Customizing Orchard
Jul 7, 2015 at 9:55 AM
Edited Jul 7, 2015 at 10:00 AM
Hi all,

Please somebody help me with such problem. I have a dll and I have created a custom module. In the module I need to get resources from the dll such as JavaScript, CSS, images etc. . For that reason I have added HTTPHandlers to the main web.config (which is in the root folder). Unfortunately when I navigate to the module page all requests are 404.

So the question is how can I add http handlers that I can get resources from the dll which added to the references.

Thank you.
Coordinator
Jul 8, 2015 at 9:52 PM
You should not use http handlers or modules but Owin Middleware instead. It's easier to do and will have access to all Orchard services besides being compatible with multi tenancy.

You can find a tutorial here: http://orcharddojo.net/blog/writing-an-orchard-owin-middleware