473,513 Members | 2,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't make forms authentication for non-ASPX files work

In my web app, I want to secure not only .aspx files, but also .htm files.
From what I've read, I have to jump through some hoops to protect the .htm
files.

In IIS, I right clicked on the default web site and clicked on the ISAPI
Filters tab. I added ".htm" and chose
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp net_isapi.dll" as the
executable.

I then added the following in the Web.config within the system.web tags:

<httpHandlers>
<add path="*.htm" verb="*" type="System.Web.StaticFileHandler"
validate="true" />
</httpHandlers>

But it didn't work. I have no idea if what I did was right, but obviously
it wasn't. Can someone please help.

Thanks,
Ron
Apr 11 '06 #1
1 973
Odd, a protected website's images folder of mine doesn't show an image
unless i put a webconfig allow * in the images dir.

So?
"Ronald S. Cook" <rc***@westinis.com> schreef in bericht
news:eK**************@TK2MSFTNGP03.phx.gbl...
In my web app, I want to secure not only .aspx files, but also .htm files.
From what I've read, I have to jump through some hoops to protect the .htm
files.

In IIS, I right clicked on the default web site and clicked on the ISAPI
Filters tab. I added ".htm" and chose
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp net_isapi.dll" as the
executable.

I then added the following in the Web.config within the system.web tags:

<httpHandlers>
<add path="*.htm" verb="*" type="System.Web.StaticFileHandler"
validate="true" />
</httpHandlers>

But it didn't work. I have no idea if what I did was right, but obviously
it wasn't. Can someone please help.

Thanks,
Ron

Apr 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1468
by: Kevin | last post by:
Is using forms authentication any less secure than using one of the more secure IIS authentication methods? I am wanting to authenticate against credentials in a database. I see two ways of doing this. The first is through forms authentication and trying to encrypt the credential data being transmitted over the network. The other is...
2
1650
by: Brett Porter | last post by:
Relatively new to ASP.Net but have a strange problem. My site uses forms authentication for a large administration section however after the user logs in each page they subsequently click on brings up a basic authentication dialogue box. Clicking cancel will still allow the user to view the page but this quickly becomes very annoying. ...
1
975
by: Terry Olsen | last post by:
I'm new at VB/ASP.NET. I'm creating a web site that uses authentication. I've got the "create account" and "login" pages working. But how do I make the user data available to all the web pages and keep someone from linking directly to a page without going through the login page? Also, all users have a domain account. Is it possible to...
2
1511
by: Vaibhav Gadodia | last post by:
Hello, I am trying to build an application which has forms authnetication enabled. I have a non-persistent authentication cookie which is exactly what i want. The problem is when i use two independent browser windows to access the application. Both of them require authentication. Is there any way where i have to login only once from a...
6
1411
by: dhnriverside | last post by:
Hi there I'm using Windows Authentication to automatically recognise users in my web app. However, I want directory to be password protected, so if they try to visit the page in there, they MUST enter their password in a Windows Login style popup (FOrms AUthentication). I think I need to out another web.config in the directory with...
0
1092
by: abhijit | last post by:
hi, I am facing a strange forms authentication problem in IE 5.0 browser in MAc OS X 9.5 I could not test it in safari. this code: public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {
1
1068
by: Paul Aspinall | last post by:
Hi I have an application which will be used on a company Intranet, but will also be used by some external users (via Extranet). I want to implement Integrated authentication for the company employees, but any 'non-authenticated' users (ie. externals), must logon via Forms authentication. Whats the best way of doing this with ASP/.NET 2.0??...
3
3543
by: bob.abrahamian | last post by:
Hi All. I found several threads about this specific issue here, but could not find a solution to my specific problem. Most of the threads suggested that there would be a difference between launching two separate IE processes and starting two windows in the same IE process (e.g. Control-N). However, I am having this problem with the two...
5
2333
by: Nalaka | last post by:
Hi, I have a asp.net application with forms authentication enabled. Users create private (database driven) messages (pages; like a message board) that is only viewed by logged in users. Now I need to give the users the ability to publish these messages to the public (if they decide the content is public safe). Question is... is there a...
8
5161
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
Is this possible? I have 3 forms frmGrandparent, frmParent & frmChild. Can frmGrandparent do a frmParent.ShowDialog() and then (while frmParent is open) do a frmChild.ShowDialog(). At the end of the day frmChild should be the topmost form and the focus should be on it. -- L. A. Jones
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.