Application.Download causes application to terminate

0
0

Not sure what’s going on here…

I’m calling Application.Download(Stream, string, Action<string>) to download a small CSV file to the user.

  • The download does occur – the file is saved
  • The callback is never called
  • iisexpress terminates with exit code -1
  • No exceptions are raised
  • Nothing is logged
  • If I comment out the call to Application.Download the app does not terminate (and of course the download doesn’t happen either)

.NET Framework 4.8

Windows 11

Visual Studio 2022

Wise-J 3.1.8

Brave (Chromium) browser

 

  • You must to post comments
0
0

Annoyingly, while this was 100% reproducible on Friday, it works 100% of the time today, with the exact same sequence of clicks, exact same application code.  The computer was rebooted since Friday, so maybe cobwebs…

To Luca’s comment – best I could tell, no exception was occurring.  I was running under the debugger with all exceptions breaking into the debugger.  It’s as if something inside iisexpress.exe just called Terminate.  Strange.

I’ll let you know if it happens again and I make any progress on it, meanwhile, I’m chalking it up to strange behavior under the debugger – something I’m sure everyone has experienced!

 

  • You must to post comments
0
0

Works very well for me. The exception is probably coming from the application’s code.

  • John Daragon
    Just a data point at the moment – I’m having the same problem under .Net 7. I’ll try a reboot, too.
  • John Daragon
    Yep – a reboot of my dev machine fixed the problem.
  • John Daragon
    Whilst a reboot allows this to function correctly (in debug, under Visual Studio…), allowing the dev machine to enter sleep mode makes the problem return. I still don’t have any idea why that should be :)
  • You must to post comments
0
0

Carl,

please provide us with a test case that helps us to reproduce that issue.
Did you try with other files (not .CSV)?

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.