Config file placement

G

Guest

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?
 
N

Nick Malik [Microsoft]

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.
 
G

Guest

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.
 
N

Nick Malik [Microsoft]

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.
 
M

Marc Scheuner [MVP ADSI]

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
 

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