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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:25:18+00:00 2026-05-25T17:25:18+00:00

Im new to this, so please forgive me. What im doing is deploying my

  • 0

Im new to this, so please forgive me. What im doing is deploying my application onto the server, it works fine on my local machine but im getting errors when I try to hit the server. Here is the error below and my web.config file. I dont know what im doing wrong.

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: 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.

Source Error:

Line 18: <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, 
          PublicKeyToken=B03F5F7F11D50A3A"/>

Line 19: <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, 
          PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
Line 20:        <authentication mode="Forms">
Line 21:            <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
Line 22:        </authentication>



    <configuration>
<connectionStrings>
    <add name="ApplicationServices" connectionString="data  
             source=.\SQLEXPRESS;Integrated  
             Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User 
             Instance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
       <customErrors mode="Off"></customErrors>
    <compilation debug="true" strict="false" explicit="true" 
             targetFramework="4.0">
    <assemblies>
    <add assembly="System.Web.Extensions.Design, 
             Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, 
              PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, 
             PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
    </authentication>
    <membership>
      <providers>
       <clear/>
       <add name="AspNetSqlMembershipProvider" 
                type="System.Web.Security.SqlMembershipProvider" 
                connectionStringName="ApplicationServices"    
                enablePasswordRetrieval="false" 
                enablePasswordReset="true" 
                requiresQuestionAndAnswer="false" requiresUniqueEmail="false" 
                maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" 
                minRequiredNonalphanumericCharacters="0" 
                 passwordAttemptWindow="10" applicationName="/"/>
            </providers>
    </membership>
    <profile>
      <providers>
       <clear/>
        <add name="AspNetSqlProfileProvider"  
                 type="System.Web.Profile.SqlProfileProvider" 
                 connectionStringName="ApplicationServices" applicationName="/"/>
          </providers>
    </profile>
    <roleManager enabled="false">
    <providers>
    <clear/>
     <add name="AspNetSqlRoleProvider"
              type="System.Web.Security.SqlRoleProvider" 
              connectionStringName="ApplicationServices" applicationName="/"/>
    <add name="AspNetWindowsTokenRoleProvider" 
             type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
        </providers>
    </roleManager>
</system.web>
<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

  • 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-25T17:25:19+00:00Added an answer on May 25, 2026 at 5:25 pm

    I seem to recall this happening when you have deployed your application into a sub-folder of an existing site, and it it’s web.config includes a setting that either applies to the entire site/application, and can’t be modified on a per-folder basis

    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level

    I’d play with your

    <system.webServer> 
        <modules runAllManagedModulesForAllRequests="true"/> 
    </system.webServer>
    

    setting. Try moving it to the site’s root web.config and see where that gets you, or remove it entirely.

    Also, see (just from a quick Google)

    Error: allowDefinition='MachineToApplication' beyond application level

    http://geekswithblogs.net/ranganh/archive/2005/04/25/37609.aspx

    ASP.NET IIS Web.config [Internal Server Error]

    http://forums.asp.net/t/1031775.aspx/1

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

Sidebar

Related Questions

Please forgive this rather basic question, but I'm very new to Java and still
I'm really new to programming, so I'm having trouble explaining this -- please forgive.
I'm new to Flash development so please forgive the simplicity of this question... I'm
I am very new to programming, so please forgive me if this question seems
Please forgive my noob-ness on this, but how do I package LAME.exe w/ a
I know this is a very simple question for you experts,but please forgive me.Im
im new to android development so please forgive me if this is an easy
Please forgive me if any of this is wrong -I'm completely new to Java.
I am new to Django and Python, please forgive me if this is a
i am new to Obejctive C, so please forgive me if this is a

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.