Last post Feb 26, 2011 09:53 PM by fpl
Feb 23, 2011 10:42 AM|Graham_H|LINK
I'm trying to understand IIS and ASN.NET better by trying some examples I've found on the MS Site. However my first attempt has got me knowwhere :-(
This is all on my laptop running IIS 7, Vista Pro, and Viual Web Dev 2010 Express.
I've set the .NET Framework to 3.5 for my Project.
// throw new NotImplementedException();
// Set up the events we want to catch
// Module Handlers
app = (HttpApplication
request = app.Context.Request;
from OnAuthorizeRequest in custom module.<br>"
I've created an Application under the default Web Root, and loaded my module into the App as a managed module using inetmgr. COde compiled OK, I copied it into a BIN subdirectory of my App, and I amended my web.config under the app to add the module.
However, when I make a request to my application page, I dont see eny evidence of it invoking my custom module. I've turned on server side tracing but again no sign of my module in the trace.
Any thoughts about where to look for the problem?
Feb 24, 2011 02:43 PM|fpl|LINK
Have you added your module in web.config file? If that's not the case, Make sure yor web.config has the following:
<remove name="MyModule" />
<add name="MyModule" type="MyIIS7Project.MyModule"/>
Hope this helps.
PS. If this post solves your problem, please mark it as Answer.
Feb 25, 2011 02:36 PM|Graham_H|LINK
I had most of it apart from "<validation
" and " <remove name="MyModule" /> "
Not sure why tyhese made such a difference but they did.
Thanks for the help.
Feb 26, 2011 09:53 PM|fpl|LINK
Thanks for the "answer".
I don't remeber very well, because I 've been using these tags from sometime ago. As of today, the net effect is that if also write the same <add name="MyModule...> inside <httpModules> section (inside <system.web> section), I have my modules working from
IIS5 to IIS7.5 no matter if in integrated or pipeline mode.