views:

20

answers:

2

Hi,

I have wcf client. It uses .NET 3.5. When I compile the client I get two files:
client.exe and
client.exe.config.
The second file contains configuration for the wcf client.

In my case I need to prevent the user sitting on the computer to see the urls and change some other parameters from the config file.

So the requirements are, the end user not to see and modify the data stored in the config. The config file contains the same data as app.config. I need to forbid the person using the program to see the end point urls so easy.

Also I have a lot of configuration there so I do not like to code in the moment.

Is there any solution for the problem (embedded app.config of something else)?

Edit: I do not need configurable options. The config file is automatically created when adding service reference from the studio.

Regards

A: 

You can easily encrypt entire parts of your config files - and not just web.config in web scenarios, but also application config's in stand-alone apps.

Check out some resources on how to do this:

marc_s