473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory

First a little background: I've written an httphandler to handle wildcard
extensions (i.e., I want to handle all URLs that come in rather than just
URLs w/ a specific file extension so I can give friendly names to various
dynamic web pages). To do this, I've written an httphandler and put it
in the web.config for my webapp (stored in the wwwroot\webapp directory).
It works great for the most part; I get to handle any URLs below my
webapp directory.

The problem is, when I use a URL that references the directory, IIS seems
to be prompting for a username/password (it's set to use anonymous and
Windows authentication). If I turn off Windows authentication, I just
get a 401.3 error code.

I used sysinternal's FileMon program and can see the aspnet process
trying to access \inetpub\wwwroot\webapp and that's why it's getting the
error. If I do a FileMon trace w/ wildcard extensions turned off, it's
the inetinfo process that accesses the \inetpub\wwwroot\webapp directory
instead of the aspnet process. I've tried adding the ASPNET user to
this directory w/ no luck. I've also tried logging in as a real user w/
admin access when the prompt comes up w/ no luck. I've tried adding a
default home document in IIS (e.g., default.aspx) so it should try
loading that if it hits that directory, but it doesn't do it. I put a
breakpoint in my custom httphandler and it never reaches it, so the
problem is definitely happening in the aspnet process; it also happens in
Win2K/XP/2003, so it's not operating system specific. If I access a URL
that would map to any real directory (e.g. localhost/webapp/subdir where
the \inetpub\wwwroot\webapp\subdir directory exists), it also prompts, so
this seems to only happen if the URL maps to a real directory.

Any clues on what I should try next?
Or is this just a bug in ASP.Net? :-(
There's very little documentation on writing wildcard httphandlers...

thanks,

ken
(remove .SPAMGUARD to reply to email)
Nov 19 '05 #1
2 2127
=?Utf-8?B?VmVua2F0X0tM?= <Ve******@discussions.microsoft.com> wrote in
news:C3**********************************@microsof t.com:
I am not very sound in this topic, but anyway you can go through the
following sites


Thanks. Been through those sites already. The closest match was
David Wang's site, but it doesn't apply in this case :-(
ken
Nov 19 '05 #3

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

Similar topics

1
by: Klunk | last post by:
Hi, last week I moved the folder of my Intranet application to another disk of the same server. After this change all the ASP page return this error: Microsoft VBScript runtime error...
2
by: Wanda | last post by:
Hi all, I have a permission denied error when I tried to copy a file from the local directory to another local directory by using the FSO (FileSystem) Set fso =...
0
by: Jeremy | last post by:
I have an ASP.net application which needs to retreive images from multiple remote machines. It is reterieveing images generated by a web cam service on those machines. All of these machines,...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
2
by: Jan Kucera | last post by:
Hi, I have virtual MyFolder/* and MyFolder/MySubFolder/* mapped to an httphandler in the web.config file and all works perfectly on the asp.net development server. However on the IIS6/Win2003 I'm...
4
by: deepa.ravikiran | last post by:
I have created a HttpHandler to intercept *.zip requests, authenticate and authorize user before allowing user to download the file. This works perfectly when I run it from ASP.NET development...
0
by: phil469 | last post by:
I'm having an issue when trying to read a file in a user's homedir from a cgi script. I have a virtual host section in my httpd.conf file which I'll include. The cgi script is a very basic script...
0
by: private.anders | last post by:
Hi David! Really need assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have...
0
by: private.anders | last post by:
Really need your assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.