Visual Guard Class Library Documentation

How to generate or edit the Visual Guard configuration files

The Visual Guard runtime integrated in your application needs 2 configuration files to work. These two files are generated by the Visual Guard console and contain information about the repository used by the application:

The Visual Guard console will generate 2 files: VisualGuardConfiguration.exe.config and VisualGuardConfiguration.config.

By default, these files must be deployed with your application and must be located in the same directory as the Novalys.VisualGuard.Security assembly.

For Winform application, you can change the path of these files by setting the VGSecurityManager.ConfigurationFile property.

For ASP.Net application, you can change the path of these files by handling the global application event VGHttpModule.Initialized.

For WCF application, you can change the path of these files by handling the event VGServiceRuntimeProvider.RuntimeInitialized.

When is it necessary to regenerate your configuration files?

You must regenerate the configuration files:

Generate the configuration files of an application

To generate the configuration files of an application, you must:

Edit the configuration file

If you want to change some parameters of a configuration, you can edit the VisualGuardConfiguration.config file with a text editor or use the Visual Guard console:

See Also

Change programatically the name or the location of the Visual Guard configuration files.