httpmodule

Does running a HTTPModule prevent IIS Logging?

大城市里の小女人 提交于 2020-01-24 20:48:06
问题 We are running a site using a custom HTTPModule to do some URL Routing. The problem is this sites traffic is not being logged by IIS. Everything appears to be set up correctly, and other sites on the same server are logging. But the log folder for this site remains empty. (not even the W3SVC... folder is being created!) Is this related to us running a HTTPModule, or is something else causing the problem. I can't find anything that says it would stop logging, or anything that says it won't.

How do I deploy a managed HTTP Module Site Wide?

人走茶凉 提交于 2020-01-16 05:34:06
问题 I am developing a manged HTTP Module that will intercept requests to and response from IIS 7. The intercepted messages will be modified based on a set of business rules by a custom filter. The business rules will be stored in a configuration file. The messages must be intercepted web site wide. This includes any applications or virtual directories that exist as children of the web site. My first attempt at this was to install the HTTP Module assembly in the bin directory of the desired web

Is ReleaseRequestState called multiple times for each Request received by IIS?

坚强是说给别人听的谎言 提交于 2020-01-15 14:16:24
问题 I am writing an HttpModule in VS2010/ASP.NET 4.0 for use with IIS 7. The module is going to enforce query string security by encrypting query strings. I would like this module to be completely independent of as well as transparent to the website, so that the website has no knowledge of the fact that query string encryption is being employed. This will ensure firstly that pages/controls don't have to care about this issue. Secondly, it would enable query string encryption for Production

ImageResizer.net with Cache Plugin causing duplicate output cache

强颜欢笑 提交于 2020-01-07 02:44:12
问题 I have a strange issue, whereby when I enable output caching in Orchard CMS and have ImageResizer.net cache plugin enabled, I get duplicated page content (full DOM). Just for reference, I am deploying to Azure Small Reserved instance. Any ideas how to resolve this - do I need to create a cache profile for output cache not to cache images as this is taken care of by the cache plugin? Thanks in advance, Peter Diagnostic information: Image resizer diagnostic sheet 2/13/2013 9:07:32 PM 1 Issues

How do I register a HttpModule in the machine.config for IIS 7?

房东的猫 提交于 2020-01-03 04:52:09
问题 I'm trying to install a HttpModule on all sites on a server. It is already in the GAC and is working on sites if I individually add the proper configuration to each site's web.config file. When I move the configuration into the machine.config or the global web.config , the module disappears. Right now, I have the config in the system.webserver/httpModules and the system.web/httpModules sections in both the 32 bit and 64 bit machine.config and global web.config - eight places total and none of

HttpResponse filter returns nothing

限于喜欢 提交于 2020-01-02 05:52:30
问题 I have written a HttpModule that I am using to intercept calls the the WebResource.axd handler so I can perform some post processing on the javascript. The module wraps the Response.Filter stream to perform its processing and writes it's changes to the underlying stream. The problem I have is that the script does not get returned to the browser. So as a really simple example that just acts as a pass through, the module looks like this: public class ResourceModule : IHttpModule { public void

HttpResponse filter returns nothing

偶尔善良 提交于 2020-01-02 05:52:08
问题 I have written a HttpModule that I am using to intercept calls the the WebResource.axd handler so I can perform some post processing on the javascript. The module wraps the Response.Filter stream to perform its processing and writes it's changes to the underlying stream. The problem I have is that the script does not get returned to the browser. So as a really simple example that just acts as a pass through, the module looks like this: public class ResourceModule : IHttpModule { public void

How would an HttpModule for Custom Authentication interact with Windows Authentication?

匆匆过客 提交于 2020-01-02 03:50:08
问题 I am trying to create a custom HttpModule which controls which users can view a site. I am trying to leverage Windows Authentication to do this. On an individual page, I would probably do something like this: if (HttpContext.Current.User.Identity.Name.Contains("jsmith")) { Response.Write("You do not have the correct permissions to view this site."); Response.End(); } But because I want to make this more configurable at the application level, I would like to use an HttpModule. Here is the

How to limit HttpModule with ONLY ONE call per request?

若如初见. 提交于 2020-01-01 19:21:07
问题 Here is my implementation of HttpModule: file with module: public class HttpModuleRewriter : IHttpModule { #region IHttpModule public void Init(HttpApplication app) { app.BeginRequest += ProcessRequest; } public void Dispose() { } #endregion #region Protected Methods protected void ProcessRequest(object sender, EventArgs e) { ... } } web.config: <?xml version="1.0"?> <configuration> <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="HttpModuleRewriter"

Processing static files via HttpModule in ASP.NET

北城以北 提交于 2020-01-01 03:46:25
问题 I have statiс files in website folder, but need to check permissions for every file. I decided to use HttpModule for that purposes. ASP.NET receives all the http-requests (I used wildcard mapping) and The algorith is the following: HttpModule receives the request HttpModule checks permissions If access is denied then the answer is "Forbidden". If all is OK then httpModule's method just returns. DefaultHttpHandler is automatically used to process request for static files The problem is that