在“MSDAORA.1'提供者未在本地计算机上注册 [英] The 'MSDAORA.1' provider is not registered on the local machine

查看:2723
本文介绍了在“MSDAORA.1'提供者未在本地计算机上注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个连接到一个数据库,提取信息,创建一个Excel文件,然后丢弃的文件/邮件××人的文件的应用程序。

I have an application that connects to a DB, extracts info, creates a excel file, and then drops the file/emails X people the file.

应用程序是使用.NET 2.0框架(Windows窗体应用程序)视觉工作室创建。它是运行32位服务器上。但它最近被转移到64位服务器。它现在返回的错误消息'MSDAORA.1'提供者未在本地计算机上注册。

The application was created in Visual Studios using .NET 2.0 Framework (Windows Form App). It was run on a 32 bit server. But it recently was moved to a 64 bit server. It is now returning with the error message " The 'MSDAORA.1' provider is not registered on the local machine."

我相信MSDAORA仅支持32位应用程序和应用程序池未启用3​​2位应用程序在IIS下的应用程序运行。

I believe that MSDAORA is only supported for 32-bit applications and the Application Pool the app runs under in IIS is not enabled for 32-bit applications.

我将如何解决这个问题,是不是我可以在IIS改变?或者它是一个code修改?

How would I fix this issue, is there something I can change in IIS? Or is it a code change?

推荐答案

我想出了这个解决方案。从64位机器上运行的机器的问题源于。要改变这种状况在VS中,打开该解决方案的属性页,并在构建选项卡中更改目标平台的x86。这确实的伎俩。

I figured out the solutions for this. The problem stemmed from running the machine on a 64bit machine. To change that in VS, open up the properties page of the solution and in the build tab change the targeted platform to x86. And that did the trick.

<一个href="http://lostechies.com/gabrielschenker/2009/10/21/force-net-application-to-run-in-32bit-process-on-64bit-os/" rel="nofollow">http://lostechies.com/gabrielschenker/2009/10/21/force-net-application-to-run-in-32bit-process-on-64bit-os/

感谢您的帮助尤里。

这篇关于在“MSDAORA.1'提供者未在本地计算机上注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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