I developed a module with VB.NET fully functional with DNN 5.0.0 to DNN 5.6.2.
I have a section to download a PDF with the following code:
Dim files As New System.IO.FileInfo System.IO.FileInfo = (pathT)
Response.Clear ()
Response.AddHeader ("Content-Disposition", "attachment; filename =" & file.Name)
Response.AddHeader ("Content-Length", file.Length.ToString ())
Response.ContentType = "application / pdf"
Response.WriteFile (file.FullName)
Response.End ()
With DNN 6.0.2 does not start the download, but does not return any error message, even in the log. I can debug the code until the end of the procedure without error (with the previous version when I pass the line "Response.End ()" the download started).
I think it's a problem with the skin or popup (I used the standard skin after a new installation) ... The module is visible at
www.cedolo.com
Tips? Even changing the mode of download :-)
Thanks in advance.