Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cannot cast OracleString to System.string

zduJan 29 2008 — edited Jan 31 2008
Hi, does any one has any idea about the problem discussed in the following thread:

577196

Basically, the problem is an InvalidCastException would be thrown with the following code in the .cs file of the DataSet (.xsd file):

rtn_mesg = ((string)(command.Parameters[2].Value));

The code is actually trying to return a VARCHAR2 out parameter of a stored procedure.

Thank you very much in advance.

ZD
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2008
Added on Jan 29 2008
9 comments
7,498 views