J
Jon
Since installing the 2.0 Framework, all of my websites that allow for
report download have broken. These websites generate reports in pdf,
word, or excel content type and then write the content of the file to
the response. Here is an example of the code
dim fileName as String
fileName =
attachmentGenerator.getPDFReport(Request.Params.Item("id"))
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(fileName)
Response.Flush()
Response.Close()
System.IO.File.Delete(fileName)
The sites use various content types, such as excel and word, but all
are broken by the 2.0 update.
I ran aspnet_regiis -u for the 2.0 version on that server to uninstall
the 2.0 asp engine on iis. I then uninstalled the 2.0 framework from
the server. Then I ran aspnet_regiis -i to re-install the 1.1.4
version of the asp.net engine for iis just as a desperate move.
The problem has not gone away. I have a try catch block around this
sample code and no exceptions are appearing.
The client browser, whether on the server or remotely, just opens with
a blank page and no content. It used to automatically open the web
based viewers for pdf, excel, or word.
Thanks for any help you can give me!
report download have broken. These websites generate reports in pdf,
word, or excel content type and then write the content of the file to
the response. Here is an example of the code
dim fileName as String
fileName =
attachmentGenerator.getPDFReport(Request.Params.Item("id"))
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(fileName)
Response.Flush()
Response.Close()
System.IO.File.Delete(fileName)
The sites use various content types, such as excel and word, but all
are broken by the 2.0 update.
I ran aspnet_regiis -u for the 2.0 version on that server to uninstall
the 2.0 asp engine on iis. I then uninstalled the 2.0 framework from
the server. Then I ran aspnet_regiis -i to re-install the 1.1.4
version of the asp.net engine for iis just as a desperate move.
The problem has not gone away. I have a try catch block around this
sample code and no exceptions are appearing.
The client browser, whether on the server or remotely, just opens with
a blank page and no content. It used to automatically open the web
based viewers for pdf, excel, or word.
Thanks for any help you can give me!