httpmodule Questions

6

Solved

I could really do with updating a user's session variables from within my HTTPModule, but from what I can see, it isn't possible. UPDATE: My code is currently running inside the OnBeginRequest () ...
Retrad asked 9/11, 2008 at 19:31

8

Solved

Can someone explain in less than 2 sentences the difference between both? Yes, I know google can provide hundreds of answers but not one in 2 clear sentences:)
Nicolas asked 23/6, 2011 at 3:53

2

Solved

In asp.net 4.0 we can use work with the http module to rewrite module like so: protected void Application_BeginRequest(Object sender, EventArgs e) { string CountryCodeInUrl = "", redirectUrl=""; ...
Obeded asked 12/12, 2016 at 13:25

2

Solved

Suppose that both FirstModule and SecondModule handle the Application_BeginRequest event. Will it execute in the order defined in the web.config? <httpModules> <add type="MyApp.FirstModu...
Undermanned asked 11/3, 2010 at 18:5

3

Solved

I use an MVC folder structure where the URL routes happen to match the directory names, eg.: <proj>\My\Cool\Thing\ThingController.cs Needs to be accessible by this url: http://blahblah/My...
Redfaced asked 18/2, 2014 at 0:44

16

Solved

I have an HTTPModule that I use to redirect traffic between a website in my data center and a website running on the Azure platform. This HTTPModule retrieves its redirect rules from Azure Table St...
Ezzo asked 25/11, 2011 at 19:10

3

Solved

Does anyone know of a site or page, or know the order of execution for the events of the HTTPApplication class for HTTPModule event execution? I found the MSDN Documentation for all of the events,...
Jennifferjennilee asked 14/1, 2009 at 0:13

5

Solved

I'm writing an app where 3rd party vendors can write plugin DLLs and drop them into the web app's bin directory. I want the ability for these plugins to be able to register their own HttpModules if...
Farthing asked 27/10, 2008 at 12:59

2

Solved

I'm learnig about Http modules and during last try I received: HTTP Error 500.22 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline ...
Lot asked 26/1, 2016 at 12:7

7

I'm running VS 2008 and .NET 3.5 SP1. I want to implement hit tracking in an HttpModule in my ASP.NET app. Pretty simple, I thought. However, the BeginRequest event of my HttpModule is firing twic...
Alberic asked 2/2, 2010 at 3:3

6

Solved

I’m implementing a simple HttpModule, where I want some code to run when the web application is started. But I’m surprised to find that the Application_Start event I would normally use from Global....
Wasting asked 6/5, 2010 at 7:4

2

Solved

All implementation of IHttpModule I've seen looks following: class HttpCompressionModule : IHttpModule { public void Init(HttpApplication application) { application.SomeEvent += OnSomeEvent; }...
Empathy asked 6/8, 2010 at 13:55

3

Solved

I have read the beautiful article about Asp.Net Page life Cycle http://www.codeproject.com/Articles/73728/ASP-NET-Application-and-Page-Life-Cycle. My understanding is the request passes through MO...
Hawkweed asked 10/11, 2012 at 6:45

1

Solved

I was asked a question in interview that how to implement HTTP module and HTTP handler in ASP.Net MVC. I know that they are used in ASP.Net to write pre-processing logic before the aspx page is cal...
Cyclostome asked 4/11, 2016 at 13:57

3

I've currently got httpErrors setup to deal with 500's here:- <httpErrors errorMode="Custom" existingResponse="Replace"> ...... <remove statusCode="500"/> <error statusCode="500"...
Disoperation asked 20/10, 2016 at 10:13

3

Solved

I am developing an application in asp.net MVC3 and I have the following questions: When should I write an HTTP module and when should I write an action filter?
Ubana asked 16/7, 2012 at 15:29

3

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 busi...
Gutierrez asked 5/11, 2010 at 20:25

6

Solved

I am trying to log the contents of an http request, using an IHttpModule like so: public class LoggingModule : IHttpModule { public void Init(HttpApplication context) { context.BeginRequest += ...
Duggins asked 5/11, 2009 at 7:12

3

Solved

Overview I want to be able to modify request parameters and content to 3rd party web services (ArcGIS Server). This will be used to create a security layer that exists between any client applicatio...
Cammie asked 13/7, 2010 at 18:21

3

Solved

I need to modify the content of certain HttpRequests (SSAS connection strings) in IIS. Basically, I need to add an element to the SOAP contained in the request. My approach so far has been to add ...
Larimore asked 17/6, 2010 at 4:54

2

Solved

How can I access session variable from the HttpModule? I set following session variable in .cs page, which I want access in the HttpModule: Session["username"] = "BLAH"
Clayclaybank asked 18/4, 2012 at 5:47

3

Solved

We're using an Out-of-Process Session Provider (ScaleOut) for an ASP.NET application and we've noticed that when an object that's not correctly setup for de-serialization inadvertently makes its wa...
Geography asked 21/6, 2010 at 15:59

3

Solved

I have the following module public class LowerCaseRequest : IHttpModule { public void Init(HttpApplication context) { context.BeginRequest += new EventHandler(this.OnBeginRequest); } public v...
Wilmott asked 29/5, 2010 at 14:14

2

IIS supports two types of compression: static content compression and dynamic content compression. According to applicationHost.config, they are handled by different modules: DynamicCompressionModu...
Hydnocarpate asked 10/4, 2011 at 6:34

1

Solved

I am implementing the new ASP.NET Identity 2.0 Framework in an existing website uses CA's Identity Minder which primarily uses Request.ServerVariables to power all the controls. What I am trying t...
Chester asked 30/7, 2014 at 17:8

© 2022 - 2024 — McMap. All rights reserved.