CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 10/20/2005 1:38:48 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 32 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
ronliu2k
Asp.Net User
HttpModule trigger all file types10/20/2005 1:38:48 AM

0/0

I have a httpmodule to handle authentication, however, it seems that all file types including .aspx, .js, .acx, .gif will trigger this httpmodule. Could anyone know how to avoid other file types?

In my web.config, I wrote:

  <httpModules>
   <add type="Web.AuthenticationModule" name="AuthenticationModule"/>
  </httpModules>

  <authentication mode="Forms">
   <forms name=".FormAuthCookie" loginUrl="~/Security/Login.aspx" protection="All" timeout="30" path="/"/>
  </authentication>
  <authorization>
   <deny users="?"/>
  </authorization>

Thanks in advance!!!

Ron
ronliu2k
Asp.Net User
Re: HttpModule trigger all file types10/20/2005 2:31:58 AM

0/0

Hi:

I found this issue is very tricky.

In VS2005 built-in web server, it will trigger all file types, gif, js, ...

In IIS, it will only trigger .aspx and ~/WebResource.axd, I really don't what is the ~/WebResource.axd comes from?

So My questions so far is following:

1. How can I config the VS2005 build-in web server and let it avoid other file types? (This one is nice to solve)

2. How can I avoid ~/WebResource.axd in IIS?

Thanks

Ron

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
RadControls for ASP.NET: A Step By Step Learning Guide Authors: unknown, Pages: 0, Published: -1
Programming Microsoft ASP.NET Authors: Dino Esposito, Pages: 1165, Published: 2003
ASP.NET AJAX UpdatePanel Control Authors: Bertrand Le Roy, Matt Gibbs, Pages: 0, Published: 2007
ASP. NET V. 2. 0-the Beta Version: The Beta Version Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 620, Published: 2004

Web:
Rahul Soni's blog : How to use httpModules to troubleshoot your ... Jul 13, 2008 ... NET:How to write error messages into a text file using a simple httpModule .... ASP.NET:How to write error messages into a text file using a ... Jul 18, 2008 ... HttpHandler or HttpModule for file upload, large files, progress ... Only trigger if the request is of type 'multipart/form-data' if(application. ... Get all the other data to be written to file if available if(!request. ...
HttpModule::OnExecuteRequestHandler : IIS.net That link talks about mapping all *.php request types to the FastCGI module. You have the liberty of mapping your own file type (say *.my) ...
CodeProject: ASP.NET HttpModule for handling session end with ... Nov 2, 2007 ... The code consists of a HttpModule called SessionEndModule , which needs to be included in the project via the web.config file. ...
Rahul Soni's blog : ASP.NET:How to write error messages into a ... Jul 18, 2008 ... You can save the downloaded file to the bin folder of your web application and add ... HttpModule and upload files - bytes Nov 19, 2005 ... Only trigger if the request is of type 'multipart/form-data' ... 2) In this form it works so: when a user try to upload file morethan 0,1 Mb ...
Coding Horror: Throwing Better .NET Exceptions with SOAP and HTTP Oct 17, 2004 ... I figured if I was going to implement a HttpModule, I might as well bite the ... (file logging, email, event log, etc) are all the same. ...
Inside Microsoft: ASP.NET Authentication Options - Part 2 Then we’ll add the HTTP Module to the web.config file. HttpModule and upload files May 15, 2005 ... Only trigger if the request is of type 'multipart/form-data' ... This is a nice feature to redirect users if they upload a file ...




Search This Site:










retrieving emails from smtp

any suggestion on right tag format to create email template, thanks

couple of things

improve gridview performance

can i use a class for this kind of code?

request querystring web service

password and confirm password fields

gridview w/datatable: deleting a row

web service buisness layer

file upload classes

how to get start to build a web chat app.

vs undoes my changes :-(

couldn't access localhost

asp.net, reporting services and 'new role assignment'

can i programatically influence the webusercontrol to appear on page

business logic class refactoren

proper expression syntax question

datagrid with hyperlink column

asp.net event

declaring sqlparameter and assigning value on same line

dropdownlist containing distinct entries from a specific column in db

fastest way to add table rows dynamically

w3wp.exe

hover property for leaf node

cloning of a site

updating an unbound control

list of ideas...

how to refresh a page after updating a record from other page?

listbox +array+object ???

smart navigation - paneled forms

  Privacy | Contact Us
All Times Are GMT