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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:43:16+00:00 2026-06-03T16:43:16+00:00

I was originally writing my program for .NET 4.0… however, recently I changed the

  • 0

I was originally writing my program for .NET 4.0… however, recently I changed the target framework for .NET 3.5… the program still works fine, but now I’m running into a rather odd error. In the past, when I built the program, it would generate the .exe and that is it. Now it generates a .exe and a .exe.config.

Should still be fine right? Nope, in the .exe.config file, it has the following code:

<configSections>
    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        ...
    </sectionGroup>
</configSections>

As you can see, it says Version=4.0.0.0 and because of this, when I run the program I get an unhandled exception assembly error. Its pretty easy to fix, I just delete the .exe.config file and all is well. But its starting to become a pain, to do this on each and every build.

What can I do to fix this?

  • 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-06-03T16:43:18+00:00Added an answer on June 3, 2026 at 4:43 pm

    May be it solve your problem. I have found a some how similar question and its answer is here

    Found the answer, delete app.config.

    app.config is automatically created based on settings.settings. Visual
    Studio was not building it, even though it needed to be updated.

    Note: Clean and rebuild doesn’t force visual studio to clean and
    rebuild it

    Deleting it, to force Visual Studio to rebuild, it fixed it.

    Here it is Visual Studio 2010: Properties.Settings broken after retargetting project to .NET Framework 3.5

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

Sidebar

Related Questions

I'm currently rewriting an old VB6 program in C# in the .Net Framework 2.0
I'm writing a program right now which produces four unsigned 32-bit integers as output
I am writing a program in C++ which uses the CLAPACK ATLAS library. However,
I am writing a program that has to copy a sizeable, but not huge
So I'm writing a program to encrypt and decrypt text files but I seem
I'm writing an Excel file recovery program with VB.Net that tries to be a
I just changed a program I am writing to hold my data as numpy
I'm currently re-writing a Vb6 program relying on ADO into C# w/ ADO.NET. I've
I originally started this question in another thread, but that thread was sorta, kinda
I originally setup some conditions using CGRectIntersectsRect for some collision detection which worked fine.

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.