I'm encountering a strange situation with a .config file
for a simple windows form test harness I built to test
some components normally invoked by a windows service.
My config file, "testharness.ex e.config," has some
<system.diagnos tics> settings (trace listeners).
When my file is read only, things are fine. However, when
I toggle the read-only attribute off (so I can edit it),
and then run my test harness, as soon as I get to the very
first line of execution ...
static void Main()
{
Application.Run (new Form1());
}
.... my .config file is deleted from the folder!!!
I'm really confused by this behavior, which I've never
observed before.
What's changed on my box is I removed v 1.0.3705 (under
which my service previously had been compiled) and
installed v 1.1.4322, as well as the VS 2003 IDE.
On a hunch I changed a couple attributes in the
<processModel > node of my machine.config file ... set
username and password to a domain account (from "machine"
and "AutoGenera te") and rebooted, but this didn't make any
difference.
Anyone have any ideas?
TIA,
Paul Klanderud
Am I missing something very basic? 2 2214
Paul,
Microsoft fixed a 'feature' of VS.NET 2002 in VS.NET 2003. :-|
You need to add your config file to your VS.NET project's root folder as
app.config, it needs to be named "app.config " without the quotes. When you
build your project VS.NET (both 2002 & 2003) will copy the app.config file
from the project root to your output folder and name it appropriately
(myproject.exe. config).
Hope this helps
Jay
"Paul Klanderud" <co*********@no spamhotmail.com > wrote in message
news:0c******** *************** *****@phx.gbl.. . I'm encountering a strange situation with a .config file for a simple windows form test harness I built to test some components normally invoked by a windows service.
My config file, "testharness.ex e.config," has some <system.diagnos tics> settings (trace listeners).
When my file is read only, things are fine. However, when I toggle the read-only attribute off (so I can edit it), and then run my test harness, as soon as I get to the very first line of execution ...
static void Main() { Application.Run (new Form1()); }
... my .config file is deleted from the folder!!!
I'm really confused by this behavior, which I've never observed before.
What's changed on my box is I removed v 1.0.3705 (under which my service previously had been compiled) and installed v 1.1.4322, as well as the VS 2003 IDE.
On a hunch I changed a couple attributes in the <processModel > node of my machine.config file ... set username and password to a domain account (from "machine" and "AutoGenera te") and rebooted, but this didn't make any difference.
Anyone have any ideas? TIA, Paul Klanderud
Am I missing something very basic?
Jay,
Thanks a ton!! I couldn't find anything on this "fix"
anywhere, and was just wondering if I'd royally screwed up
my machine with the install.
Thanks again!
Paul -----Original Message----- Paul, Microsoft fixed a 'feature' of VS.NET 2002 in VS.NET
2003. :-| You need to add your config file to your VS.NET project's
root folder asapp.config, it needs to be named "app.config " without the
quotes. When youbuild your project VS.NET (both 2002 & 2003) will copy
the app.config filefrom the project root to your output folder and name it
appropriately(myproject.exe .config).
Hope this helps Jay
"Paul Klanderud" <co*********@no spamhotmail.com > wrote in
messagenews:0c******* *************** ******@phx.gbl. .. I'm encountering a strange situation with a .config file for a simple windows form test harness I built to test some components normally invoked by a windows service.
My config file, "testharness.ex e.config," has some <system.diagnos tics> settings (trace listeners).
When my file is read only, things are fine. However,
when I toggle the read-only attribute off (so I can edit it), and then run my test harness, as soon as I get to the
very first line of execution ...
static void Main() { Application.Run (new Form1()); }
... my .config file is deleted from the folder!!!
I'm really confused by this behavior, which I've never observed before.
What's changed on my box is I removed v 1.0.3705 (under which my service previously had been compiled) and installed v 1.1.4322, as well as the VS 2003 IDE.
On a hunch I changed a couple attributes in the <processModel > node of my machine.config file ... set username and password to a domain account
(from "machine" and "AutoGenera te") and rebooted, but this didn't make
any difference.
Anyone have any ideas? TIA, Paul Klanderud
Am I missing something very basic?
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Geoffrey |
last post by:
Hope someone can help.
I am trying to read data from a file binary file and then unpack the
data into python variables. Some of the data is store like this;
xbuffer: '\x00\x00\xb9\x02\x13EXCLUDE_CREDIT_CARD'
# the above was printed using repr(xbuffer).
# Note that int(0x13) = 19 which is exactly the length of the visible
text
#
|
by: les_ander |
last post by:
Hi,
suppose I am reading lines from a file or stdin.
I want to just "peek" in to the next line, and if it starts
with a special character I want to break out of a for loop,
other wise I want to do readline().
Is there a way to do this?
for example:
while 1:
line=stdin.peek_nextline()
|
by: Kevin Goodsell |
last post by:
The return value of sscanf should be "the number of input items
assigned" (unless an input failure occurs before any conversion). Are
items assigned due to a "%n" directive included in the returned count?
Thanks.
-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
|
by: Assaf |
last post by:
Hi all,
My client is using an online service provider that processes survey
responses.
After a user fills survey.aspx and presses the OK button, 2 things need to
happen:
1. the data has to be posted behind the scenes to the provider's URL (e.g.,
http://www.surveyprocessingprovider.com/srvy1?field1=response1&field2=response2)
2. the user has to be redirected to thankyou.aspx.
|
by: Kunk |
last post by:
Hi All,
I was curious if an exception is generated with the .ReadLine() function (found in the StreamReader class), will the current line be consumed? Thus the next .ReadLine() will start at the next line.
I ask this, because if it an exception is generated i would like to retry the .ReadLine() from the same line without advancing to the next one. If the line is consumed, is there anyway to specify a line number to start reading at?
...
| |
by: Paul Klanderud |
last post by:
I'm encountering a strange situation with a .config file
for a simple windows form test harness I built to test
some components normally invoked by a windows service.
My config file, "testharness.exe.config," has some
<system.diagnostics> settings (trace listeners).
When my file is read only, things are fine. However, when
I toggle the read-only attribute off (so I can edit it),
and then run my test harness, as soon as I get to the...
|
by: zahaby |
last post by:
Is it applicable to use the Microsoft Enterprise Library in Logging
without using the configuration tool ?
I would like to configure and choose the trace listener
programmatically .
Thanks in advance.
|
by: kj |
last post by:
My book (Flanagan's JavaScript: The Definitive Guide, 5th ed.)
implies on page 111 that the following two constructs are equivalent:
( x.constructor == Foo )
and
( x instanceof Foo )
The author states that the instanceof operator computes its result
|
by: clyfish |
last post by:
In cmd, I can use find like this.
C:\>netstat -an | find "445"
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
UDP 0.0.0.0:445 *:*
C:\>
And os.system is OK.
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
|
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: 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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: 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...
| |