The value for the property "Settings Property Name" is not valid for the current language.

ASP.NET, Linq, Visual Studio Add comments

You might also get a related error when building your ASP.NET project with a Linq to SQL class:

Build failed due to validation errors in myfile.dbml.  Open the file and resolve the issues in the Error List, then try rebuilding the project.

This issue can be resolved by removing all dots from the connection string key in web.config, see here, so

<connectionStrings>
        <add name=”MyApp.Properties.Settings.MyConnectionString” connectionString=”blah”/>
    </connectionStrings>

becomes

      <connectionStrings>
      
 <add name=”MyConnectionString” connectionString=”blah”/>
    </connectionStrings>

Then the build should succeed. If you then reset the connection string key to the one with dots and it will still build but you’ll get this message

The connection property in the web.config file is missing or incorrect. The connection string from the .dbml file has been used in its place.

upon opening the dbml file and the “dotless” connection string will be added to your web.config.

So Linq to SQL doesn’t like the dotted connection string key for some reason.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

4 Responses to “The value for the property "Settings Property Name" is not valid for the current language.”

  1. Ashura Says:

    Thanks a lot, it works well !

  2. Huyvu Says:

    Thanks you very much . i am looking it .

  3. Edulliset Lennot Says:

    hehehhe ei paha sit ollenkaan :D

  4. Arminda Membreno Says:

    Great Blog I love the lay out and the color scheme is it possible to get a copy of your theme?

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in