« Previous Next »

Thread: Location path won;t work when Anonymous is disabled and windows is enabled in IIS authentication settings

Last post 12-12-2008 12:49 PM by jeff@zina.com. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 12-11-2008, 8:59 AM

    Location path won;t work when Anonymous is disabled and windows is enabled in IIS authentication settings

    Hi All,

    i have folowing setting in asp.net application

    Web.Config - Authentication mode set to "Form"

    IIS Authentication Settings - Anonymous - disabled,Form - enabled (bcoz it is form in config file) and Windows - enabled

    I know it is not a right combination to have both Form and windows authentication enabled in IIS. But still we have managed to perform login against our custom database succesfully.No issues reg this.

     Problem i am facing - i have specified some page called 'Test1.aspx' in location path section of config file. we are calling this page on logout click to perform some operation.Now when server try to access the this 'Test1.aspx' page after session expire (not immdiately,may be 2 min after session expires),server not able find the file.Obviously reason for this is 'Anonymous' in IIS is disabled.I knew reason for problem but i need some solution to resolve issues in this scenario.

    Note :-  Please don;t ask me change settings in IIS and also authentication mode in config.

    please give me solution to acces that file in such scenario.

     Thanks,

  • 12-12-2008, 12:49 PM In reply to

    Re: Location path won;t work when Anonymous is disabled and windows is enabled in IIS authentication settings

    deepak81811:

    Note :-  Please don;t ask me change settings in IIS and also authentication mode in config.

    please give me solution to acces that file in such scenario.

    Check the file/folder permissions.  Unfortunately, if you don't allow anonymous access, there isn't normally an account that can access a file.  The real solution is to allow anonymous and lock out all but the landing page and the file you want to load.  But I'm not asking you to do that...

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
Page 1 of 1 (2 items)
Microsoft Communities