473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ORacleConnection problem

Hi everybody

I have tried to create a Windows Application with an Oracle Connection to a
base, but each time the program comes to my line :
Connection1.Open();
it generates an exception.in 'system.data.oracleclient.dll' with for only
information : "system error"

The fact is when I do exactly the same in an asp.net webform, it works and
doesn't come to any exception !

Does someone has an idea of what to do ?

Thank you so much

Raphael
Nov 16 '05 #1
6 1878
There could be a few different things at play here. In order to same some
time tracking them down, in either this project or a dummy one, drag an
Oracleconnection from the Data Tab of your toolbox. In the Properties Grid,
click on the ConnectionString property. When the configuration wizard comes
up, fill in the respective parts and at the end, select Test Connection. If
you can connect than the most likely problem is your connection string.
It's possible for instance that the account you are connecting from on the
web server, like the aspnet account have permissions whereas yours may not.
Or you could have typed something incorrectly in the username or passsword.

Anyway, if you can't connect from there, you may need updated data access
components or it's possible something is wrong with your install or that it
got corrupted and you may need to reinstall it. Before you go through any
of that though, check the easy stuff.

Let me know and we'll take it from there.

Bill

--
W.G. Ryan MVP Windows - Embedded

http://forums.devbuzz.com
http://www.knowdotnet.com/dataaccess.html
http://www.msmvps.com/williamryan/
"Raphaël ARBUZ" <ra**********@netcourrier.com> wrote in message
news:40**********************@nan-newsreader-04.noos.net...
Hi everybody

I have tried to create a Windows Application with an Oracle Connection to a base, but each time the program comes to my line :
Connection1.Open();
it generates an exception.in 'system.data.oracleclient.dll' with for only
information : "system error"

The fact is when I do exactly the same in an asp.net webform, it works and
doesn't come to any exception !

Does someone has an idea of what to do ?

Thank you so much

Raphael

Nov 16 '05 #2
Thanks a lot for your message. Unfortunately, it didn't give me a
solution to my issue. My connection string is OK, and everything is, to
my mind, supposed to work correctly. If it was an installation problem,
I would have the same problem when using OracleConnections in an asp
WebForm, don't you thing so ? So I absolutely can't figure out what the
problem is.

If you have any other idea...

Anyway thank you very much again for trying to figure out what to do.

Sincerely
Raphael
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
I was thinking permissions may be the problem. So you can definitely create
a connection if you drag one from the designer and then use Verify
Connection?

Also, why not wrap the Open in a try catch block (or is it already in one?)
and see what trapping the OracleException will tell you. Often you see the
reverse problem happening, works on Winforms won't on ASP.NET and often b/c
it's a permission problem.

Not sure what it is but there has to be some clue. If you can create a
connection from the designer and it will verify connection, then it's got to
be something in the app we're overlooking. If you can't connect though,
then we're not going to be able to connect through code.

Let me know, we'll figure it out.

--
W.G. Ryan MVP Windows - Embedded

http://forums.devbuzz.com
http://www.knowdotnet.com/dataaccess.html
http://www.msmvps.com/williamryan/
"Raphaël Arbuz" <ra**********@netcourrier.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Thanks a lot for your message. Unfortunately, it didn't give me a
solution to my issue. My connection string is OK, and everything is, to
my mind, supposed to work correctly. If it was an installation problem,
I would have the same problem when using OracleConnections in an asp
WebForm, don't you thing so ? So I absolutely can't figure out what the
problem is.

If you have any other idea...

Anyway thank you very much again for trying to figure out what to do.

Sincerely
Raphael
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4
Thanks again.

By using a try and catch block, I got for exception message "Connection
interrupted", and I can't figure out why.... I have tested the
connection and everything, and it doesn't change anything if I use the
code instead of draging an OracleConnection component in my form...

The problem number is ORA-12537 but I don't know what it refers to...

Any other clue ?

Thanks again for your help

Sincerely,

Raphael
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5
it's not a firewall problem is it? ie is the oracle TNS listener port
(default 1521) is blocked by a firewall.
Nov 16 '05 #6

No, I don't use a firewall...

Still the same problem ;(

Thanks again

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kevin Vogt | last post by:
When initially loaded, my web application (below) takes ~120000 milliseconds to open its connection. But repeated executions take 0 milliseconds each. But when I wait for approx. 5 minutes and try...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
3
by: Peter Kanurer | last post by:
I thought "using System.DataAccess.Client" would contain all necessary stuff for OracleConnection, OracleCommand and OracleDataReader objects but this is not the case. They are still...
2
by: Werner Sammer | last post by:
I tried to connect to an existing Oracle Database with the following ConnectionString: using System.Data.OracleClient; // + Added Reference "System.Data.OracleClient" string cs = "Data...
6
by: Peter K | last post by:
Hi - is it the case that OracleConnection does not call close when the connection is disposed? For example, I use this sort of construct: using (OracleConnection conn = GetConnection()) {...
1
by: walterb | last post by:
I had a hard time finding this information on the web, so I decided to post it here for someone else. I was finding it difficult to locate information on the proper method to store the database...
7
by: BiffMaGriff | last post by:
I have an query I run against an Oracle Connection. I have these objects, an event table and a table to map my objects to my events. My select statement selects the most recent event for each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.