473,385 Members | 1,375 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,385 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 1436
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...

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.