473,386 Members | 1,699 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,386 software developers and data experts.

Config file placement

Please forgive me if this question is not clear. I am not a .Net developer,
I am just trying to get a .Net app to work with Citrix.

I have a .Net app that runs on Terminal Services 2003 with Citrix
Presentation Server 3.0. This app has a .config file that I am told MUST be
in the same directory as the .exe. Is this true? Is there any way to move
the .config file?
Jul 21 '05 #1
4 1437
Hello Metaljock,

the quick answer: no. It has to be in the same directory.

This shouldn't be a problem, though. Just install it on the Citrix server
like you would any other app. I use terminal services all the time with my
apps, even the .NET apps.

What reason do you have for wanting to move the config file?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Metaljock" <Me*******@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
Please forgive me if this question is not clear. I am not a .Net developer, I am just trying to get a .Net app to work with Citrix.

I have a .Net app that runs on Terminal Services 2003 with Citrix
Presentation Server 3.0. This app has a .config file that I am told MUST be in the same directory as the .exe. Is this true? Is there any way to move the .config file?

Jul 21 '05 #2
There are about 7 .config files for this app. Each one is configured
differently to allow different users to have access to different
configurations.

For clarity:

When a user logs in, he/she is presented with a dropdown to choose a group
from. There are about 400 users and not everyone of them have the same
configuration.
We want to place the config files in the users' home directories and have
the shortcut point to the users' specific config file located there.

W:\<Directory Path>\filename.config

Hope you are not totally confused.

"Nick Malik [Microsoft]" wrote:
Hello Metaljock,

the quick answer: no. It has to be in the same directory.

This shouldn't be a problem, though. Just install it on the Citrix server
like you would any other app. I use terminal services all the time with my
apps, even the .NET apps.

What reason do you have for wanting to move the config file?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Metaljock" <Me*******@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
Please forgive me if this question is not clear. I am not a .Net

developer,
I am just trying to get a .Net app to work with Citrix.

I have a .Net app that runs on Terminal Services 2003 with Citrix
Presentation Server 3.0. This app has a .config file that I am told MUST

be
in the same directory as the .exe. Is this true? Is there any way to

move
the .config file?


Jul 21 '05 #3
Sounds like the author of the application didn't account for the possibility
that two users would use the same machine but would want different settings.
The programmer is not restricted from using a seperate config file that he
or she would read from the users home directory.

Unfortunately, this is a choice that the programmer of the app has to make.
You can't add it to a .NET app later.

If this is custom built, get with the programmer and get him or her to look
up config settings by using an XML file in the user's home directory.

If this is not custom built, the only option I have is fairly distasteful:
when a user logs in, COPY the entire app to their home directory and run it
from there. When they log off, delete it from their home directory (but
leave the data files and the config file).

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Metaljock" <Me*******@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
There are about 7 .config files for this app. Each one is configured
differently to allow different users to have access to different
configurations.

For clarity:

When a user logs in, he/she is presented with a dropdown to choose a group
from. There are about 400 users and not everyone of them have the same
configuration.
We want to place the config files in the users' home directories and have
the shortcut point to the users' specific config file located there.

W:\<Directory Path>\filename.config

Hope you are not totally confused.

"Nick Malik [Microsoft]" wrote:
Hello Metaljock,

the quick answer: no. It has to be in the same directory.

This shouldn't be a problem, though. Just install it on the Citrix server like you would any other app. I use terminal services all the time with my apps, even the .NET apps.

What reason do you have for wanting to move the config file?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Metaljock" <Me*******@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
Please forgive me if this question is not clear. I am not a .Net

developer,
I am just trying to get a .Net app to work with Citrix.

I have a .Net app that runs on Terminal Services 2003 with Citrix
Presentation Server 3.0. This app has a .config file that I am told
MUST be
in the same directory as the .exe. Is this true? Is there any way to

move
the .config file?


Jul 21 '05 #4
>There are about 7 .config files for this app. Each one is configured
differently to allow different users to have access to different
configurations.


For .Net, you'd have to merge those into a single "MyApp.exe.config"
file, and then provide some ways to select a given set of settings at
startup (based on user name or something).

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Jul 21 '05 #5

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

Similar topics

23
by: Giancarlo Niccolai | last post by:
Hello all. I have peeked through the FAQ and all relevant links, and also through Stroustrup book, but I have not been able to find an answer, so I have to post here as a last resort. It...
20
by: Ioannis Vranos | last post by:
When we use the standard placement new operator provided in <new>, and not a definition of owr own, isn't a call to placement delete enough? Consider the code: #include <new>
7
by: Tamir Khason | last post by:
Very strange problem I have windows service, that using information from inside App.config by ConfigurationSettings.AppSettings <- Everything is ok here BUT, once I want to read string such as...
4
by: Metaljock | last post by:
Please forgive me if this question is not clear. I am not a .Net developer, I am just trying to get a .Net app to work with Citrix. I have a .Net app that runs on Terminal Services 2003 with...
15
by: mangesh | last post by:
This code is from c++ faq in section 11 : void someCode() { char memory; void* p = memory; Fred* f = new(p) Fred(); f->~Fred(); // Explicitly call the destructor for the placed object }
1
by: SarahT | last post by:
Hi folks, I am doing something Very Bad and Wrong (which I'll spare you the details of) that requires overloading new for some specific classes. So, for example: class MyWeirdThingy {...
3
by: Blasting Cap | last post by:
I am working on a web app that I want to be able to use a separate config file on, in addition to the web.config file that's already working in the application. If I put the following in the...
15
by: LuB | last post by:
I am constantly creating and destroying a singular object used within a class I wrote. To save a bit of time, I am considering using 'placement new'. I guess we could also debate this decision -...
9
by: karthikbalaguru | last post by:
Hi, I find that articles stating that 'placement new' constructs an object on a pre-allocated buffer and so takes less time. Actually, we have to consider the allocation of the buffer and then...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.