Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7609269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:08:00+00:00 2026-05-31T01:08:00+00:00

Basically I am trying to configure Access to a specific Folder on my shared

  • 0

Basically I am trying to configure Access to a specific Folder on my shared hosting and I used this as guide: http://support.microsoft.com/kb/316871

This part of my web.config:

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

  </authorization>
  <authentication mode="Forms">

    <forms name="Authlogin" loginUrl="logon.aspx" protection="All" timeout="60" path="." />

  </authentication>

So if users is unauthorized then he would be redirected to logon.aspx.
This solution works well on visual studio testing server and user get redirected to logon.aspx,but it doesn’t work at all on my shared hosting ( godaddy ).It seems like rules just ignored.
Any ideas how to make it work…or why it doesn’t work on hosting?

EDIT
I have notice what if I request any any of asp pages(ashx,apsx,asmx) then i would be redirected to logon.apsx.But if i would request for any file (html,txt,jpg and ect) then forms authentication would be ignored.
Same thing happens on local IIS 7.5

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:08:01+00:00Added an answer on May 31, 2026 at 1:08 am

    I found the problem and solution.The problem what IIS and ASP.NET controlling only asp.net pages.So to enable IIS to look after all files I made this changes in web.config
    First I added this in system.webserver

    <modules>
          <remove name="FormsAuthenticationModule" />
          <add name="FormsAuthenticationModule"    type="System.Web.Security.FormsAuthenticationModule" />
          <remove name="UrlAuthorization" />
          <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
          <remove name="DefaultAuthentication" />
          <add name="DefaultAuthentication" type="System.Web.Security.DefaultAuthenticationModule" />
    </modules>
    

    This will enable IIS to work with ASP.NET form authentication(It’s how i understand it=)))
    When I added this in same system.webServer

    <security>
          <authorization>
            <remove users="*" roles="" verbs="" />
            <add accessType="Deny" users="?"/>
            <add accessType="Allow" users="*"/>
          </authorization>
    

    I hope my solution would help to any one with same problem

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using htaccess I'm basically trying to forbid access to the page i.e http://example.com ,
I'm trying to basically trying to separate a specific amount of text from the
Trying to configure apache2 to load example.com/forum/ from a different document root, relative to
This is kind of a follow to my other post about Unity (http://stackoverflow.com/questions/3998559/irepository-iservice-unity-in-an-asp-net-mvc-application-reference-question). Basically
I'm basically trying to do this (pseudo code, not valid python): limit = 10
I'm basically trying to do this , but I don't know what T will
I am basically trying to trigger a function if the footer is inside the
I'm basically trying to convert a Unix timestamp (the time() function) to a relative
I'm basically trying to do a dropdown jquery plugin. HTML <script type='text/javascript' src='script.js'></script> <div
I'm basically trying to pass a method to another class to be called later,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.