WebForm Publishing prompt: Unable to load or cannot find oracle.dataaccess file

Source: Internet
Author: User

Error message:

Projects completed by third-party plug-ins (Oracle's DataAccess) were referenced on the development machine of the 32-bit error-making system, and the DataAccess file was not loaded or could not be found when the published program was copied to a 64-bit server for publishing.

Cause of Error:

Because it is developed on a 32-bit server, when adding reference files, the referenced files are used on 32-bit operating systems, and 64-bit files are found on 64-bit systems, resulting in missing or incorrect versions, resulting in an error.

Workaround:

1, in the 64-bit operating system to find the corresponding reference file (Oracle's DataAccess), if the 64-bit operating system to use the file, copy the file to replace the files in the bin file of the published project;

2. Modify the configuration file Web. config: Add the following to the corresponding configuration node:

<runtime>
<assemblybinding xmlns= "Urn:schemas-microsoft-com:asm.v1" >
<dependentAssembly>
<assemblyidentity name= "Oracle.dataaccess"
publickeytoken= "89b483f429c47342"
culture= "neutral"/>
<bindingredirect
oldversion= "2.112.1.2"
newversion= "2.112.1.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>

Description: Be sure to set the "Copy to local" property in the properties of the referenced third-party file to True when publishing, otherwise the published program or the assembly is missing.

WebForm Publishing prompt: Unable to load or cannot find oracle.dataaccess file

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.