How to register an HttpModule that is not in the App_code folder

I would like to have my code for an HttpModule somewhere else than in the App_code folder, is that possible?

EDIT: For now, i have my module in a class file in the App_code folder of my web application. I'm successfuly registering it with this line in my web.config

<httpModules>
  <add name="myModule" type="myModule,App_code"/>
</httpModules>

What i would like to do is being able to put my class file somewhere else than in the Ape_code folder. Something like :

<httpModules>
  <add name="myModule" type="myModule, myOtherFolder"/>
</httpModules>

Answers


So, finaly, here's how I solved my problem. I found that to register an HttpModule, you have to use the foollowing syntax.

<httpModules>
  <add name="MyModuleName" type="MyApplicationNamespace.MyModuleNamespace.MyModuleClassName, MyApplicationAssemblyName"/>
</httpModules>

Notes:

  • MyModuleName is not restrictive, it is used by the application to reference the module
  • Since MyApplicationName and MyApplicationAssemblyName is often the same (it is in my case), it is probable that the syntax above isn't totaly acurate.

Hope this can help someone else.


Need Your Help

Formula to remain after running macro

excel vba excel-vba

I was wondering how I can have a formula stay on column J2:J600. The formula is =R2 and would go all the way down to =R600. I thought I could manually put the formula in but every time I run my mac...

HTML5 canvas and php on Chrome not working

javascript php jquery html5 canvas

I would love to create a fiddle for this to show but i'm using php and it won't let me use php in those so i'm hoping someone will still know whats going on!

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.