Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

Please i have a code that interacts with Oracle and is working fine in my local..

And when i have hosted to the server ...its giving me error

The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception. - at Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString)
Please help
Posted
Comments
[no name] 24-Jun-13 10:02am    
Well check your connection string.
Ranjith Kumar 24-Jun-13 10:15am    
As i said earlier its working in my local with no errors with same connection string
ZurdoDev 24-Jun-13 10:22am    
First, you need to reply to the user instead of add a new comment to your own question. Second, fix your connection string. The connection string tells the code what the server name is, username and password, etc which will hopefully be different hosted on the server.
Ranjith Kumar 24-Jun-13 10:33am    
I rechecked twice but no connection string problem
ZurdoDev 24-Jun-13 10:36am    
Did you change the connection string? The one that works on your local machine will not work on a hosted server.

1 solution

172.24.35.85 is aprivate IP address. If your database is hosted somewhere in the internet, you won't be able to access it with that IP address (unless you have some Virtual Private Network configured).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900