Re: why do .asp files prompt for login but .htm files do not?

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 11/15/05


Date: Mon, 14 Nov 2005 17:57:07 -0800

Well, for .htm page, IIS just opens that file and sends it back -- so if the
user credentials are all good, this should just succeed.

For .asp page, it could run code to do other things -- like talk to a DB to
authenticate users, or read files from a remote UNC share -- and some of
those other things may not be possible given the authenticated user
credentials -- so you could get 401 access denied and browser ends up
prompting for login.

In other words, there is a good reason why people ask this question and get
no response -- because as-stated, it is really ambigous and not possible to
answer without more details.

Unfortunately, people are usually pretty bad about providing details and
since this is a community supported on everyone's own free time, no one is
obligated to solve your problem. So, it is to your best advantage to do your
homework and make the problem so attractive that people can't help but help
you out...

-- 
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"mushu" <tim.m.valdez@gmail.com> wrote in message
news:1132004889.746492.46310@z14g2000cwz.googlegroups.com...
IIS 5.0 in a domain. IIS has Basic & Integrated selected, NOT
anonymous. All users have I.E. browser. All users are members of the
same domain. IIS Basic Auth MMC section has the correct domain entered.
There is no global.asa file in the directory. All links in the .asp
page have been validated and checked to ensure that they exist and have
the correct ACL's.
I'm wondering why the .asp pages are prompting for login but the .htm
pages are not. I searched but was unable to find any solution to this
question, however I see that others have asked it before...just no
responses.
TIA!


Relevant Pages

  • Re: IIS 6.0 - Cannot update static HTML pages
    ... Kit (Chapter 7 Web Server Scalability). ... You can get the IIS Res Kit from: ... The application creates static .htm pages ...
    (microsoft.public.inetserver.iis)
  • Re: My htm pages work but my asp pages dont
    ... Please also include any error message that you can find on the webpage ... Kristofer Gafvert - IIS MVP ... It uses htm and asp pages. ...
    (microsoft.public.inetserver.iis)
  • .ASP pages wont post.
    ... When I use a .htm page as the default document in IIS, ... doc to an .ASP page, the site just shows a blank white ... supporting .ASP??? ...
    (microsoft.public.win2000.advanced_server)
  • Re: Https Redirects with IIS?
    ... .HTM is processed as a static file is because of the .ASP ScriptMap. ... by IIS). ...
    (microsoft.public.inetserver.iis)
  • Re: asp page from htm page
    ... If you have access to the script mappings you can map .htm to be processed ... > I do have a number of admin capabilities on the host server via the> control pannel. ... > I'm guessing from you're answer that on the IIS admin application you can> set IIS to recognize ASP code in an htm file...? ... >> Well, for one thing, the information you're looking for is probably in>> the IIS logs - however it IS possible to run ASP code in a file marked ...
    (microsoft.public.inetserver.asp.general)