Re: wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory
From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 10/07/05
- Previous message: William Stacey [MVP]: "Re: MD5 Hash as Number?"
- In reply to: Ken Yee: "wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory"
- Next in thread: Ken Yee: "Re: wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory"
- Reply: Ken Yee: "Re: wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 06 Oct 2005 15:42:47 -0700
Hello Ken,
what have you set "verify if file exists" in the wildcard mapping?
what the <authentication> mode in web.config?
has the IUSR_ account read access to the directory in question?
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> 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)
- Previous message: William Stacey [MVP]: "Re: MD5 Hash as Number?"
- In reply to: Ken Yee: "wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory"
- Next in thread: Ken Yee: "Re: wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory"
- Reply: Ken Yee: "Re: wildcard extension ASP.Net httphandler gives 401.3 ACL permission denied error on a directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|