Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
-
i am using this code but it give the exception:- Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack Please help me. Thanks string path = @"C:\\VB2005\\FileConversion\\FileConversion.Web\\Upload\\mailid.pdf"; imageBytes = sqlCommand.ExecuteScalar() Response.Clear(); Response.Buffer = true; Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", path); StringWriter stringWriter = new System.IO.StringWriter(); HtmlTextWriter htmlTextWriter = new HtmlTextWriter(stringWriter); this.RenderControl(htmlTextWriter); Response.Write(stringWriter.ToString()); Response.End();
Piyush Vardhan Singh p_vardhan14@rediffmail.com Eventure Technology http://holyschoolofvaranasi.blogspot.com http://holytravelsofvaranasi.blogspot.com