DefaultCrendentials not working

From: Rich (richard_at_penrose.me.uk)
Date: 07/23/03


Date: 23 Jul 2003 08:54:23 -0700


I have an aspx page which uses a WebRequest object to post some XML to
a standard asp page. Both the aspx and asp pages require NT
autentication. I have added:

<location path="secure">
    <system.web>
      <authorization>
        <deny users="?" />
      </authorization>
    </system.web>
 </location>

To the web.config file for the aspx page and have set IIS to require
NT authentication (with anonymous access turned off) on both the aspx
web application and the asp web site.

When I do the post from the aspx page I set the Credentials for the
WebRequest object to CredentialCache.DefaultCredentials.

I call the aspx page from a cleint app running under a domain account.
If I place the aspx page and the asp page on different physical
machines everything is fine. However, if I put the asp and aspx
applications on the same machine (running under the same instance of
IIS) I start experiencing problems.

Any ideas?

Regards

Rich



Relevant Pages

  • Re: Event handler for a client side OWC component
    ... You do the same thing in aspx as you do in asp ... > possible because a client object cannot fire server side code. ...
    (microsoft.public.office.developer.web.components)
  • Re: Securing Non ASP.Net Files
    ... For both ASP and ASPX pages there are two activities which you might wish to ... In order to ensure that scripts may not be downloaded, ... above and beyond the way IIS will natively treat ASP ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP.NET
    ... The results of your asp page should be the same as your aspx. ... Using the code in a kind of Scripting way inside the HTML code not ... If you use it in the first two ways, than your newsgroup is mostly as ...
    (microsoft.public.dotnet.general)
  • Re: ASP.NET v ASP v CGI - limitations
    ... phrase ASP, then each web page which contains the text asp (gasp, aspire ... when you search aspx this will not happen because aspx appears in less ... > Arguments about cost are not valid. ... > The business model around corporations and the Internet are different at the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: An easy and safe way to convert site with classic ASP (.asp) to ASPX
    ... shopping cart to a dotnet-based one, kind of like to re-write a new one. ... other, is using ASP, I cannot have some pages are using ASP and others ... I need to have them all using the same either ASP or ASPX. ... Environment does support ASPX, and I can develop new ASPX pages ...
    (microsoft.public.frontpage.programming)