通过Visual Stdio 2005连接到Oracle数据库 [英] Connecting to oracle databse by visual stdio 2005

查看:82
本文介绍了通过Visual Stdio 2005连接到Oracle数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我错误地右键单击了项目名称(website1),然后单击了添加引用",然后选择了".NET",然后选择了"Oracle.DataAccess \ 2.112.1.0",即使我已经拥有了Oracle.DataAccess.Client在顶部名称空间区域上.添加引用后,它显示以下错误.我该如何解决?请紧急解决此问题

< code>错误1类型``Oracle.DataAccess.Client.OracleCommand''同时存在于``c:\ WINDOWS \ assembly \ GAC \ Oracle.DataAccess \ 10.2.0.100__89b483f429c47342 \ Oracle.DataAccess.dll''和''c:\ WINDOWS \ assembly \ GAC_32 \ Oracle.DataAccess \ 2.112.1.0__89b483f429c47342 \ Oracle.DataAccess.dll''C:\ Documents and Settings \ cmsdev3 \ My Documents \ Visual Studio 2005 \ WebSites \ WebSite1 \ App_Code \ DBQueries .cs 159 66 C:\ ... \ WebSite1 \</code>

I by mistake right clicked on the project name( website1) and clicked on "add a reference" and chose ".NET" and chose "Oracle.DataAccess\2.112.1.0" eventhought I had the Oracle.DataAccess.Client already on the top name space area.And it is showing the following error after I add the reference . How do I fix it?Please help me with this this is urgent

<code>Error 1 The type ''Oracle.DataAccess.Client.OracleCommand'' exists in both ''c:\WINDOWS\assembly\GAC\Oracle.DataAccess\10.2.0.100__89b483f429c47342\Oracle.DataAccess.dll'' and ''c:\WINDOWS\assembly\GAC_32\Oracle.DataAccess\2.112.1.0__89b483f429c47342\Oracle.DataAccess.dll'' C:\Documents and Settings\cmsdev3\My Documents\Visual Studio 2005\WebSites\WebSite1\App_Code\DBQueries.cs 159 66 C:\...\WebSite1\</code>

推荐答案

只有一种解决方案

找到名称的"DBQueries.cs"文件,然后将其打开,
更改名称空间名称,换句话说,
only one solution

find the name''s "DBQueries.cs" file then open it,
change the namespace name use other word,


这篇关于通过Visual Stdio 2005连接到Oracle数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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