Application.Download broken?

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
Answered
0
0

Still running through my application since upgrading to 1.2.46.

I was using Application.Download(stream, filename) to download a file to the browser. I think my code was working in previous versions but now I get a null reference exception in the wiseJ core:

at Wisej.Core.ResponseManager.RegisterClientScript(IWisejComponent component, String script)
at Wisej.Base.ApplicationBase.Navigate(String url, String target)
at Wisej.Base.ApplicationBase.Download(String filePath, String fileName)
at Wisej.Base.ApplicationBase.Download(Stream stream, String fileName)

  • You must to post comments
Best Answer
0
0

Fixed in 1.2.53

  • You must to post comments
0
0

Hi Luca,

No embarrassment necessary. You guys (particularly yourself and Frank – those that hang out on this forum) are doing an amazing job on both WiseJ and keeping us (your beta users) in the loop. I’m totally aware that this is a beta and I’m grateful to you for involving us and being so responsive to the issues we find. It gives me a great deal of confidence in the future of the WiseJ.

Nic

  • You must to post comments
0
0

Hi Nic,

My apologies for not testing this. We were rushing to update a show stopper in .48. It’s fixed now. Also Application.Download(file) automatically root the file (if unrooted) to the application’s directory.

And, to make this look less embarrassing, we are  building a set of regression tests also incorporating all the feedback we get here and it will be a requirement on the release build.

Thank you again,

Luca

  • You must to post comments
0
0

With 1.2.49 I no longer get the error but I’m not seeing a download either.

Nic

  • You must to post comments
0
0

Yes, sorry it’s the new context restore that requires the context. Internally the last step of Download was using null.

  • You must to post comments
Showing 5 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json