appSettings Configuration Error from FolderBrowserDialog at other

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm getting the following error message when I run my C# Window Application
from other PC (not my development machine). Can someone tell me how to
correct this appSettings Configuration problem?
Thanks, Alpha

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: The key 'fbdLogFolderPath.SelectedPath'
does not exist in the appSettings configuration section.
at System.Configuration.AppSettingsReader.GetValue(String key, Type type)
at VMS.dlgLogFilePath.InitializeComponent()
at VMS.dlgLogFilePath..ctor(SqlConnection con)
at VMS.MaintDued.menuItem9_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
 
I think the error is pretty descriptive. You are looking for a key in
your app.config file which isn't there. Did you move your config file to
the new machine you are running the program from?

Hope this helps.
 
This is the first application I'm developing in C#.net. I didn't know about
copying the config file with the .exe file. I did that and it works great
now. Thank you very much for your help.

Alpha

Nicholas Paldino said:
I think the error is pretty descriptive. You are looking for a key in
your app.config file which isn't there. Did you move your config file to
the new machine you are running the program from?

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Alpha said:
I'm getting the following error message when I run my C# Window
Application
from other PC (not my development machine). Can someone tell me how to
correct this appSettings Configuration problem?
Thanks, Alpha

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: The key 'fbdLogFolderPath.SelectedPath'
does not exist in the appSettings configuration section.
at System.Configuration.AppSettingsReader.GetValue(String key, Type
type)
at VMS.dlgLogFilePath.InitializeComponent()
at VMS.dlgLogFilePath..ctor(SqlConnection con)
at VMS.MaintDued.menuItem9_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top