WIN7 64位操作系统环境下.Net连接Oracle数据库解决方案

来源:互联网 发布:卖爬虫的数据犯法吗 编辑:程序博客网 时间:2024/05/08 07:20

操作系统:WIN7 64位

开发工具:VS2010

数据库:Oracle 10g (32位)

一、B/S模式(WebForm)

      问题描述:Web项目在连接Oracle数据库时报错:ORA-06413: Connection not open.    

      解决方法:不使用Webdev进行调试,而使用IIS调试。

     

     这样设置后,每次运行就好以IIS来运行,Visual Studio 就可以正常调试、运行了。

二、C/S模式(WinForm)

    问题描述:WinForm项目在连接Oracle数据库时报错,提示:

                      -The error occurred while loading Providers

                      -initialize provider

                      -Check oracle10.2

   解决方法:将目标平台改成:X86 就可以调试运行了。







0 0
原创粉丝点击