在七个64位操作系统上具有32位oracle客户端驱动程序的System.data.OracleClient [英] System.data.OracleClient with 32 bits oracle client driver on Seven 64 bits Operating system

查看:301
本文介绍了在七个64位操作系统上具有32位oracle客户端驱动程序的System.data.OracleClient的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序,它从asp.net 1.1(VS 2003)迁移到Asp.net 2(VS 2008). 我在新版本上执行Oracle connexion时遇到问题.开发环境为64位七.当使用所有CPU生成应用程序时,我在System.Data.OracleClient上遇到问题,异常System.BadImageFormatException:暂时取消了程序格式的设置. (异常HRESULT:0x8007000B). .我在x86 CPU上生成,并且在启动时遇到此错误:

I have a Web application migrating from asp.net 1.1 (VS 2003) to Asp.net 2 ( VS 2008). I have a problem to execute Oracle connexion on the new version . The dev environnement is 64 bits Seven. When generate application with all CPU , i have a probleme on System.Data.OracleClient, exception System.BadImageFormatException: Tentative de chargement d’un programme de format incorrect. (Exception de HRESULT : 0x8007000B). . I generate on x86 CPU and i have this error on start :

[BadImageFormatException:不可能充电器 'CpimWebApplication'组件或其他组件.暂定的 收费程序格式错误.]
System.Reflection.Assembly._nLoad(AssemblyName fileName,字符串 codeBase,证据AssemblySecurity,Assembly locationHint, StackCrawlMark& stackMark,布尔型throwOnFileNotFound,布尔型 forIntrospection)+0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, 证据集安全性,StackCrawlMark& stackMark,布尔值 自省)+416
System.Reflection.Assembly.InternalLoad(String assemblyString, 证据集安全性,StackCrawlMark& stackMark,布尔值 forIntrospection)+166 System.Reflection.Assembly.Load(字符串 assemblyString)+35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串 assemblyName,布尔型starDirective)+190

[BadImageFormatException: Impossible de charger le fichier ou l'assembly 'CpimWebApplication' ou une de ses dépendances. Tentative de chargement d’un programme de format incorrect.]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166 System.Reflection.Assembly.Load(String assemblyString) +35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190

出什么问题了?计算机上的Oracle Client是32位版本. 我在网上阅读过,无法将System.data.OracleClient与32位oracle Client一起使用吗? Instal 64位Oracle客户端是解决方案? TIA 问候

Whats the problem ? The Oracle Client on machine is 32 bits version . I have read on web that it s not possible to utilise System.data.OracleClient with 32 bits oracle Client ? Instal 64 bits Oracle client is the solution ? TIA Regards

推荐答案

如果以64位模式运行应用程序,则不能使用32位Oracle驱动程序.

If you are running your application in 64 bits mode you cannot use the 32 bits Oracle driver.

您需要安装64位Oracle驱动程序并以64位模式运行您的应用程序,

You need to either install the 64 bits Oracle driver and run your application in 64 bits mode,

将应用程序设置为以32位模式运行.您可以通过选择应用程序池,在IIS中进行此操作,转到高级设置"并将启用32位应用程序"设置为true.

set the application to run in 32 bits mode. You can do that in IIS by choosing your application pool, go to Advanced settings and set "Enable 32-bit applications" to true.

这篇关于在七个64位操作系统上具有32位oracle客户端驱动程序的System.data.OracleClient的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆