oracleclient - Why do I get Oracle connection errors only in a VS 2008 web app/site project? -


Using Visual Studio 2008 on Vista 64bit, if I create a test web site or web application that looks like this Looks ...

Public Partial Class _Default: System.Web.UI.Page {Secure Zero Page_load (Object Sender, EventArgs e) {OracleConnection Connection; Connection = New Oracle Connection ("User ID = User; Password = Usager; Data Source = Datasource;"); Connection.Open (); }}

... and to run it, I get the following error.

  ORA-12154: TNS: could not resolve the specified identifier identifier  

I am aware of this issue about parents ...

Visual Studio 2008 is installed in program files (x86) but another god has only one setup and it works for him. The project itself is not in a directory with a name that has parents.

I know that this is not my tnsnames.ora or my sqlnet.ora file. I am setting my machine in the same way that all the Gods who are working on this project.

I also have 100% certain strings that I am using are correct.

If I am creating a console application with the same exact code, it connects properly. I can ping the Oracle server and use that connection string information directly through that command prompt.

Another strange thing is that if I create a web application or web site with the same code using VS2005 (it is also installed in the program file (x86)) it works fine too Does.

This is limited to web applications and sites only using VS 2008.

Edit: I should add that all the permissions given to everyone present in my oracle folder are

Edit: Oracle version is 10.2.0

Edit: Thanks for the insight, I can never get it to work and other gods and I decided that To make this work, XP VM will be built faster. In a matter of hours I had set up one and everything is going well.

I have the same problem and many hours later !!! .. detected that the version of Oracle installation was not updated. I installed 10.2.0.4 and Viola (10.2.0.1 does not work!) Some Oracle bugs


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -