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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:29:43+00:00 2026-05-23T03:29:43+00:00

<compilation debug=false targetFramework=4.0> I get this error while that line is red: Parser Error

  • 0
   <compilation debug="false" targetFramework="4.0">

I get this error while that line is red:

Parser Error Message: Sections must only appear once per config file.  See the help topic <location> for exceptions.

I thought I was repeating something in the machine config file too, then i went to search for a config attribute and found this:

                <section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=****" requirePermission="false"/>

I tried to delete it and it cause problems so I put it back again..

What is causing that error?

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>

  <system.net>
    <mailSettings>
      <smtp from="example@example.com">
        <network host="****" enableSsl="true" defaultCredentials="false" port="587" userName="****" password="****"/>
      </smtp>
    </mailSettings>
  </system.net>

  <connectionStrings>
    <clear/>
    <add name="SqlState" connectionString="Data Source=****;DataBase=****;Integrated Security=True" providerName="System.Data.SqlClient"/>
    <add name="YourGuruDB" connectionString="Data Source=****;Initial Catalog=****;Integrated Security=True"/>
    <add name="modelConnectionString" connectionString="Data Source=****;AttachDbFilename='****';Integrated Security=True;User Instance=True;Trusted_Connection=Yes;" providerName="System.Data.SqlClient"/>
  </connectionStrings>

  <system.web>

    <sessionState mode="SQLServer" sqlConnectionString="SqlState" allowCustomSqlDatabase="true" cookieless="false" timeout="20"/>
    <compilation debug="true"/>

    <authentication mode="Forms">
      <forms name=".MyCookie" loginUrl="~/Registration.aspx" protection="All" timeout="30" path="/">
        <credentials passwordFormat="MD5">
          <user name="****" password="****"/>
        </credentials>
      </forms>
    </authentication>

    <authorization>
      <deny users="?"/>
      <allow users="*"/>
    </authorization>

    <roleManager enabled="true" defaultProvider="MyRoleProvider">
      <providers>
        <clear/>
        <add name="MyRoleProvider" applicationName="/" connectionStringName="modelConnectionString" type="System.Web.Security.SqlRoleProvider"/>
      </providers>
    </roleManager>

    <membership defaultProvider="MyMembershipProvider">
      <providers>
        <clear/>
        <add name="MyMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="modelConnectionString" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" enablePasswordReset="true" maxInvalidPasswordAttempts="1000" passwordAttemptWindow="4000" enablePasswordRetrieval="true" requiresUniqueEmail="false" passwordFormat="Encrypted" applicationName="/WebSite10"/>
      </providers>
    </membership>


    <machineKey validationKey="****" decryptionKey="****" validation="SHA1" decryption="AES"/>
    <compilation debug="false" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

      </assemblies>

    </compilation>
  </system.web>
</configuration>
  • 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-23T03:29:45+00:00Added an answer on May 23, 2026 at 3:29 am

    You’ve got two compilation tags in your web.config:

    <sessionState mode="SQLServer" sqlConnectionString="SqlState" allowCustomSqlDatabase="true" cookieless="false" timeout="20"/>
    <compilation debug="true"/>
    

    and the one you originally posted.

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

Sidebar

Related Questions

I have changed my ASP.NET MVC web.config settings to debug=false: <system.web> <compilation debug=false targetFramework=4.0>
When I publish my ASP.NET site in RELEASE mode, and set compilation debug=false, will
You get a compilation error if you define the string parameter to have a
I get the following compilation error: error: expected `;' before 'it' Here's my code:
I get the following compilation error with the following source code: Compilation Error: Type
I get the following compilation error fatal error C1189: #error : ERROR: Use of
i have a web.config file that looks like this: <?xml version=1.0?> <configuration> <system.web> <compilation
I need a conditional compilation switch that knows if I am compiling for the
I have a post-compilation step that manipulates the Java bytecode of generated classes. I'd
C++ guarantees that variables in a compilation unit (.cpp file) are initialised in order

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.