Click here to Skip to main content
       

C#

 
QuestionHttpWebRequest Resolving to the wrong IP Address PinmemberEnnis Ray Lynch, Jr.30-Jan-13 4:08 
AnswerSolved my own problem PinmemberEnnis Ray Lynch, Jr.30-Jan-13 5:49 
QuestionC# app.config permission Pinmemberclassy_dog29-Jan-13 19:11 
AnswerRe: C# app.config permission PinmvpRichard MacCutchan29-Jan-13 21:15 
AnswerRe: C# app.config permission PinmemberLokoLuke30-Jan-13 0:35 
AnswerRe: C# app.config permission PinmemberShameel30-Jan-13 3:22 
GeneralRe: C# app.config permission Pinmemberjschell30-Jan-13 8:07 
QuestionC# linq to sql error Pinmemberclassy_dog29-Jan-13 19:10 
In a C# 2010 windows application, I am getting the following error message:
 
"The connection property in the Application Settings file is missing or incorrect. The connection string from the .dbml file has been used in its place".
I am also getting the warning message: warning CS0618: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete,
it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings".
 
What I am trying to do is obtain the connection string information from the app.configuration file instead from the app settings file.
 
To accomplish this goal I am chanigng the *designer.cs to use the following code to obtain the connection string information:
 base(ConfigurationManager.ConnectionStrings["DEVConnectionString"].ConnectionString, mappingSource)
 
The app.configuration file looks like the following:
 <connectionStrings>
    <add name="DEVConnectionString" connectionString="Data Source=dev2008;Initial Catalog=DEV;Integrated Security=True"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
The above code works fine when I setup the code initially.
However once I reopen the soltuion file, I get the message listed above,
""The connection property in the Application Settings file is missing or incorrect.
The connection string from the .dbml file has been used in its place".
 
To solve this problem, I was trying to do the following steps:
1.Step 1: Right click on the .DBML file and select "Run Custom Tool".
2.Step 2: Set "Application setting = false" in the connecton properties of your DataContext.
3.Step 3: press "Save All".
 

The problem with the above solution is once I selected "Run Custom Tool", nothing happened. There was nothing for me to select.
 
Thus can you tell me and/or show me in code how to solve this problem?
AnswerRe: C# linq to sql error PinmvpRichard MacCutchan29-Jan-13 21:13 
QuestionReference confusion Pinmemberyudhistira dewanata29-Jan-13 18:57 
AnswerRe: Reference confusion PinmvpAbhinav S29-Jan-13 19:01 
GeneralRe: Reference confusion PinmemberShameel30-Jan-13 3:26 
QuestionSerial Port Errors, User Messages PinmemberC-P-User-329-Jan-13 6:23 
AnswerRe: Serial Port Errors, User Messages Pinmemberjibesh29-Jan-13 11:57 
QuestionDynamic Reference to Dll Path PinmemberMember 461637929-Jan-13 1:53 
AnswerRe: Dynamic Reference to Dll Path PinmemberAlan N29-Jan-13 3:29 
AnswerRe: Dynamic Reference to Dll Path Pinmemberjschell29-Jan-13 13:50 
Question.NET Brush serialization/WYSIWIG [Solved] [modified] PinmemberAmlanjyoti Saikia29-Jan-13 0:32 
AnswerRe: .NET Brush serialization/WYSIWIG PinmemberBrisingr Aerowing29-Jan-13 3:12 
GeneralRe: .NET Brush serialization/WYSIWIG PinmemberAmlanjyoti Saikia30-Jan-13 1:54 
Questionhow to check the avaialbility of username from database PinmemberSanthosh V.T28-Jan-13 20:51 
AnswerRe: how to check the avaialbility of username from database PinmvpOriginalGriff28-Jan-13 21:17 
AnswerRe: how to check the avaialbility of username from database PinmemberPIEBALDconsult29-Jan-13 3:59 
AnswerRe: how to check the avaialbility of username from database PinmvpMarcus Kramer29-Jan-13 5:11 
QuestionLearning C# .Net - From where to start.? Pinmembermbatra3128-Jan-13 19:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 30 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid