ASP.NET HTTP Modules are classes which implement the System.Web.IHttpModule interface.
Questions tagged [httpmodule]
834 questions
0
votes
1 answer
ASP.NET MVC, NHibernate sessions, and NHibernate events
I'm using (Fluent) NHibernate in an ASP.NET MVC3 project. I'm using the standard approach of opening one NHibernate session per request by implementing a custom HttpModule. The session gets opened in BeginRequest and closed in EndRequest.
I'm…

arknotts
- 454
- 3
- 13
0
votes
1 answer
Outputcache and HttpModule
I have an HTTP module that replaces relative URLs with the URL of our CDN for static content. However, when this module is added to the web.config, it causes our Outputcache to no longer work.
I've tried messing with the order of httpModules in…

ChickenMilkBomb
- 939
- 6
- 18
0
votes
1 answer
HttpModule not working for ajax request
I am having an issue about .net HttpModule.
I create a HttpModule to capture website's request, it can capture all the websites page except the ajax request.
Here is my web.config. Moduler.FilterModuler is what I created.thanks.
`
…

Chris Cheung
- 79
- 1
- 16
0
votes
1 answer
ISAPI extension loads wrong DLL
IIS loads legacy ISAPI extension and IIS module, both use DLL with same name, however these DLLs are different (linked against different versions of thirdparties). So far there should be no problem, each component (extension and module) reside in…

kreuzerkrieg
- 3,009
- 3
- 28
- 59
0
votes
2 answers
HttpModule Native C++ dll in Azure
I would like to run a native httpmodule (c++ 64-bit dll) in windows azure. Firstly is this possible and secondly, what id the best way to go about it?
I have previously used a native dll in azure but wrapped it within a managed c# httphandler which…
0
votes
1 answer
How to intercept and change httprequests with c#
I am developing one webservice using c#.It is possible intercept the client request using Filter(Using HttpModule).But how it is possible to modify the request.I can get request like this
Stream InputStrm = App.Context.Request.InputStream;
i want…

user922834
- 195
- 2
- 6
- 18
0
votes
1 answer
When will my new HttpModule's Init() method fire?
Using event handlers in my Site-scoped feature's Feature Receiver, I'm adding my HttpHandler to my configuration (I'm new to this, so the code is a bit disjointed, as I've found it here and there).
public override void…

lance
- 16,092
- 19
- 77
- 136
0
votes
1 answer
Pre-Existing Script Injection Point
I saw this quote:
ASP.NET uses modules to implement various application features, which
includes forms authentication, caching, session state, and client
script services.
I'd like to know precisely which module it refers to regarding the…

Brent Arias
- 29,277
- 40
- 133
- 234
0
votes
1 answer
How to block ip Ranges using http modules?
How to block Ip ranges using http modules with c# . I have a simple solution but its for single Ip and How can I read IPs from xml file in http modules so that if an IP is there in that file it will be blocked .Here is my code
public class…

HBK
- 67
- 2
0
votes
1 answer
Large File Upload Using HttpHandler or HttpModule?
I have a webform application. It required to be able to upload large file (100MB). I intended to use httpHandler and httpModule to split the file to chunk.
I also had a look at http://forums.asp.net/t/55127.aspx
But it is a very old post and I've…

Dan An
- 424
- 9
- 27
0
votes
1 answer
Http Response Code programmatically
Based on the condition, I want to send a 400 (infact any code other than 200(Status OK)) error code back from my Asp.net page.
if(Failed)
{
Context.Response.TrySkipIisCustomErrors = true;
Context.Response.ClearContent();
…

Microsoft User
- 9
- 3
0
votes
2 answers
How can I programmatically modify an aspx file content before the handler handle it?
The reason I need to modify the content of an aspx (not physically, but change the content in the memory) is because there are certain custom tags I made needs to be parsed to the correct data before the entire aspx is handled by the HttpHandler.
Is…

Lida Weng
- 476
- 6
- 20
0
votes
1 answer
How can you inject objects into non-controller objects using Ninject 3.0 with ASP.NET MVC3
I have an MVC3 project that I am using Ninject to inject an Entity Framework context into. I am using the Ninject package (3.0.0.15), Ninject.MVC3 (3.0.0.6), and Ninject.Web.Common (3.0.0.7). Everything is working really great, except when I try to…

Dan VanWinkle
- 991
- 11
- 20
0
votes
3 answers
Unit testing an ASP.NET MVC 3 application
We have an ASP.NET WebForms application that we're going to convert to be ASP.NET MVC application - one of the reasons is so that we may take full advantage of Unit Testing and TDD.
Our current WebForms application makes heavy use of HttpModules. …

DrGriff
- 4,394
- 9
- 43
- 92
0
votes
1 answer
Insert ASP Tags and UserControls into CMS Content
Here's the "main question" I guess:
Is there a ".NET way" to get at a request very early on (either via HttpHandler or HttpModule) and inject standard asp.net markup, either in the form of standard controls, or user/custom controls, and have the…

FirstDivision
- 1,340
- 3
- 17
- 37