Error “A namespace does not directly contain members such as fields or methods”

Figures! As soon as I finally break down and ask the question that I find the answer…

The app.config file properties section (somehow) listed the Build Action of “Compile” when it should be set to “None”.

How in the world did it get changed? I know I didn’t change it. Grrr…

Oh well, at least it’s building now. Hopefully someone else will benefit from my hairloss.

Leave a Comment