app.config "Could not find schema information" after converting to Visual Studio 2010 / .Net 4.0

55,698

Solution 1

I changed the schema from DotNetConfig to DotNetConfig35 and it took care of the issue. This is available in the properties of the app.config file.

Right clicking the app.config file in solution explorer gives the properties of the file, right clicking in the edit window of the app.config file itself gives the properties of the XML document.

Solution 2

Are you sure the conversion went ok? Maybe the correct target framework wasn't configured. Open your project properties and check if the target framework is actually .NET Framework 4 or .NET Framework 4 Client Profile.

Share:
55,698
kostas.kapasakis
Author by

kostas.kapasakis

I am a game programmer and designer currently working at Rumble Games in the San Francisco Bay area. My passion is designing and programming really fun and creative games, which I have been doing for about as long as I can remember. My portfolio of personal, team, school, and professional projects contains a variety of games ranging from a multiplayer tank arcade game to a game about Matryoshka dolls to a cooperative platformer in which two players must communicate with each other by puppeteering their characters. I am a generalist programmer highly proficient in C++, C#, Python, and Java. I have experience with OpenGL, DirectX, game networking, multithreading, physics engines, user interface implementation and design, AI, pathfinding, level design tools, and iPhone programming. I am also familiar with game engines Unity3D and Panda3D. My past professional experience includes a game engineer job at Schell Games, an internship at Walt Disney Imagineering (where I prototyped new interactive technologies), and two years at Aid Networks (where I wrote firmware, user interfaces, and server software for patient monitoring devices). I have a Master of Entertainment Technology degree from Carnegie Mellon University as well as a B.S. in Computer Science and a B.A. in Theatre Performance from the University of Maryland.

Updated on December 13, 2020

Comments

  • kostas.kapasakis
    kostas.kapasakis over 3 years

    After upgrading my project to Visual Studio 2010 and .Net 4.0, my app.config file generates these messages upon building the project:

    • Could not find schema information for the element 'supportedRuntime'.
    • Could not find schema information for the attribute 'version'.
    • Could not find schema information for the attribute 'sku'.

    Here is my entire app.config file:

    <?xml version="1.0"?>
    <configuration>
      <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
      </startup>
    </configuration>
    

    If I create a new VS2010 project and literally copy/paste the same app.config file, I receive no such messages.

    Obviously these messages are not causing any runtime problems, but they are still annoying and disconcerting.

    How do I fix whatever problem is making these messages appear?

    I see the answer at app.config configSections custom settings can not find schema information, but I see nowhere in the properties list to enter the path to the schema.

    Thanks.