Welcome Guest Search | Active Topics | Sign In | Register

EO WebBrowser Download Issue Options
Craig Oliver
Posted: Wednesday, January 27, 2016 8:39:33 AM

Rank: Advanced Member
Groups: Member

Joined: 7/7/2014
Posts: 60
Good morning,

We've an interesting issue with the 2015 version of the EO WebBrowser. Our production code is 15.2.61, but the issue persists in the current 15.3.78 version.

For all other downloads, it works just fine. But this particular case is interesting: we allow our users to download SQL scripts generated on our server. The file name may have spaces and always end in SQL. The application, when you click the download button, just dies. There are no exceptions or anything, even the Application_DispatcherUnhandledException never gets called. Hit happens sometime between the BeforeNavigate and the BeforeDownload events.

I've used the remote debug port, but nothing untoward is happening there.

Is there some sort of additional logging we can turn on for either the web view or web engine? This is not overly critical: the only users allowed to do this are all in-house, and they can connect to the site directly in Chrome and the download works just fine there. But I don't like things basically taking down the entire program with no notice or catchable errors!

thanks!
eo_support
Posted: Wednesday, January 27, 2016 10:32:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Is there any way you can create a small test app or put a test app online so that we can access it here to see the problem? Once we can see the problem, we will debug it through the source code to find out why.

Thanks!
Craig Oliver
Posted: Wednesday, January 27, 2016 10:48:56 AM

Rank: Advanced Member
Groups: Member

Joined: 7/7/2014
Posts: 60
Technically you could go to gEHRiMed Windows 10 Launcher and install that, then go to the demo site (button on lower right). However - that download option is not available to many people - just our internal users.

I'm still poking at things when I have the time. For us this is a low priority: it only affects us, not our customers, and we have a work-around. I just don't like things crashing without leaving any sort of trace to see why it crashes.

However, the download part of the server looks like:
Quote:
public ActionResult Export(int permissionGroupID)
{
var model = new PermissionGroupModel(permissionGroupID);
var result = new FileContentResult(Encoding.ASCII.GetBytes(model.AsScript()), "text/plain");
var safeName = model.Name;
System.IO.Path.GetInvalidPathChars().Each(c => safeName = safeName.Replace(c, '_'));
result.FileDownloadName = "Define Role - " + safeName + ".sql";
return result;
}

Where it is just returning text file (SQL) converted to an ASCII byte array. On the EO browser side, it successfully handles the BeforeNavigation event - I log that. But it breaks before the BeforeDownload event, or just in there: when running in the debugger I can actually download the file successfully, but the program dies when that is done. Running with the program normally executing, it just dies.

I hate to bring up the old race condition, but due to the differences in behavior between production and debugging, it seems a possibility.

On a side note, for some reason a couple of our screens don't initially render with the DLL: resizing or refreshing works. We're a single page server basically, so could be the rendering engine does not always see the update. Just a guess, and I think we've another question in the forums about that (that, and the print dialog for page orientation still does not work for the 2015 version - it does on the pre-2015 version).

Thanks for any assistance. If this does bump up in our priority list, I'll see if I can write a simple API to return a SQL string as we generated, as well as breaking out the code for the download to see if I can recreate it in test programs.
eo_support
Posted: Wednesday, January 27, 2016 11:11:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Thanks for the additional information. If you can write a simple API and put it online or create a test application it would be very helpful to us. In the mean time if we fix it on our side we will update you as well.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.