I am getting the error System.Web.HttpException: Path \'OPTIONS\' is forbidden.
since we moved our website over to a new server setup. I am unable to recreate the e
When I got this exact error while trying to send an .xls file from an ASP.Net web page, it was because I had omitted the filename extension here:
Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName);
Response.ContentType = "application/vnd.ms-excel";
That fileName
needs to be fileName.xls