Failed to Load file or assembly "file: // C: \ Program Files (x86) \ SAP BusinessObject

Source: Internet
Author: User

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.


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.