473,548 Members | 2,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

appSettings Configuration Error from FolderBrowserDi alog at other

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.InvalidO perationExcepti on: The key 'fbdLogFolderPa th.SelectedPath '
does not exist in the appSettings configuration section.
at System.Configur ation.AppSettin gsReader.GetVal ue(String key, Type type)
at VMS.dlgLogFileP ath.InitializeC omponent()
at VMS.dlgLogFileP ath..ctor(SqlCo nnection con)
at VMS.MaintDued.m enuItem9_Click( Object sender, EventArgs e)
at System.Windows. Forms.MenuItem. OnClick(EventAr gs e)
at System.Windows. Forms.MenuItemD ata.Execute()
at System.Windows. Forms.Command.I nvoke()
at System.Windows. Forms.Control.W mCommand(Messag e& m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
at System.Windows. Forms.Container Control.WndProc (Message& m)
at System.Windows. Forms.Form.WndP roc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

Nov 17 '05 #1
2 3362
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]
- mv*@spam.guard. caspershouse.co m

"Alpha" <Al***@discussi ons.microsoft.c om> wrote in message
news:75******** *************** ***********@mic rosoft.com...
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.InvalidO perationExcepti on: The key 'fbdLogFolderPa th.SelectedPath '
does not exist in the appSettings configuration section.
at System.Configur ation.AppSettin gsReader.GetVal ue(String key, Type
type)
at VMS.dlgLogFileP ath.InitializeC omponent()
at VMS.dlgLogFileP ath..ctor(SqlCo nnection con)
at VMS.MaintDued.m enuItem9_Click( Object sender, EventArgs e)
at System.Windows. Forms.MenuItem. OnClick(EventAr gs e)
at System.Windows. Forms.MenuItemD ata.Execute()
at System.Windows. Forms.Command.I nvoke()
at System.Windows. Forms.Control.W mCommand(Messag e& m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
at System.Windows. Forms.Container Control.WndProc (Message& m)
at System.Windows. Forms.Form.WndP roc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

Nov 17 '05 #2
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 [.NET/C# MVP]" wrote:
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]
- mv*@spam.guard. caspershouse.co m

"Alpha" <Al***@discussi ons.microsoft.c om> wrote in message
news:75******** *************** ***********@mic rosoft.com...
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.InvalidO perationExcepti on: The key 'fbdLogFolderPa th.SelectedPath '
does not exist in the appSettings configuration section.
at System.Configur ation.AppSettin gsReader.GetVal ue(String key, Type
type)
at VMS.dlgLogFileP ath.InitializeC omponent()
at VMS.dlgLogFileP ath..ctor(SqlCo nnection con)
at VMS.MaintDued.m enuItem9_Click( Object sender, EventArgs e)
at System.Windows. Forms.MenuItem. OnClick(EventAr gs e)
at System.Windows. Forms.MenuItemD ata.Execute()
at System.Windows. Forms.Command.I nvoke()
at System.Windows. Forms.Control.W mCommand(Messag e& m)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
at System.Windows. Forms.Container Control.WndProc (Message& m)
at System.Windows. Forms.Form.WndP roc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
15461
by: hazz | last post by:
I have spent more time than I care to admit trying to track down a very subtle error. Here is my app's xx.exe.config file. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appsettings> <add key="PasswordProvider" value="fudge" /> </appsettings>
3
4876
by: Celebrate | last post by:
My application works fine when I run it locally but when I transfer it to our NEW Windows 2003 Web Edition server, I get a strange error. I've isolated the problem to when I issue a ConfigurationSettings.AppSettings call. My guess is, there's a security setting that I'm missing on my Server but what?? I've spend hours trying to debug this;...
5
1639
by: Eric Sabine | last post by:
the second I add <appSettings> </appSettings> to my web.config file (just after the <system.web>), my web application will no longer run. I get an error that reads: Error while tyring to run projectL Unable to start debugging on the web
3
1483
by: Rudy | last post by:
Hello All! I'm just trying to set my SQL connection String in the app setting of my Web Config. I got it to work on one page, but my code is a little diffrent for another page that has a little more code and stuff goin on. This is my current connection string.. Protected Const SQL_CONNECTION_STRING As String = _ "Data...
2
9575
by: Fuehner | last post by:
Everyone-- I installed the .NET 2.0 framework on a server that also has version 1.1 installed. A few of my applications override the "appSettings" section in the web.config with a custom config handler. This all worked fine prior to installing the 2.0 framework but, now I get the following error... Section or group name 'appSettings'...
2
8170
by: mahesh.anjani | last post by:
hi i have stored my connction string in web.config as we do usually. code of web.confing is given below. check the password field contain "&" character. now when i run my application it gives error because value of ConnectionString is breaked at "&". So how to store value in web.config that contain "&" character, if any
7
11099
by: moondaddy | last post by:
I'm running a wpf windows app and want to add the appSettings element to the config file. when I do, the app wont start up and I get the following error: {"The type initializer for 'System.Windows.Application' threw an exception."} {"The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception."} " at...
2
3807
by: Thomas Bauer | last post by:
Hello, I have a config file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="Directory" value="C:\_Database\" /> <add key="CloseApplication" value="0" /> <add key="Extension" value="*.txt,*.log" />
3
4654
by: Junior | last post by:
Vista SP1 IIS7 I'm trying to configure web.config following MSDN docs but keep getting errors I don't know how to resolve.. <configuration> <!--error--> <appSettings file="AppSettings.config" /> <!--error--> <appSettings configSource="AppSettings.config"/>
0
7512
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7951
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7803
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5082
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3495
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3475
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
751
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.