|
Yeah, I will definitely what to avoid picking up the 'finished article' if possible. (fingers crossed for a clean landing then )
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
You definitely made a splash with that reply. The full meaning is trickling through my brain now
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
|
Done. Where do I send the test evidence?
In future though, I must insist on a fully laid out spec - I work best from storyboards and use cases. If you can supply a user for regular inspections and quality audits, then so much the better.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Pete O'Hanlon wrote: Where do I send the test evidence?
Any government agency you wish to
Pete O'Hanlon wrote: In future though, I must insist on a fully laid out spec - I work best from storyboards and use cases
Not sure about storyboards, but I'm sure you can get some video footage on the web somewhere
Pete O'Hanlon wrote: If you can supply a user for regular inspections and quality audits
There will only be a single log, thou it may break down into smaller logs in the pipeline stages
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote:
Any government agency you wish to
Send it to the UK - we can store it in the giant cesspit they call Parliament
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
excellent idea, then it can start to claim expenses like all it's closely related predecessors
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
"VERY URGENT!!!!!!"
Not to me it isn't! I couldn't give a sh............
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Now what does this has to do with C#?
"Rules are rules."
जय हिंद
|
|
|
|
|
fair point
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote: I URGENTLY NEED A POO
I don't give a crap what you need
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
I am encountering a problem while reading config files. The scenario is like this, I have two programs. Program A reads its configuration from a config file and program B is only used to modify the contents of the config file which A reads. The name of the config file is email.config. It is in the same directory in which program A & B resides.
The problem is that I get path of a file for attachment using open file dialog in program B. If the path points to a file in the same directory, program B works perfect while saving the data back to the config file! But if it points to a file outside the directory it throws an exception of type System.NullReferenceException.
I have placed comments in the code where the exception occurs.
Here is the code
static readonly string configFileName = "email.config";
private void saveBtn_Click(object sender, EventArgs e)
{
try
{
string serverAddr = serverAddressTxtBox.Text;
string port = portTxtBox.Text;
bool ssl = sslRadioYes.Checked == true ? true : false;
string senderAddr = senderTxtBox.Text;
string password = passwordTxtBox.Text.Length != 0 ? Encrypt(passwordTxtBox.Text) : "";
string subject = subjectTxtBox.Text;
string attachment = attachTxtBox.Text;
string messageBody = msgBodyTxtBox.Text;
var configMap = new ExeConfigurationFileMap { ExeConfigFilename = configFileName };
Configuration externalConfig = ConfigurationManager.OpenMappedExeConfiguration(configMap, ConfigurationUserLevel.None);
externalConfig.AppSettings.Settings["ServerAddress"].Value = serverAddr;
externalConfig.AppSettings.Settings["Port"].Value = port;
externalConfig.AppSettings.Settings["SSL"].Value = ssl.ToString();
externalConfig.AppSettings.Settings["Sender"].Value = senderAddr;
externalConfig.AppSettings.Settings["SenderPassword"].Value = password;
externalConfig.AppSettings.Settings["Subject"].Value = subject;
externalConfig.AppSettings.Settings["AttachmentPath"].Value = attachment;
externalConfig.AppSettings.Settings["Body"].Value = messageBody;
externalConfig.Save(ConfigurationSaveMode.Full);
Application.Exit();
}
catch (System.Exception ex)
{
MessageBox.Show("Error: " + ex.Message);
Application.Exit();
}
}
|
|
|
|
|
What object is null? Is it externalConfig, externalConfig.AppSettings or configMap? What format is your external path in? Have you escaped the backslashes correctly in your external path?
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
The externalConfig.AppSettings.Settings collection is null, it doesn't have any keys loaded.
|
|
|
|
|
Well, I configured it out myself after debugging for almost 5 hours, Damn!
The problem was when I used OpenFileDialog to get the file path, it changed the current directory to the one which is selected in the dialog, so the program couldn't find the config file. All I did was to set the RestoreDirectory property of OpenFileDialog to true and *poof* it worked
|
|
|
|
|
HI
I have three tables
1. Categorys (ID, Name)
2. Definitions (ID, Name, CategoryID)
3. Versions( ID, Name, DefinitionID)
I have generated three objects using EDM
1 Cagegorys
Navigation (Definition)
2. Definitions
Navigation (Category, Version)
3. Versions
Navigation (Definition)
I have following problems
1. I want to update the category of a version
2. I want to get all version against a specific Category
I need Code in C#.Net or VB.Net
|
|
|
|
|
I need a Ferrari. It can be red or yellow.
|
|
|
|
|
Unlucky, I have a blue one I'm trying to give away
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote: Unlucky, I have a blue one I'm trying to give away
I'm not so fussy. I'll take it.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Sorry... just my dreams speaking out loud again
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Member 3374813 wrote: I need Code in C#.Net or VB.Net
Two things:
1. There isn't such a thing as C#.NET - it's C# and it targets the .NET framework.
2. I don't work for you, so why should I write code for you?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Please do not joke. I need it urgent
|
|
|
|
|
Member 3374813 wrote: Please do not joke. I need it urgent
He isn't joking. If you want something you need to be polite. The word "urgent" is a sure way not to get help because it is rude and this is a voluntary forum. No one gets paid to post here. If you need help urgently then you can get paid for support that will answer your questions in a timely manner set out by the terms of service.
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
Member 3374813 wrote: Please do not joke. I need it urgent
This site is not good for urgent queries. I'll recommend you rentacoder[^] for that!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
It's no joke. I don't work for you, and presumably you won't be paying me, so why should I write your code for you? If your need is that great, consider hiring a codemonkey off rentacoder, and as far as the urgency goes, this doesn't even make it into my top 500 things to care about today list. It's only urgent to you - not me.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|