如何修复此ODP错误,CS0433:'c。中存在'Oracle.DataAccess.Client.OracleCommand'类型 [英] How to fix this ODP error,CS0433: The type 'Oracle.DataAccess.Client.OracleCommand' exists in both 'c
问题描述
我正在使用带有Oracle 10g后端的visual studio 2010,我使用ODT和ODAC 112012连接oracle 10g和vs 2010,之后我用Oracle数据库附上了一个webform,但是得到了这个错误,
CS0433:'c:\ WINDOWS \ Mesrosoft.NET \\'中存在'Oracle.DataAccess.Client.OracleCommand'类型Framework \v4.0.30319 \Temporary ASP.NET Files \ fast team3 \0b28a749\fd6d2f34\assembly\dl3\88307a15\00e8600f_f72ecb01\Oracle.DataAccess.DLL'and'c: \ WINDOWS \ Microsoft /\\\\\\ br />
如果有人知道,请提供解决方案...提前致谢。
Hi,
I am working with visual studio 2010 with Oracle 10g back-end, i used ODT with ODAC 112012 to connect oracle 10g with vs 2010, after i enclosed a webform with Oracle database, but getting this error ,
CS0433: The type 'Oracle.DataAccess.Client.OracleCommand' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\fast team3\0b28a749\fd6d2f34\assembly\dl3\88307a15\00e8600f_f72ecb01\Oracle.DataAccess.DLL' and 'c:\WINDOWS\Microsoft.NET\assembly\GAC_32\Oracle.DataAccess\v4.0_4.112.1.2__89b483f429c47342\Oracle.DataAccess.dll'
Please provide the solution if any one knows...Thanks in advance.
推荐答案
如果有帮助,请尝试以下操作:重新开始解决ODP错误 [ ^ ]
Try following this if it helps: Trying to resolve ODP error [^]
清理解决方案并再次构建,并确保配置文件和bin文件夹中没有引用。
Clean the solution and build again and make sure you don't have references in both config file and bin folder.
Clean and rebuild the solution
delete all ODATAACCESS reference in your library,
clean rebuild,
Open Nugget, add Odataaccess x86
clean rebuild
Open the project path , delete file : Obj & bin
Open C:\Windows\Microsoft.NET
seach look for Temporary ASP.NET Files
delete all file inside it ;
Close VS
restart it , clean build
[OK !]
这篇关于如何修复此ODP错误,CS0433:'c。中存在'Oracle.DataAccess.Client.OracleCommand'类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!