Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
AnswerRe: Go to finally in try block Pin
Rahul Rajat Singh30-Jan-13 22:18
professionalRahul Rajat Singh30-Jan-13 22:18 
GeneralRe: Go to finally in try block Pin
devvvy31-Jan-13 15:46
devvvy31-Jan-13 15:46 
QuestionUnit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:07
MacRuturaj30-Jan-13 7:07 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
Ennis Ray Lynch, Jr.30-Jan-13 7:16
Ennis Ray Lynch, Jr.30-Jan-13 7:16 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:19
MacRuturaj30-Jan-13 7:19 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
Ennis Ray Lynch, Jr.30-Jan-13 7:28
Ennis Ray Lynch, Jr.30-Jan-13 7:28 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
PIEBALDconsult30-Jan-13 7:22
mvePIEBALDconsult30-Jan-13 7:22 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:24
MacRuturaj30-Jan-13 7:24 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
Eddy Vluggen30-Jan-13 7:22
professionalEddy Vluggen30-Jan-13 7:22 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:29
MacRuturaj30-Jan-13 7:29 
AnswerRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
Eddy Vluggen30-Jan-13 7:32
professionalEddy Vluggen30-Jan-13 7:32 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:31
MacRuturaj30-Jan-13 7:31 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
Eddy Vluggen30-Jan-13 7:42
professionalEddy Vluggen30-Jan-13 7:42 
GeneralRe: Unit Conversion Application - C#, IIS, ASP.NET 4.0, WCF, Windows form app Pin
MacRuturaj30-Jan-13 7:49
MacRuturaj30-Jan-13 7:49 
QuestionNLog question Pin
vanikanc30-Jan-13 5:46
vanikanc30-Jan-13 5:46 
AnswerRe: NLog question Pin
Abhinav S30-Jan-13 6:09
Abhinav S30-Jan-13 6:09 
QuestionHttpWebRequest Resolving to the wrong IP Address Pin
Ennis Ray Lynch, Jr.30-Jan-13 4:08
Ennis Ray Lynch, Jr.30-Jan-13 4:08 
AnswerSolved my own problem Pin
Ennis Ray Lynch, Jr.30-Jan-13 5:49
Ennis Ray Lynch, Jr.30-Jan-13 5:49 
QuestionC# app.config permission Pin
classy_dog29-Jan-13 19:11
classy_dog29-Jan-13 19:11 
AnswerRe: C# app.config permission Pin
Richard MacCutchan29-Jan-13 21:15
mveRichard MacCutchan29-Jan-13 21:15 
AnswerRe: C# app.config permission Pin
LokoLuke30-Jan-13 0:35
LokoLuke30-Jan-13 0:35 
AnswerRe: C# app.config permission Pin
Shameel30-Jan-13 3:22
professionalShameel30-Jan-13 3:22 
GeneralRe: C# app.config permission Pin
jschell30-Jan-13 8:07
jschell30-Jan-13 8:07 
QuestionC# linq to sql error Pin
classy_dog29-Jan-13 19:10
classy_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 Pin
Richard MacCutchan29-Jan-13 21:13
mveRichard MacCutchan29-Jan-13 21:13 

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

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