I'm trying to use an old ASP.NET app, written using VB.NET by someone (not me) years ago. I've been tasked with maintaining it. It is an Intranet application used twice a year, for about 3 weeks each time. Employees enter data for 3 weeks, twice a year. After they've finished entering data, their managers generate reports, which are then used to report to funding sources. Most of the reports are written in Crystal Reports - they're all working fine. One report generates an Excel spreadsheet, which gets downloaded to the user's machine (a manager), to report to the funding source. It is this part which isn't working. When I run the report in Microsoft Edge, entering the parameters on the page that are then used in the generation of the Excel spreadsheet named Temp.xls, it fails with the error “Couldn’t download – network issue”. When I try using Google Chrome, I get the error "Failed - Network error". So, the same thing that MS Edge is giving me.
Last year I had to make some changes to the app. One of those changes was to the generation of the Excel spreadsheet. This is the code:
Response.ContentType = "application/vnd.ms-excel" 'This needed to be updated https://stackoverflow.com/questions/974079/setting-mime-type-for-excel-document
That changed worked well earlier this year when the app was used by the managers to generate the Excel spreadsheet. I'm now testing the app in preparation for the employees to start using next weekend. But now it doesn't work. It generates that network error.
Nothing has changed in the app since I modified it last year. The only changes that could have occurred would be changes to the server by some Windows update. I don't know where the error could be occurring. And networking isn't in my wheelhouse. I did try to narrow the problem down, by trying to run the report, then looking at both the web server's Event Viewer and my machine's Event Viewer for the timeframe when I was running the report. I looked in the Event Viewer's Windows Logs, the Application, Security and System logs. Both on the web server and my development machine. There were no errors related to this IIS app.
At this point I don't know how to proceed to try and determine why my browsers can't download the Temp.xls file that is being generated at the web server. I'd appreciate some guidance, please.
