Error: The connection Must Be open for this operation

Hi Expers!

Production Scenario:
Web Application made using Asp.Net 1.1 C#
Host IIS: Windows 2003 Server x86, IIS 6,
Host DB: SQL Server 2005 SP2, Oracle Database 10g Release 1

In Development Environment, Certification and Testing (3 different environments), the application works correctly.

But production is not working.

The application error occurs into a specifiable screen (which accesses an Oracle DB), displays the following error:

"The connection Must Be open for this operation" (screen attached)

I believe it is due to some problem with the Oracle DLLs.

What is better way to find a solution to this error?

Thx!


error.JPG
br_msAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
I know you said it runs everywhere except production but...

This error pretty much has to be because con.open was never called.

Are you sure ALL files are copied over? Maybe there is something in the global.asax or similar config file that opens a connection and that file isn't being migrated into production?
 
Is that the complete stack trace?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
br_msAuthor Commented:
I'm sure not a problem of code or deployment incomplete.

I believe that is caused by Oracle version of the DLLs, but I do not know how to start.

Thx.
0
slightwv (䄆 Netminder) Commented:
Again:  Is that the complete stack trace?


I've never seen that error from a version incompatibility.  

Looks like you are using ODP.Net.  The important DLL is OracleDataAccess.dll.  Check the version between the different systems.
0
Do You Have a Trusted Wireless Environment?

A Trusted Wireless Environment is a framework for building a complete Wi-Fi network that is fast, easy to manage, and secure.

drypzCommented:
Is your production and development share the same database server? If not then maybe there's something wrong in your connection string.
0
br_msAuthor Commented:
Resolved!
0
eagle_eaCommented:
How exactly was this resolved? I'm having the same issue too
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.