Hi all,
I created a Virtual Directory under by current website which is running on IIS 7.5. I need to add a special authorization check before serving files under this Virtual Directory, so, I implemented IHttpModule. I want this module to be added to the pipeline when the files are requested from the Virtual Directory, rest of the website doesn't need this special authorization step (I want this module to be called for VD only). Through IIS Manager, I went to the Virtual Directory, Modules feature to add the new module but I get a message on the Action pane "This feature has been locked and is read only." and won't let me add it. Also, I tried adding a location tag for virtual directory in the website's web.config but the module code is not being called, but if I add the module to website's modules list in the web.config, it will work as expected but now all the calls to website unnecessarily go through the module. Can anyone please guide me on how to configure a module for just the Virtual Directory alone.
Thank you,
Robin