GIDForums  

Go Back   GIDForums > Computer Programming Forums > .NET Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 08-Oct-2005, 11:12
Masum Masum is offline
New Member
 
Join Date: Mar 2005
Posts: 20
Masum is on a distinguished road

Connecting To Oracle Through Odp .net


hi,
here's another problem i've and hopefully someone will have the solution. I am trying to connect to oracle 9i using ODP .net (I installed ODP .net). But when i compile my .cs file in command line (as i don't have visual studio and use Dreamweaver), i get the following errors...
Code:
error CS0246: The type or namespace name 'Oracle' could not be found (are you missing a using directive or an assembly reference?)

The above error is getting generated from these two lines:
Code:
using Oracle.DataAccess.Client; using Oracle.DataAccess.Types;
a help would be highly appreciated..

regards.
  #2  
Old 13-Oct-2005, 05:41
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 927
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: Connecting To Oracle Through Odp .net


Hi Masum,

I found this:
You need to either add a reference to your web.config file or copy the Oracle.DataAccess.dll file into your webapp's bin directory

or

When you compile your app at the command line just add the Oracle.DataAccess.dll as a reference. Like so,

csc mywebpage1.aspx, mywebpage2.aspx /out: myapp /reference: c:\oracle\ora92\bin\oracle.dataaccess.dll /target:library

You can visit this link for more information:
Using Oracle Database Transactions

Cheers,
Paramesh.
__________________

Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Just walk beside me and be my friend.
  #3  
Old 14-Oct-2005, 05:09
Masum Masum is offline
New Member
 
Join Date: Mar 2005
Posts: 20
Masum is on a distinguished road

Re: Connecting To Oracle Through Odp .net


Thnx Ramesh. I tried that already. Now i've got another problem. Now its giving me the following error.
Error:
Unable to load DLL(OraOps9.dll)

I don't have OraOps9.dll file in the bin directory(where its supposed to be) of the oracle home. But i have OraOps9.dll file in ODP .NET bin directory. I copied the file across to the oracle home bin directory but still having the same problem.

I think i should make it clear that i am using oracle 9.0.1.1.1 and ODP .NET 9.02....I was reading in Oracle site that you have to have Oracle 9.0.2 version or something, but in some forum somewhere i was reading that u can even use ODP .NET with oracle 8i. So please help me out here, whether i can or can't use Oracle 9.0.1 with ODP .net?

Regards,
  #4  
Old 14-Oct-2005, 05:17
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 927
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: Connecting To Oracle Through Odp .net


Hi,
Try this link:
FAQS

Or try this:
grant permissions to the Oracle home directory to the asp.net
account(and possibly the iuser_machinename account). The oracle home
directory isn't generally visible to non-interactive accounts. You may need
read/execute on the oracle_home\bin directory.

Regards,
Paramesh.
__________________

Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Just walk beside me and be my friend.
 
 

Recent GIDBlogWriting a book by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does .NET Plot Graphs? JasonMichael .NET Forum 7 19-Mar-2008 17:01
Introduction to .NET LuciWiz .NET Forum 5 09-Aug-2007 04:53
problem of c structure in .net ganesh_ghodke C Programming Language 7 26-Aug-2005 04:14
UDP Sockets between .NET and VS6 MikeZ MS Visual C++ / MFC Forum 2 19-Feb-2004 10:55
IP*Works! CC ICharge .NET Edition Launched at DiscountASP.NET dasp Web Hosting Advertisements & Offers 0 25-Aug-2003 19:27

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:20.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.