PC Review


Reply
Thread Tools Rate Thread

config file literally "consumed"

 
 
Paul Klanderud
Guest
Posts: n/a
 
      24th Jul 2003
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 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 "AutoGenerate") and rebooted, but this didn't make any
difference.

Anyone have any ideas?
TIA,
Paul Klanderud


Am I missing something very basic?


 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      24th Jul 2003
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" <(E-Mail Removed)> wrote in message
news:0c6b01c351d4$ea414ad0$(E-Mail Removed)...
> 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 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 "AutoGenerate") and rebooted, but this didn't make any
> difference.
>
> Anyone have any ideas?
> TIA,
> Paul Klanderud
>
>
> Am I missing something very basic?
>
>



 
Reply With Quote
 
Paul Klanderud
Guest
Posts: n/a
 
      24th Jul 2003
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 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" <(E-Mail Removed)> wrote in

message
>news:0c6b01c351d4$ea414ad0$(E-Mail Removed)...
>> 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

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 "AutoGenerate") and rebooted, but this didn't make

any
>> difference.
>>
>> Anyone have any ideas?
>> TIA,
>> Paul Klanderud
>>
>>
>> Am I missing something very basic?
>>
>>

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Double Clicking "My Computer" takes 5 minutes to open window (literally!) John Wunderlich Windows XP Help 0 30th Sep 2010 08:52 PM
Get text "literally" from a TextBox Freddy Coal Microsoft VB .NET 5 3rd Jul 2008 04:19 PM
XP SR2 dies (literally) in middle of use - now "AWDFLASH.EXE" notfound Ch33zst34k Windows XP Help 10 10th Dec 2007 11:48 AM
How can I amend permission set "Report_Expressions_Default_Permissions" in "rssrvpolicy.config" file in code GMG Microsoft Dot NET Framework 0 7th Nov 2007 12:43 PM
APP.CONFIG: <section name=".." type=".." file="..."> A.M-SG Microsoft C# .NET 1 23rd Jan 2006 07:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:32 AM.