app.config deploy

A

arkgroup

I have "MyApp.EXE.config". The file is in my EXE's directory, This
directory is my deploy directory and it different then my development
directory.
I read value and display on the form for testing.
Then I change value in config file, restart application and expect new
value to show.
But old value still showing. What is wrong?

Thanks,
 
M

Michael Nemtsev

Hello arkgroup,

a> and it different then my development
a> directory.

What does it mean?

a> I read value and display on the form for testing.
a> Then I change value in config file, restart application and expect new
a> value to show.
a> But old value still showing. What is wrong?

Wrong is that data read from the other config :)


---
WBR,
Michael Nemtseva [C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangel
 
A

arkgroup

Hello Michael,

I publish my project to network drive and run application from it.
It's still have same value even if I remove app.exe.config from this
folder.
So, you are right it did not use it.

What other config file is using? Where I can find it?
Thanks
 
M

Michael Nemtsev

Hello arkgroup,

As I understand that behaviour is only when u run your app from network share?
and localy it works fine?!

a> I publish my project to network drive and run application from it.
a> It's still have same value even if I remove app.exe.config from this
a> folder.
a> So, you are right it did not use it.
a> What other config file is using? Where I can find it? Thanks
a>
a> Michael Nemtsev wrote:
a>
Hello arkgroup,

a> and it different then my development
a> directory.
What does it mean?

a> I read value and display on the form for testing.
a> Then I change value in config file, restart application and expect
new
a> value to show.
a> But old value still showing. What is wrong?
Wrong is that data read from the other config :)

---
WBR,
Michael Nemtseva [C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 
A

arkgroup

No, did not work even if I publish locally.

Thanks

Michael said:
Hello arkgroup,

As I understand that behaviour is only when u run your app from network share?
and localy it works fine?!

a> I publish my project to network drive and run application from it.
a> It's still have same value even if I remove app.exe.config from this
a> folder.
a> So, you are right it did not use it.
a> What other config file is using? Where I can find it? Thanks
a>
a> Michael Nemtsev wrote:
a>
Hello arkgroup,

a> and it different then my development
a> directory.
What does it mean?

a> I read value and display on the form for testing.
a> Then I change value in config file, restart application and expect
new
a> value to show.
a> But old value still showing. What is wrong?
Wrong is that data read from the other config :)

---
WBR,
Michael Nemtseva [C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top