ASP.NET HTTP Modules are classes which implement the System.Web.IHttpModule interface.
Questions tagged [httpmodule]
834 questions
0
votes
1 answer
DLL dependency and HTTP module
I have an HTTP module in a dll, being used in a web application. I need to call a class in the web application (using a Interface defined within the dll - so we are not tightly coupled).
I define the class in the appsettings of a web.config, but…

Podge
- 467
- 3
- 16
0
votes
0 answers
How can I execute a virtual path inside a HTTP module?
I'm trying to execute a virtual path inside a HTTP module (I want to capture the result).
But I get an error:
Error executing child request for /home/something/.
Code:
public void ExecuteUrl(string url)
{
var sb = new StringBuilder();
var…

jgauffin
- 99,844
- 45
- 235
- 372
0
votes
1 answer
ASP.NET HttpModule Request handling
I would like to handle static file web requests through an HttpModule to show the documents in my CMS according to some policies. I can filter out a request, but I don't know how to directly process such a request as asp.net should do.

duns
- 83
- 1
- 16
0
votes
1 answer
Attempt Windows Authorization but fall back on Custom Login
I am working with a module that worked in previous versions of IIS.
http://www.velocityreviews.com/forums/t94333-re-how-do-i-create-a-httpmodule-to-authenticate-in-aspnet.html
It no longer works because of the Integrated framework, and I cannot…

Levi
- 13
- 1
- 4
0
votes
1 answer
INIT method does not fire Application_Error event when exception occurs
we have written some code in httpmodule INIT method, which will execute only once. The code connects to third party web service and sometimes there could be a chance of getting error (like web service is down). we are handling application errors…

dotnetmirror.com
- 293
- 2
- 10
0
votes
1 answer
ASP.Net bypassing ReleaseStateRequest event - how?
Asked this on forums.asp.net but got no takers, so I thought I'd try here.
We've got an HttpModule that registers for BeginRequest, ReleaseRequestState, and EndRequest. The main purpose of the module is that when we're serving regular html pages,…

user1664043
- 695
- 5
- 14
0
votes
1 answer
Easiest way to modify web.config to enable/disable HttpModule from code
I am developing an application which will give a website administrator the ability to enable/disable a HttpModule without having to actually open and edit the web.config file. I have found it is quite easy to do this with appSettings node using the…

tjc59
- 633
- 8
- 24
0
votes
0 answers
HttpModule gzip Compression and Error in Default URL of the site
I use HTTP Module to compress Requests, this is my implementation:
void context_Begin(object sender, EventArgs e)
{
HttpApplication app = (HttpApplication)sender;
string encoding = app.Request.Headers.Get("Accept-Encoding");
if (encoding ==…

Saeid
- 13,224
- 32
- 107
- 173
0
votes
2 answers
Get Active Directory user from client request, server side?
I have a custom HTTP Module running on IIS 7.5, and the requests will be coming from different machines in the same Active Directory environment. Is it possible for me to get the current user (their AD Name?) from a request (or look up, if I knew…

lhan
- 4,585
- 11
- 60
- 105
0
votes
1 answer
IHttpModule RewritePath with StatusCode 404
I have a URL that looks like: /employees?employeeId=3992, which displays the employee with the ID 3992. That works fine and the HTTP Status Code is 200 OK.
However when someone writes an invalid ID in the URL such as: /employees?employeeId=39920, I…

Martin
- 2,302
- 2
- 30
- 42
0
votes
1 answer
How can I use 51Degreees data in a command line program to parse a UserAgent field?
I'm parsing some IIS Event Logs and need to analyze the UserAgent field. I think that 51Degrees has the data I need, but this is implemented as a HTTP module.
How do I interact with 51Degrees mobile device database with a C# command line…

makerofthings7
- 60,103
- 53
- 215
- 448
0
votes
1 answer
If I write a handler with to handle path *, will it have the same functionality as a httpmodule?

Hithere Paperbag
- 2,648
- 4
- 19
- 20
0
votes
2 answers
ImageResizer.net with Cache Plugin causing duplicate output cache
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…

Pete
- 1
- 2
0
votes
1 answer
IIS URL Re-write module with foreign text
We use IIS URL Re-write module, like this

aron
- 2,856
- 11
- 49
- 79
0
votes
1 answer
How to increase the IIS response chunk size
We are migrating our sharepoint 2003 to espace. Though users are informed about the migration, some users are still using the old links. This could be because they have saved the old urls in Favourite sites and trying the same. So we thought of…

Thomas
- 27
- 5