all groups > dotnet clr > august 2003 >
You're in the

dotnet clr

group:

Question about MyApp.exe.config file if MyApp.exe is located on a server



Re: Question about MyApp.exe.config file if MyApp.exe is located on a server Ivan Medvedev [MS]
8/26/2003 7:53:51 AM
dotnet clr: Robert -
if you are running your exe over http, you can put the config file on the
server right by the executable.
--Ivan
This message is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

Question about MyApp.exe.config file if MyApp.exe is located on a server Robert Myhill
8/26/2003 10:20:46 AM
The MyApp.exe.config file must be located in the same directory as the
MyApp.exe file. This works fine if the .exe file is on the local machine,
e.g. if it's in C:\MyApp\MyApp.exe, then it's easy to create a
C:\MyApp\MyApp.exe.config file to go along with it.

But what if MyApp.exe is on a server, and client users are allowed to
navigate to the server, and double-click on MyApp.exe to launch the
application. Where am I supposed to locate MyApp.exe.config on the client
machine, since there is no MyApp.exe on the client machine?

Re: Question about MyApp.exe.config file if MyApp.exe is located on a server Robert Myhill
8/26/2003 11:22:05 AM
Hi Ivan,

Thanks for the quick reply.

The exe will not necessarily be run over HTTP. The exe might simply be on
our company intranet server, and I then Network Neighborhood browse to the
exe and double-click on it.

So, since this might not be done over HTTP, is there any other way to have a
config file for the application?

If it is a requirement that we do this over HTTP, does doing it over HTTP
involve setting up ASP.NET (or some other .NET technology) on the server?

Last question: If we just put the config file on the server, then that
means we're setting the same policy (via the config file) for every user
that executes the exe from the server. But I would like my users to have
their own config files on their machines, but access the exe from the
server. Is this just not possible?

Thanks very much for your help.

Robert


[quoted text, click to view]

Re: Question about MyApp.exe.config file if MyApp.exe is located on a server Marc Scheuner [MVP ADSI]
8/27/2003 10:15:16 AM
[quoted text, click to view]

Since the MyApp.exe.config is really a system-wide, system-defined,
read-only config file, it should always be right with the app.

This config file is *NOT* intended for user-specific settings, e.g.
user preferences - it's designed to handle system-wide settings that
you might need to change at installation time (e.g. a remote machine
to connect to, and such things).

Marc

================================================================
Marc Scheuner May The Source Be With You!
AddThis Social Bookmark Button