Hi,
I'm not sure if this is an episerver problem but i'll try :-)
I'm generating a excel-file when the user clicks a button. On localhost this works fine, the download dialog pops up and I can download or open the generated excel-file. When I move to the production server the content of the excel-doc is "episerver 404 error msg" (cant find page....)
localhost is xp pro, server is 2003, episerver is 4.61 on both machines.
Thanks !!
/frode
Response.Clear();
Response.AddHeader("Content-Disposition", "inline;filename=excelreport.xls");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/ms-excel";
Response.ContentEncoding = System.Text.Encoding.Default;
System.Text.StringBuilder str = new System.Text.StringBuilder();
..... str is filled with a table ....
Response.Write(str);
Response.End();
Response.Flush();
Response.Clear(); Response.AddHeader("Content-Disposition", "inline;filename=excelreport.xls"); Response.Charset = ""; Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = "application/ms-excel"; Response.ContentEncoding = System.Text.Encoding.Default; System.Text.StringBuilder str = new System.Text.StringBuilder(); ..... str is filled with a table .... Response.Write(str); Response.End(); Response.Flush();