Scenario: A DataFlex application relies on .NET dlls, with version information specified in a .exe.config file. When the application starts, it should check that the .exe.config file exists, and that it is correct. And if a correction had to be made, the application needs to restart in order for the dlls to load correctly.

Question: Has anyone done this successfully already? I.e. closing the application in a way that allows it to restart itself.

I'm envisioning a potential quagmire of obstacles here...