By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,694 Members | 2,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,694 IT Pros & Developers. It's quick & easy.

Config file placement

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
>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 discussion thread is closed

Replies have been disabled for this discussion.