473,606 Members | 3,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ORacleConnectio n 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.Ope n();
it generates an exception.in 'system.data.or acleclient.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 1891
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
Oracleconnectio n from the Data Tab of your toolbox. In the Properties Grid,
click on the ConnectionStrin g 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**********@n etcourrier.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.Ope n();
it generates an exception.in 'system.data.or acleclient.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 OracleConnectio ns 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**********@n etcourrier.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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 OracleConnectio ns 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 OracleConnectio n 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
455
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 again, it takes another 120000 milliseconds for Open(). This behavior gets really irritating with the real web application that I'm working on. But the thing I don't understand is, when I make a console app that does the same sort of thing, the...
117
7158
by: Peter Olcott | last post by:
www.halting-problem.com
28
5195
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(); .... and then call the virtual method, why is it that the base class's method is called instead of the overridden method? How do I fix this if I don't know at runtime what the child class is? I'm using Activator.CreateInstance() to load the...
6
3795
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 is more that 1249 bytes, then the progress bar of the browser will move too slow and then displaying that the page not found!!!! If the message is less than or equal to 1249 then no problem.
3
2861
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 unresolved after adding. Do I have to install a separate package or enable Oracle specific extensions somewhere in VisualStudio 2005 (Express) ?
2
9600
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 Source=XE;User Id=karl;Password=mypasswd"; connection = new OracleConnection(cs); connection.Open(); This code yields an "Invalid argument" ORA-12532 error.
6
4493
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()) { using (OracleTransaction tx = conn.BeginTransaction()) { using (OracleCommand command = conn.CreateCommand())
1
17576
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 username and password in the web.config file, but reference it in my C# code while using ODP.NET. The problem was how to get the OracleConnection to use the connectionString in the web.config file. The trick is to use the...
7
1730
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 object and if it meets certain requirements then the object's id is returned. something like select o.id from objects o, events e, objecteventmap oem, (select max(date), o.id from events e, objects o, objecteventmap oem where e.id = oem.eventid...
0
8036
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7978
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8461
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8448
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8317
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6796
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3948
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4010
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1313
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.