Net4 adopts the embedded database SQLite error hybrid mode assembly is generated for "v2.050727". Without configuration information, it is not released to the 4.0 runtime shelf assembly.

Source: Internet
Author: User
Hybrid mode Program The set is generated for "v2.050727". Without configuration information, it is not delivered to the rack assembly during the 4.0 runtime.

A hybrid assembly is generated for v2.050727 and cannot be loaded at runtime 4.0 without configuration information.

My approach is to add app. config in the file as follows:

<Startup uselegacyv2runtimeactivationpolicy = "true">
<Supportedruntime version = "v4.0"/>
</Startup>

attributes

description

uselegacyv2runtimeactivationpolicy

optional features.

specifies whether to enable the Service.. NET Framework 2.0 runtime activation policy, or whether to use.. NET Framework Version 4 activation policy.

Value

Description

True

Enabled. net Framework 2.0 select the runtime, and the old runtime activation method is the runtime activation policy (for example, in the corbindtoruntimeex function) to select the configuration file, instead of setting its upper limit to the Runtime Library in CLR 2.0. Therefore, if four or more CLR versions are selected from the configuration file, the mixed-mode Assembly created using an earlier version of. NET Framework is loaded with the selected CLR version.

See http://msdn.microsoft.com/zh-cn/library/bbx34a2h.aspx

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.