我创建了一个空的webapi2项目,并创建了一个默认控制器。当我尝试访问我的控制器时,我得到The Web server is configured to not list the contentsGo to the IISExpress install directory.is specified for the Web site or appli
安装程序还会安装IIS 8 Express,Visual Studio现在将其用作默认web服务器。
IIS 8阻止了使用PUT和DELETE谓词的WEBAPI请求。IIS返回405错误The requested resource does not support http method 'PUT'。我知道人们在过去对此有问题,在Stack Overflow上有几条关于它的消息