Questions tagged [httpmodule]

ASP.NET HTTP Modules are classes which implement the System.Web.IHttpModule interface.

834 questions
0
votes
1 answer

How to check ASP.NET authorization config from the code dynamically

Working on custom authentication module for ASP.NET WebForms application. Almost finished but have one not implemented issue yet... how to check that authorized user has permission to get access to the page? The application has web.config with: …
Mr. Pumpkin
  • 6,212
  • 6
  • 44
  • 60
0
votes
1 answer

Could not load type xxxx.from assembly , xxx Version=1.0.0.0, Culture=neutral,PublicKeyToken=912f5a0b40d6a709'

I have a httpmodule class library which is implemented as shown in the following link http://www.c-sharpcorner.com/uploadfile/Ashush/creating-a-sharepoint-portal-for-mobile/ I have added the dll to the GAC and created a web.config entry as follows…
Jinxed
  • 738
  • 7
  • 27
0
votes
2 answers

the PostAcquireRequestState event cached but “Context.user” is null

I have an asp.net website. I used form Authentication for authenticate users. I used an httpmodule in my project. This module works fine in visual studio development server. But when I hosted it on IIS7, the PostAcquireRequestState event cached but…
Koorosh Sarfaraz
  • 71
  • 1
  • 1
  • 2
0
votes
1 answer

Is virus scanning files during upload into SQL via HttpHandler or HttpModule a bad idea?

We are implementing a COTS package that allows you to upload files from a Thick-Client - over HTTP Web Services - to SQL 2008, where the files are stored in a VarBinary(Max). The solution will be running on Microsoft based environment. We have a…
0
votes
1 answer

IIS - how best to serve a different version of site to different users

This is not regarding version control for the source. This is a requirement of the business and how it interfaces with various vendors, so I'm trying to work out the best possible way to set this up. Essentially we need to serve a different major…
Nathan Loding
  • 3,185
  • 2
  • 37
  • 43
0
votes
1 answer

How do I get rid of DefaultAuthenticationModule module?

I came to conclusion that I don't need DefaultAuthenticationModule in my application and I want to get rid of it. So I tried the following in web.config section responsible for modules: and when I hit F5 in…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
0
votes
1 answer

Session is null in the new page when transfer the request in the HttpModule

All, I'm trying to implement an HttpModule (IHttpModule) to catch pages request and redirect to a new page. Unfortunately, it seems I can't use the Session in the new page. because the Session is null. Here is my code looks like. please review it…
Joe.wang
  • 11,537
  • 25
  • 103
  • 180
0
votes
1 answer

ASP.NET: HttpModule

How can I check what content has been sent by or buffered into a Response in my HttpModule?
JamesBrownIsDead
  • 73
  • 1
  • 1
  • 5
0
votes
1 answer

How to display request process time in aspx page in asp.net?

How to display request process time in aspx page in asp.net ? I have been tried by http module begin request and end request difference time span in response.write method, but after display request process time in aspx page my web application was…
vsateeshk
  • 1
  • 2
0
votes
2 answers

Friendly Url MVC4 with ImageResizer

I have just installed ImageResizer.Net library to test out resizing feature. I installed it with nuget and after a few seconds it started to run but not the way I like it. I want a neat url rewrite like /images/{width}/{height}/name.ext rather than…
0
votes
1 answer

IIS Custom Duration Logging

My ASP.NET Web Application serves on IIS 7.0 and .NET 4.0 I want to measure total duration for "any request to my web services methods (asmx)" This log needs to include some custom data (for example ID, given by my application). I am planning to…
Ahmet Altun
  • 3,910
  • 9
  • 39
  • 64
0
votes
1 answer

Get url string in PreRequestHandlerExecute in asp.net

I have a class that implements IHTTPModule which handles the event PreRequestHandlerExecute. In the method of that event i want to get the url of the page that executed the call. So for instance if i have a SignOn.aspx page, which then redirects to…
Lucky Luke2
  • 2,056
  • 5
  • 25
  • 32
0
votes
1 answer

ASP.NET MVC3 Custom HttpModule gives error 404

Four our current .aspx website we have a custom HttpModule which does the Authorization (which user can see what). I've rebuilt our old .aspx website to MVC. And because our clients won't all en masse switch to the MVC website I can't use MVC's…
Danny van der Kraan
  • 5,344
  • 6
  • 31
  • 41
0
votes
1 answer

In http module's BeginRequest event, how to find that current request is of MVC ?

In http module's BeginRequest event, how to find that current request is of MVC and not of traditoinal ASP.net ?
0
votes
0 answers

aspx page is rendered as plain text after RewritePath

My ASP.NET application using HTTP Moule same as here. But whenever I try to rewrite path in my Application_PostAcquireRequestState, I am viewing Default.aspx as plain text. Does anybody know why it is rendered like this instead of being rendered as…
Augis
  • 1,903
  • 1
  • 16
  • 21