wyrd Posted May 31, 2003 Posted May 31, 2003 I was going to start toying around with dynamic properties in my application but came across some funkyness... - There was no Program.exe.config file in my program directory, and I saw no option to create one, so I went ahead and create an xml file and called it Program.exe.config. - System.Configuration exists, but System.ConfigurationSettings does not. Despite these oddities, I went ahead and tried to run my app anyway, and got this error: C:\Documents and Settings\Administrator\My Documents\vp\Inventory\Inventory.cs(39): The type or namespace name 'ConfigurationSettings' does not exist in the class or namespace 'System' (are you missing an assembly reference?) I got a REALLY weird error the first time I tried to run the app, saying a control I was referencing was in use or something *shrug* Anyway, so I went to References/Add Reference and scrolled down to find System.ConfigurationSettings.dll. Nothing there, the only thing I found was System.Configuration.Install.dll. What am I doing wrong? Quote Gamer extraordinaire. Programmer wannabe.
*Gurus* divil Posted May 31, 2003 *Gurus* Posted May 31, 2003 System.Configuration.ConfigurationSettings is the full path of the class, it's in System.dll. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
wyrd Posted May 31, 2003 Author Posted May 31, 2003 (edited) Heh, I came back to post that I just found that out myself. In anycase, now I'm getting a new error: The ConnectionString property has not been initialized. EDIT (deleted old info below this point): I got it working, nevermind. :) It was in the wrong folder. I assumed (silly me) that it would automatically copy/paste the .config file to the correct bin folder when it compiled. Edited May 31, 2003 by wyrd Quote Gamer extraordinaire. Programmer wannabe.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.