After you rename the Startup File *. exe, the application system will open normally. However, once the Crystal Report page is displayed, the system will report an error and die.
It took a long time to find the cause.
Failed to Load file or assembly "file: // C: \ Program Files (x86) \ SAP BusinessObjects \ Crystal Reports. NET Framework 4.0 \ Common \ SAP BusinessObjects Enterprise XI 4.0 \ win32_x86 \ dotnet1 \ crdb_adoplus.dll "or one of its dependencies. The system cannot find the specified file.
Visual Studio 2010. The crystal report version is 13.0.0.99.
There is a section in App. Config to set the Runtime.
Select. net 4.0 as the target framework, which is automatically generated.
<? Xml version = "1.0"?>
<Configuration>
<Startup useLegacyV2RuntimeActivationPolicy = "true">
<SupportedRuntime version = "v4.0" sku = ". NETFramework, Version = v4.0"/>
</Startup>
When the program is running, if the Startup File is renamed, the corresponding .exe. config file should also be named.