I generate an excel spreadsheet in my ASP.Net Core web application that gets saved to the website's root directory on WinHost. But when I try to access the generated file (that I confirmed does exist on the server) I get a "HTTP Error 404.0 - Not Found". After researching the error, I found that it's possibly a misnomer, and it's a possible authorization issue when I try to download the file through my application via a FileStream. I read a thread that said that I could possibly get around the issue by changing the Trust Level to "full" by adding the following to my web.config: <configuration> <system.web> <trust level="Full" /> </system.web> </configuration> However, my config is generated by ASP.Net Core and is a system.webServer instead of system.web and I can't currently find a way to do the same in my case. Is there a way around this? Am I way off the mark?