My question is very similar to this . But I'm pretty sure that there is no parentheses in web-application directory because it looks like "D:\\Work\\MyProject\\portal\\Web"
In my ISession object getting error in Connection property saying:
*ORA-12154: TNS:could not resolve the connect identifier specified*
It is happening when debugging web-application from localhost in Visual Studio 2010.
But when executing the same code in console application it works perfectly. Connection string is in form of "Data Source=SERVER/oracle;User Id=USER;Password=PASS;"
My development environment summary:
win7 x64 sp1, oracle.dataaccess.dll version 10.2.0.100, ms visual studio 2010
UPDATED
I have changeddeal with Connection property in web application and can in console... But now I have another error:
Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I have completely reinstalled oracle client 10g. I even tried to set all of my projects to x86 (earlier were Any CPU). I have checked .Net Framework version and it is 3.5
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.