Server Error in '/' Application.

No data exists for the row/column.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: No data exists for the row/column.

Source Error:


Line 228:				OleDbConnection conn2 = new OleDbConnection(conexao);
Line 229:				conn2.Open();
Line 230:				string sql2 = "Select nome from categorias where categoria_id="+DR["categoria_id"]+"";
Line 231:				OleDbCommand cmd2 = new OleDbCommand(sql2,conn2);
Line 232:				OleDbDataReader DR2 = cmd2.ExecuteReader();

Source File: e:\home\abcexpurgo1\Web\materias\view.aspx.cs    Line: 230

Stack Trace:


[InvalidOperationException: No data exists for the row/column.]
   System.Data.OleDb.OleDbDataReader.DoValueCheck(Int32 ordinal) +1044423
   System.Data.OleDb.OleDbDataReader.GetValue(Int32 ordinal) +12
   System.Data.OleDb.OleDbDataReader.get_Item(String name) +27
   ABCExpurgo.materias.view.Page_Load(Object sender, EventArgs e) in e:\home\abcexpurgo1\Web\materias\view.aspx.cs:230
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8637; ASP.NET Version:2.0.50727.8656