What is needed for working with Oracle from Visual Studio 2010?

天涯浪子 提交于 2019-12-08 05:38:22

问题


What is needed for working with Oracle from Visual Studio 2010?

Environment: 1 - On development pc:

Windows 7 Ultimate 64 bit (4 GB ram, Dual-Core 2.6 GHz)

  • Windows 7 Ultimate 64 bit (4 GB ram, Dual-Core 2.6 GHz)
  • Visual Studio 2010 Ultimate
  • ODAC (from package ODTwithODAC112012.zip) (also ODAC10203x64.zip does not install on Windows 7 64)

2 - On server:

  • Windows 2003
  • Oracle 11g (11.2.0.1.0)
  • .NET (2.0, 3.0, 3.5, 4.0) (SPs are installed)

Problem: (Simple) If i create a console app in vs and set .NET version to 3.5 and plateform to x86, it works on development pc but not on the server. If I set plateform to x64 or Any CPU, it does not work; neither on development pc nor on the server (deployed).

I have searched and found there will be .NET 4 support for ODP.NET (64) on December. But I am not compiling to .NET 4.0! But .NET 3.5 (Wich is internally just .NET 2.0). Other tutorials and 'how to's do ignore any problems with 32-64 aspect of this hell!

Many thanks in advance!


回答1:


Does the server have the ODP client software installed?

This can be 32 or 64 bit. Compile to ANYCPU and it should not matter (if you were using 4.0 you would have to use 32bit for now since it doesn't seem to have the 64bit ready).

But since you are running ODTwithODAC112012 you are running the latest and greatest ODP (locally) so you should be set for a 32 bit run. Just make sure it installed on the server and you should be set. if it is installed, what errors are you receiving?

here are some forum help on the oracle site: Thread: Intermediate Language version of oracle.dataaccess.dll & How do I determine if my web server is correctly configured for ODP.Net?

Verify that ODP is installed (%ora_home%\11.2.0\client_1\odp.net).



来源:https://stackoverflow.com/questions/4376892/what-is-needed-for-working-with-oracle-from-visual-studio-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!