Showing posts with label Solved Errors. Show all posts
Showing posts with label Solved Errors. Show all posts
Monday, 3 March 2014
Tuesday, 17 December 2013
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
Solved : Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
Reason:
The Response.End method ends the page execution and shifts the execution to the Application_EndRequest event in the application's event pipeline. The line of code that follows Response.End is not executed.This problem occurs in the Response.Redirect and Server.Transfer methods because both methods call Response.End internally.
Solution:
For Response.Redirect
Response.Redirect ("nextpageURL.aspx", false);
For Server.Transfer
Use Server.Execute instead of Server.TransferWednesday, 8 August 2012
RUNTIME ERROR : "object does not contain a definition for get_Range" in MS Excel
Microsoft.Office.Interop.Excel.Range myrange = excelsheet.get_Range(excelsheet.Cells[1, 1], excelsheet.Cells[this.dataGridView1.RowCount + 1, this.dataGridView1.Columns.Count]);
Solution:
Include (object) as shown in the below line....................
Microsoft.Office.Interop.Excel.Range myrange = excelsheet.get_Range((object)excelsheet.Cells[1, 1], (object)excelsheet.Cells[this.dataGridView1.RowCount + 1, this.dataGridView1.Columns.Count]);
Solution:
Include (object) as shown in the below line....................
Microsoft.Office.Interop.Excel.Range myrange = excelsheet.get_Range((object)excelsheet.Cells[1, 1], (object)excelsheet.Cells[this.dataGridView1.RowCount + 1, this.dataGridView1.Columns.Count]);
Subscribe to:
Posts (Atom)

