ConfigurationManager issue

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have an application that was built in vb.net 2.0. The application makes
use of an object that reads from the configuration file (using
ConfigurationManager.GetSection()). This application worked fine previously
on all machines.

I did some editing of some code that makes use of the configuration object.
When I run this code in the Visual Studio 2005 IDE, it works perfectly. When
I run this code from outside the IDE on my machine (from either in the bin
directory or the install path), the ConfigurationManager.GetSection("path")
returns Nothing. However, when running the code on any other machine outside
of my own, it works fine.

The most noticeable difference between my machine and the others is mine is
a 64 bit machine. However, as previously stated, this was working fine on
this machine before, and also continues to work from within the IDE. If I do
a build from a 32-bit machine, it continues to give errors on my 64-bit
machine. I am really perplexed on this one and at wit's end. Anyone have any
suggestions?

Thanks,
TC Smith


.



Relevant Pages

  • Re: Error with machine.config??
    ... Are you getting this from a browser or in your IDE? ... > When I tried to access my aspx server, I got the config error followed. ... > below and modify your configuration file appropriately. ... > Source Error: ...
    (microsoft.public.dotnet.security)
  • Simple easy question, vb6
    ... I'm chaging my computer hardware, but I want to keep all my IDE ... options(editor format, etc.). ... Where is the configuration file? ...
    (microsoft.public.vb.general.discussion)
  • Re: cannot get any app settings after renaming app.config
    ... The IDE recognizes 'app.config' as a special name for the application configuration file. ... If you rename the source file to anything other than 'app.config', the IDE will no more treat it in any automatic fashion. ... code I always get null on myApp. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: headless PCs
    ... I built a router/firewall from one of these: ... with a CF card connected via an IDE to CF adaptor. ... They have since made one with built in card support: ...
    (uk.rec.sheds)
  • Re: Why arent you upgrading? - NICK, PLEASE READ
    ... new designers for .NET 3.0. ... The Mono guys built and IDE, the SharpDevelop guys built an IDE.. ... Oh yeah - that pesky profit thing. ...
    (borland.public.delphi.non-technical)