Receiving “Path 'OPTIONS' is forbidden.” Exception in ASP.NET website

前端 未结 6 1599
粉色の甜心
粉色の甜心 2021-02-07 11:35

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

6条回答
  •  醉梦人生
    2021-02-07 11:47

    OPTION is a verb used by "Microsoft Data Access Internet Publishing Provider Protocol Discovery" (Part of MS Office) to make request when a user opens a URL from inside office applications.

    You should be able to re-create the issue by going File>Open in Word/Excel 2003 and above and specifying the full URL of the file. Alternatively by placing a link to an excel file on your server in an office document and clicking it.

    You can fix it by adding this to your web.config file with additional lines for each file type:

    
      
      
    
    

提交回复
热议问题