|
by: serge calderara |
last post by:
Dear all,
I have define a configuration file for my application with
different section groups and settings belonging to each
individual group like as follow :
=====================================================
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
|
by: Keith Patrick |
last post by:
If I call ConfigurationSettings.GetConfig(...) the first time, it works
fine, demanding no permissions. However, if I call it again for a different
section, it demands FileIOPermission Read/PathDiscovery permission to the
app's directory (kind of difficult to assign this permission to the assembly
in this case). Is this a bug or intended behavior? I don't really see why
a second call would be any different from the first, unless there is...
|
by: Filippo |
last post by:
Hi there,
I am writing a Windows App and need a Configuration file.
I wonder if I can use the WEB.CONFIG file to store my values.
I also wonder if I can use the ConfigurationSettings.AppSettings and if so,
what is the file name that it automatically look for.
Thanks,
Filippo
|
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 getting errors stating an invalid
config file section found. So, can someone elighten me as to how this is to
be used ??
thanks
JIM
|
by: Mythran |
last post by:
public static void Main()
{
string sectionName = "system.web";
object settings = ConfigurationSettings.GetConfig(sectionName);
Console.WriteLine(
settings == null ? "(null)"
: settings.GetType().ToString()
);
}
|
|
by: J Holsinger |
last post by:
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
|
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 or other .dotnet config file..
thx mau
|
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 creating a customer
handler.
|
by: Mark |
last post by:
Could someone provide me with details or a link on how the line of code
executes underneath the hood? Assume it's executed in an ASP.NET
application.
string blah = ConfigurationSettings.AppSettings
Once your application has called for the "foo" key once, how expensive is to
call the same line again? My gut tells me that the CLR likely stores these
values in memory in a string dictionary or similar. Looking up the value
requires the...
|
by: Ken |
last post by:
I'm currently using 1.1.
Is there any way using the value of a
ConfigurationSettings.AppSettings as a key of
ConfigurationSettings.AppSettings.Tosting(
)]?
for example in web.config
<add key="company" value="Hyundai" />
<add key="Hyundai" value="sonata" />
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|