473,387 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

app.config deploy

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,

Dec 21 '06 #1
4 3545
Hello arkgroup,

aand it different then my development
adirectory.

What does it mean?

aI read value and display on the form for testing.
aThen I change value in config file, restart application and expect new
avalue to show.
aBut 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
Dec 21 '06 #2
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

Michael Nemtsev wrote:
Hello arkgroup,

aand it different then my development
adirectory.

What does it mean?

aI read value and display on the form for testing.
aThen I change value in config file, restart application and expect new
avalue to show.
aBut 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
Dec 21 '06 #3
Hello arkgroup,

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

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

aand it different then my development
adirectory.
What does it mean?

aI read value and display on the form for testing.
aThen I change value in config file, restart application and expect
new
avalue to show.
aBut 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
Dec 21 '06 #4
No, did not work even if I publish locally.

Thanks

Michael Nemtsev wrote:
Hello arkgroup,

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

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

aand it different then my development
adirectory.
What does it mean?

aI read value and display on the form for testing.
aThen I change value in config file, restart application and expect
new
avalue to show.
aBut 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
Dec 21 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Luis Esteban Valencia | last post by:
Hi, I want in debug mode debug=true. In release (production), no reason debug to be true but the questions are: 1. Does it slow the application (holding debug=true) 2. If yes, how can I solve...
6
by: Ludvig | last post by:
I have various domains using the same application/assembly They differ in contents and design, based on a "site id", and get its information from an SQL server. Now I have to deploy the...
3
by: Jeff Robichaud | last post by:
Hello, Since it is possible to put application settings in a file other than web.config, I was wondering what is the best practice in doing so vs. putting these settings directly in web.config....
8
by: Robert | last post by:
I have what I think should be a pretty common scenario in a corporate environment. I have a web app and three environments on three servers: Development, QA and Production. We develop in...
1
by: M O J O | last post by:
Hi, I've have searched google, but can't find a solution to my problem. Om my develloper machine, I use one app.config, but when I deploy, I need to deploy another app.config. The reason...
4
by: dev648237923 | last post by:
I develop my application on my dev server and then I deploy it to a customer's production server. I store the db connection string in web.config (is this best practice?). When I deploy I have to...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
3
by: =?Utf-8?B?SmVycnk=?= | last post by:
I am using Webclient.download to HTTP download a file from an IIS 6.0 server. It works for all the files I have except for those type .config. If I rename the files to .txt extension, it works....
0
by: jthomas | last post by:
Publishing with VisStudio2005 a C# windows/forms app via our IIS server. For one app, installing works fine. For another app, the <appname>.exe.config.deploy file is missing. The web admin logs...
0
by: jonathonmc | last post by:
I have a winform app written in C# which accesses a web service using a dynamic URL (configured in the app.config). When I deploy this app via ClickOnce it builds the app.config into the manifest and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.