oracle12c - Passing a dataset from Oracle to C# gives me an instruction pointer error -


i've got following block of c# code pass variable oracle 12c procedure , return dataset:

    public void show_data()     {         try         {             oracleconnection conn = getconnection();             {                 conn.connectionstring = configurationmanager.connectionstrings["conncst"].tostring();                  oraclecommand cmd3 = new oraclecommand();                 cmd3.commandtype = commandtype.storedprocedure;                 cmd3.commandtext = "cst_feedback";                 cmd3.connection = conn;                  cmd3.parameters.add("lineid", oracletype.number).value = hlineid.value;                 cmd3.parameters.add("emp_out", oracletype.cursor).direction = parameterdirection.output;                  //connection2.open();                  var searchadapter = new oracledataadapter(cmd3);                 var ds = new dataset();                 searchadapter.fill(ds);                  responserepeater.datasource = ds;                 responserepeater.databind();             }         }         catch (exception ex)         {             response.write(ex.message);         }      } 

when code gets line var ds = new dataset(); fails following message:

cannot obtain value of local variable or argument because not available @ instruction pointer, possibly because has been optimized away.

can tell me means and/or how fix this?

this problem occurs when debugging code optimized compiler.

switch build configuration "debug", or if active, go project -> properties -> tab [build], [x] optimize code, , uncheck it:

optimize-code.png


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -