473,403 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Odd GetConfig problem

In VB.Net solution I have Standard Windows app and a Web app that references
a Class library. Both the Win app and the class library use the same
technique in the code files for retrieving identical custom config sections
in their respective app.config's. The win app runs without error, the class
library being used in the web app can't parse it's own app.config.
Does anybody know what would cause behavior like that?
--

thx
-jsh
Nov 21 '05 #1
2 1285
Are you using web.config or app.config wor the web site?

--
Jonathan Allen
"J Holsinger" <js********@hotmail.com> wrote in message
news:e1**************@TK2MSFTNGP09.phx.gbl...
In VB.Net solution I have Standard Windows app and a Web app that references a Class library. Both the Win app and the class library use the same
technique in the code files for retrieving identical custom config sections in their respective app.config's. The win app runs without error, the class library being used in the web app can't parse it's own app.config.
Does anybody know what would cause behavior like that?
--

thx
-jsh

Nov 21 '05 #2
Hey Jon,
Thanks for the inquiry. I've tried both.
After some troubleshooting I've figured out that GetConfig works within
its AppDomain and GAC. Now I have to figure out which file location of my
config file works best for the dll, and after it has been installed. I'm
just unfamiliar with the behaviors of GetConfig in this scenario. Ini files
were never this tricky.

thx
-jsh

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
9
by: james | last post by:
According to the documentation ConfigurationSetting.GetConfig( string ) is used to get user defined config settings. Yet, no matter how I try to add my own sections to the app.config I keep...
1
by: kosta | last post by:
hello! I have this code: public static DataSet DSet(String sql) { OleDbConnection con = new OleDbConnection(); con.ConnectionString = ConfigurationSettings.AppSettings; OleDbCommand cmd =...
2
by: Mythran | last post by:
public static void Main() { string sectionName = "system.web"; object settings = ConfigurationSettings.GetConfig(sectionName); Console.WriteLine( settings == null ? "(null)" :...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
0
by: Steph | last post by:
hello, in .NET1 i used this command for read a specific xml file config: ConfigurationSettings.GetConfig how to make in .NET 2 ? keep in mind : i need to read a specific file not the wep.config...
2
by: Glenn | last post by:
Hi Anyone know the equivalent to NameValueCollection nvc = ConfigurationSettings.GetConfig( "SectionGroup/Section" ) as NameValueCollection; in .Net 2.0. All the examples I've seen involve...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.