Unbale To Read File RRS feed

  • Question

  • Hi ,

    I  am generating an Excel File using the  "Response.ContentType = "application/vnd.ms-excel" after generating the excel file when i tried to open the excel it give me an error "Unable to read file "..... This particuclar error gets only for a case ...



    Wednesday, February 28, 2007 6:26 AM

All replies


    Hi karthik,

    did you got any solution of your problem. I am also facing the same problem. I would appreciate if you could tell me what was your workaround if you fixed this already.




    Tuesday, May 29, 2007 4:19 PM
  • HI


    If you using any control like palce holder or user control . Set the Enabled View State properties to FALSE . I thing thinks should work on .




    K.Karthik Doss

    Wednesday, May 30, 2007 5:56 AM
  • Hi


    I resolve this issue using Me.EnableViewState = False




    Arturo V.

    Saturday, October 6, 2007 3:33 AM
  • Thanks Arturo!

    In my case, the error message appeared selectively even though ViewState was always initiated. I could not figure out any other solution except declaring EnableViewState = False


    Thursday, December 13, 2007 8:49 AM