|
by: Kevin Meiresonne |
last post by:
I have developed an XML-based tracelistener which uses a booleanswitch
(enable/disable), a general traceswitch (set the tracelevel) and a
userspecific traceswitch (set the tracelevel for a particular user).
Those switches are set in app.config
Now I am looking for a way to know when these settings in my app.config have
changed (for example, when changing the tracelevel) at runtime, so that my
application can use the new settings.
When...
|
by: nhmark64 |
last post by:
Hi,
When i run testapp.exe the testapp.exe.config file i have in the
DEBUG directory gets deleted, and the TraceSwitch in my code never
gets set.
testapp.exe.config
____________________
<?xml version="1.0" encoding="utf-8"?>
<configuration>
|
by: vkrasner |
last post by:
It works with VS2003 and does not in VS2005:
in VS2003 :
string sMyvalue = ConfigurationSettings.AppSettings;
in VS2005 (does not work!!)
string sMyvalue = ConfigurationManager.AppSettings;
Anybody able to give me idea how-to read by C# element which I add to the
machine.config into the new single section?
|
by: Stephen Costanzo |
last post by:
Looking back in the group, I figured out how to read from the appSettings
section of the configuration file.
I have default values for the application in the unlikely event that the
user deletes the configuration file. My question is this: How do I write the
defaults back out to the configuration file at run time? is this even
possible?
I understand that the System.Configuration API is read only so would I
basically have to read in...
|
by: Steve Enzer |
last post by:
I need to use a configuration file to set the connection string for the ado
data connector in my project, but I'm having trouble reading the config
file.
My config file contains the following:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings> <add key="ConnectionString" value="server=localhost;user
id=root;password=pw;database=aceinventory;pooling=false"/>
|
|
by: Brett Romero |
last post by:
I'd like to use some of the techniques discussed here for reading a
config file in .NET 2.0:
http://msdn.microsoft.com/msdnmag/issues/06/06/ConfigureThis/default.aspx
Here's my app.config content:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
|
by: WT |
last post by:
Hello,
Using .NET 2 and visual studio 2005 for writting asmx web services.
For asp.net web sites I used to implement trace system using TraceSwitch set
in web.config.
Using
Trace.WireteLineIf(MySwitch.TraceError,"text");
in my code. Having defined TExtWriterTraceListener.
But this has no effect and I can't get any tracefile created, is this a
limitation of web services ?
|
by: =?Utf-8?B?TWlrZQ==?= |
last post by:
Hi. Is it programatically possible in VB.NET to read the contents of
web.config's <customErrorselement? I looked at using
ConfigurationSettings.AppSettings, but that doesn't work.
I need to read the value of redirect from the error statusCode 404. My
web.config looks like this:
<customErrors mode="RemoteOnly" defaultRedirect="Error.aspx">
<error statusCode="404" redirect="Error404.aspx" />
</customErrors>
|
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= |
last post by:
Hi
Is there any way to Read an INIFile from a string or Stream instead of a
physical file ???
I want to read the INIFile into a string then store in a db but when I read
the string from the db or save string to the db I don't want to have to copy
the string to a file to use the WritePrivateProfileString and
GetPrivateProfileString. Is there a way around this instead of writing my own
class to operate on a string or stream ???
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
|
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...
|