When we tried to pack a Telerik OpenAccess ORM enhanced solution with Xenocode PostBuild into an executable file, it crashed with the following error message: "The 'openaccess' section cannot be found in the application's configuration file." (while debug it) or a message like "path\App.exe is not a valid Win32 application." The problems were caused by missing files required by Telerik OpenAccess ORM (like for example the application configuration files).
To make sure that the application will be running after processed with Xenocode Build do the following:
1. Start Xenocode PostBuild instance from Start menu (when started from inside Visual Studio, it runs incorrectly, as it requires few more settings that can be done through the external client only).
2. Go to the Application tab and add your App.exe, Telerik.OpenAccess dlls, then click Scan Dependencies button and add missing dependencies.
3. When you are done with the dependencies go to the Virtualize tab and choose Filesystem. From the treeview select the Application directory. Then add the following files: App.exe, App.exe.config (usually this is omitted in the VS run of the product), where App is the name of your application.
4. At the end start the executable produced by Xenocode and run your new packed executable file.
I hope that works for you!
All the best,
the Telerik team