|
i save connectstring warning error: The index being passed in is out of range
[CODE]
public void updateConfigFile(string con)
{
//updating config file
XmlDocument XmlDoc = new XmlDocument();
//Loading the Config file
XmlDoc.Load(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);
foreach (XmlElement xElement in XmlDoc.DocumentElement)
{
if (xElement.Name == "connectionStrings")
{
//setting the connection string
xElement.FirstChild.Attributes[2].Value = con; // error here
}
}
//writing the connection string in config file
XmlDoc.Save(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);
}
[/CODE]
|
|
|
|
|
|
when running the program does not understand why the folder bin\Debug\ always appear 2 files: Myprogram.exe.config (file containing an unencrypted connection string) and Myprogram.vshost.exe.config (containing the string encrypted connection), it normally only files appear Myprogram.exe.config why appear another file ? how can I turndown one file ?
|
|
|
|
|
Myprogram.exe.config is what you distribute with your app.
Myprogram.vshost.exe.config is used when running within Visual Studio (and is NOT needed when you distribute your app).
HOWEVER, you should be building a "release" version (bin\Release) of your app when ready and using the EXE and config file for distribution from there.
Why one is encrypted and not the other is probably due to the way you are testing.
Build a "release" version of your app, run the EXE directly from the bin\Release folder and then check Myprogram.exe.config again.
If you need more info, start here:
http://stackoverflow.com/questions/774187/what-is-the-purpose-of-vshost-exe-file[^]
Most of this stuff is already out there if you just Google it.
|
|
|
|
|
Ok..so create a table in SQL Server with a [varchar](50) primary key and insert 500,000 dummy rows into the table. Now, in SSMS, select all rows from that table and you will see results immediately display in the Results window while the query is still running.
Opening an ADO.NET connection while awaiting an async reader will allow the thread to continue doing *different* work while the query runs, but I want to yield the results from my data layer to a UI layer as SQL Server prepares and marshals them.
Does anyone have any working samples (technology agnostic) or any links they can direct me towards?
"I need build Skynet. Plz send code"
|
|
|
|
|
Figured it out. never mind.
"I need build Skynet. Plz send code"
|
|
|
|
|
hi....
plz help me .....i urgently need code to implement FP Growth Algorithm in C#....mail it to me at
anil.nagar19@gmail.com
|
|
|
|
|
Voted as abuse.
You are asking volunteers that answer questions in their own spare time to do your work. There is no urgency here.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: There is no urgency here
Yes there is!
He has to hand it in to his tutor tomorrow!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Doesn't look like homework to me
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
It's a data mining algorithm that only ever gets used on university courses, AFAIK
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Jacking up the curriculum with useless bullshit.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
How much of the stuff they force-fed you during the last ten years at school have you used in anger since you stopped formal education? Probably as much as I have: little or nothing!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
|
(see signature) SEND THE CODEZ NOWZ!!!!!
"I need build Skynet. Plz send code"
|
|
|
|
|
using System;
namespace MyHomework
{
class Homework
{
static void Main()
{
Console.WriteLine("Hello World!");
ExerciseForTheReader.DoFPAlgorithm();
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Awesome sauce...but I don't care about an FP Algorithm. I need your codes for Skynet.
I know you're holding out on me.
Send code to 69inGCh1pmunks@gmail.com.
Thanks!
"I need build Skynet. Plz send code"
modified 28-Oct-14 19:31pm.
|
|
|
|
|
1) Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know.
2) It may be urgent to you, but it isn't to us. All that your stressing the urgency does is to make us think you have left it too late, and want us to do it for you. This annoys some people, and can slow a response.
3) No. We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Anil, I can help. In what font would you like me to write the code?
/ravi
|
|
|
|
|
Segoe, and make it Teal. It compiles faster.
|
|
|
|
|
I had really expected Comic Sans there
|
|
|
|
|
I'm glad I didn't disappoint. But Wedgie is better.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Comic Sans, or better still Wedgie[^]
A collogue once faxed in his weekly status report in Wedgie. They didn't have a sense of humour.
They had even less the following week when I faxed them a photocopy of the floppy mine was on...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: A collogue once faxed A Cologne wearing colleague?
|
|
|
|
|
It was a few years ago, so I have forgotten what he smelled like...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|