Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
AnswerRe: Data Access Layer for C# Pin
Pete O'Hanlon29-Feb-16 22:10
mvePete O'Hanlon29-Feb-16 22:10 
GeneralRe: Data Access Layer for C# Pin
levanduyet_vn29-Feb-16 22:14
levanduyet_vn29-Feb-16 22:14 
GeneralRe: Data Access Layer for C# Pin
Pete O'Hanlon29-Feb-16 22:30
mvePete O'Hanlon29-Feb-16 22:30 
GeneralRe: Data Access Layer for C# Pin
levanduyet_vn29-Feb-16 22:48
levanduyet_vn29-Feb-16 22:48 
AnswerRe: Data Access Layer for C# Pin
V.1-Mar-16 1:02
professionalV.1-Mar-16 1:02 
GeneralRe: Data Access Layer for C# Pin
levanduyet_vn1-Mar-16 1:16
levanduyet_vn1-Mar-16 1:16 
AnswerRe: Data Access Layer for C# Pin
Frank Kerrigan4-Mar-16 3:54
Frank Kerrigan4-Mar-16 3:54 
QuestionAmend connection string from app.config and save back Pin
levanduyet_vn29-Feb-16 19:07
levanduyet_vn29-Feb-16 19:07 
Dear All,
I have tried to amend existing connection string from file App.config and save it back.
The code as following:
<pre lang="c#">
const string DEFAULT_CONNECTION_KEY = "defaultConnection";
ConnectionStringsSection section = (ConnectionStringsSection)config.GetSection("connectionStrings");
                    sConName = ConfigurationManager.AppSettings[DEFAULT_CONNECTION_KEY];
                    config.ConnectionStrings.ConnectionStrings[sConName].ConnectionString = sConCrypt;
config.Save(ConfigurationSaveMode.Full, true);
                    ConfigurationManager.RefreshSection("connectionStrings");

But it show an error.
"An error occurred creating the configuration section handle for log4net: Could not load file or assembly 'log4net' or one of its dependencies. The system cannot find the file specified.
F:\...\bin\Debug\PuFoamControl.vshost.exe.Config line 4"

Anyone can help me.

Thanks,

LVD
AnswerRe: Amend connection string from app.config and save back Pin
Bernhard Hiller29-Feb-16 21:19
Bernhard Hiller29-Feb-16 21:19 
GeneralRe: Amend connection string from app.config and save back Pin
levanduyet_vn29-Feb-16 21:43
levanduyet_vn29-Feb-16 21:43 
QuestionShow panel after a job is completed Pin
Pablo Bozzolo29-Feb-16 6:13
Pablo Bozzolo29-Feb-16 6:13 
GeneralRe: Show panel after a job is completed Pin
Richard MacCutchan29-Feb-16 7:02
mveRichard MacCutchan29-Feb-16 7:02 
GeneralRe: Show panel after a job is completed Pin
Pablo Bozzolo29-Feb-16 7:32
Pablo Bozzolo29-Feb-16 7:32 
SuggestionRe: Show panel after a job is completed Pin
Sascha Lefèvre29-Feb-16 7:48
professionalSascha Lefèvre29-Feb-16 7:48 
GeneralRe: Show panel after a job is completed Pin
Pablo Bozzolo29-Feb-16 8:07
Pablo Bozzolo29-Feb-16 8:07 
GeneralRe: Show panel after a job is completed Pin
Sascha Lefèvre29-Feb-16 8:21
professionalSascha Lefèvre29-Feb-16 8:21 
GeneralRe: Show panel after a job is completed Pin
Pablo Bozzolo29-Feb-16 9:16
Pablo Bozzolo29-Feb-16 9:16 
GeneralRe: Show panel after a job is completed Pin
Mycroft Holmes29-Feb-16 11:56
professionalMycroft Holmes29-Feb-16 11:56 
GeneralRe: Show panel after a job is completed Pin
Richard MacCutchan29-Feb-16 10:42
mveRichard MacCutchan29-Feb-16 10:42 
AnswerRe: Show panel after a job is completed Pin
Luc Pattyn29-Feb-16 17:30
sitebuilderLuc Pattyn29-Feb-16 17:30 
AnswerRe: Show panel after a job is completed Pin
BillWoodruff1-Mar-16 1:00
professionalBillWoodruff1-Mar-16 1:00 
QuestionConditional Mathematical Statements Pin
Member 1226553728-Feb-16 21:39
Member 1226553728-Feb-16 21:39 
AnswerRe: Conditional Mathematical Statements Pin
Pete O'Hanlon28-Feb-16 22:08
mvePete O'Hanlon28-Feb-16 22:08 
AnswerRe: Conditional Mathematical Statements Pin
Sascha Lefèvre28-Feb-16 22:09
professionalSascha Lefèvre28-Feb-16 22:09 
Questionicon/image in datagridview Pin
Any_name_at_all28-Feb-16 1:52
Any_name_at_all28-Feb-16 1:52 

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.