Packaging Oracle Data Access Components into. Net projects

Source: Internet
Author: User
Tags visual studio installer
We don't want to have every user install Oracle Data Access Components and drivers so we want to package it into our deployment.
First dowload Oracle Data Access Components. The most current one as of 2/11/2011 is
Http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html
Note that this is the 32 bit version. This is because if you get the 64 bit version but you are targeting 32 bit (x86 platform) you will get a warning at compile time.
After downloading and installing ODAC. find the following files
Oci. dllociw32.dllOracle. DataAccess. dllorannzsbb11.dlloraocci11. dlloraociicus11.dllOraOps11w. dll
If you are using Oracle. DataAccess. dll in your project you will want to add it to your project as a reference.
Next we need to create a new project for the deployment. Other Project Types> Setup and Deployment> Visual Studio Installer> Setup Project.
Right click on the setup project and Add> Project Output... Add your projects output in here. Now we add rest of the dependencies that oracle needs. Right click on the setup project and Add> File... Add the rest of the dlls in the list: oci. Users. dlloraocci11.dlloraociicus11. dllOraOps11w. dllOracle. DataAccess. dll-don't need this one because it shoshould be in the references already.
Build the project and you are ready to deploy it.
If you get "The provider is not compatible with the version of Oracle client" make sure you are getting all the dlls from a single install of ODAC
This shoshould add roughly 38 megs to your project.
Msvcr71.dll too?
Http://stackoverflow.com/questions/923283/what-is-the-minimal-setup-required-to-deploy-a-net-application-with-oracle-clie
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.