Configurationsettings.getconfig returns null




















Privacy policy. Thank you. Microsoft makes no warranties, express or implied, with respect to the information provided here. Provides runtime versions 1.

Use the static methods and properties of the ConfigurationSettings type to read configuration information at run time for version 1. The ConfigurationSettings class provides backward compatibility only. To use these two classes, add a reference in your project to the System.

Configuration namespace. Returns the ConfigurationSection object for the passed configuration section name and path. Gets the Type of the current instance. Follow Post Reply. Alexey Smirnov. NET url rewritining functionality intoa test project i've created, however i am hitting a problem at this line direct from the web example : System.

GetC onfig "Rewrite. Aah yes, that was the problem, there was a missing line in web. Just one more question regarding url rewriting - In my code example i put a rule, say "Default. Have i misunderstood something here? I think you should check the manual for software you used I don't know what Rewrite. NET is. NET is some free code on the web to handle url rewriting in asp. I thought that it was just meant to virtually rename the page url, but in the background still use "default.

Get Config "Rewrite. As I understood, you have a page named default. The Rewrite. Hi Alexey, Thanks for the info, yes i understand what you mean however this is what i am trying to achieve.. Sorry, but Hi Alexey, yes you are right! Sorry about the delay. Andreas Saurwein. So, had the same problems as everybody else here. Exists Assembly. Load this. SelectSingleNode this. Query ; if AppSettingsNode!

SelectNodes this. Query ; if XmlNodeList. Attributes[ " value" ]. Have to restart the application to see changes MaxerCode 6-Jan Is this a feature or a bug of System.

Configuration namespace? Maybe your class could be fixed by bypassing this class completely and using an xml reader. Re: Have to restart the application to see changes Nick Parker 6-Jan Could you be a little more clear with the problem you are having? Did you change the namespace in the code, not only what is declared but what the method writes out when it creates the file? Re: Have to restart the application to see changes MaxerCode 6-Jan Hope this makes sense and Im doing something completely wrong but here goes; Your code successfully updates values within the config file however when reading them back it gives the values which were initially loaded when the application started.

This I beleieve is the way in which the. This kind of explains it a bit better; Configuration. ConfigSettings ; otest. Show otest. Both messageboxes printed mail-hub.

GetValue failing??? Hi there, Nice code ConfigSettings ; file. CreateConfigFile file. ConfigFileName, file. SectionName ; file.

GetConfig ; call in 'GetValue' that is returning a null object Any ideas why this is? Re: GetValue failing??? Russq wrote: Any ideas why this is? Russ, I will look into it tonight, sorry, I am busy until then, however, I would be curious what the. I know what they should look like, but I just wondering if something else is happening. I will posting an update soon to reflect some minor changes to the code that should make implementation easier.

If you get a chance, post a copy of what the sample config file contains. Nick, Thanks for the quick response Nick, Sorry for some reason copy and paste of the xml output didn't work I must be doing something wrong here Mithrang wrote: i think i'm having the same problem. What does your. I hope to release an update during my Thanksgiving break next week that will help those that are having problems like this.



0コメント

  • 1000 / 1000