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 6930097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:24:12+00:00 2026-05-27T11:24:12+00:00

Error i got is It is an error to use a section registered as

  • 0

Error i got is

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.  C:\Users\Jangid\Downloads\TestWebSite1\TestWebSite1\Backup\TestWebSite1\Web.config  26

I have hosted a website in a server using ASP.Net 2.0, i have a web.config in the root folder and also one in the Admin folder, but the admin folder is not a virtual directory and i dont want to create.

<authentication mode="Forms">
  <forms loginUrl="Admin/Login.aspx" name=".ASPXFORMSAUTH"/>
</authentication>
<authorization>
  <allow roles="Admins"/>
  <deny users="*"/>
  <deny users="?"/>
</authorization>

But for authentication and login work for Admin folder, i have used ASP.Net Login Control, but this error preventing me to move formward.

And also please can any one give me a link for learning ASP.Net Login Control, Like user who visit Admin folder should be authenticated with a Role as admin,
How can i create a Role and assign to user on a server

  • 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-27T11:24:13+00:00Added an answer on May 27, 2026 at 11:24 am
    <system.web>       
        <authentication mode="Forms"> 
            <forms name="cokiename" 
                loginUrl="./protectedFolder/login.aspx" 
                protection="All" 
            timeout="60" 
            defaultUrl="./protectedFolder/protectedPafe.aspx"/> 
      </authentication> 
    </system.web>
    

    This should be in your main web.config file

    Following goes into your sub directory config

    <configuration> 
    <system.web> 
    
      <customErrors mode="Off"/> 
        <authorization> 
          <deny users="?" /> 
        </authorization> 
    
    </system.web> 
    </configuration> 
    

    protected folder contains the login page, protected pages and the web.config

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

Sidebar

Related Questions

I got this error when I tried to compile an application that includes the
HI while trying to use soapUI, I got error; SOAP RESPONSE FAILED: this is
I got a strange compilation error when I followed the MSDN document to use
I got this error today when trying to open a Visual Studio 2008 project
I got this error when trying to update an image. It was a cross-thread
When I build BlogEngine project, I got this error: It is an error to
I have to use java.util.Calendar in GWT entry point, but I got error while
I have got a news section in my website. I can insert news to
I got error Access Violation when the following code is execute : void NoAction()
GOT error for the following query in MYSQL(version5.1) SELECT year,month,sum(fact_1),sum(fact_2),sum(fact_3),sum(fact_4) from( select year,month,fact_1,fact_2,0 as

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.