Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Gamer extraordinaire. Programmer wannabe.
Posted (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 by wyrd
Gamer extraordinaire. Programmer wannabe.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...