Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# IIS 10.0详细错误-404.0-未找到-Windows 10更新后_C#_Asp.net_Iis_Asp.net Web Api_Visual Studio 2015 - Fatal编程技术网

C# IIS 10.0详细错误-404.0-未找到-Windows 10更新后

C# IIS 10.0详细错误-404.0-未找到-Windows 10更新后,c#,asp.net,iis,asp.net-web-api,visual-studio-2015,C#,Asp.net,Iis,Asp.net Web Api,Visual Studio 2015,我对我的webapi应用程序或IIS在windows10更新之后发生了什么感到非常困惑 以下某些控制器工作正常: [RoutePrefix("api/test")] public class TestController : ApiController { [HttpPost] [Route("test01/{str}")] public IHttpActionResult Test01([FromUri]string str) { return Ok(s

我对我的
webapi应用程序
IIS
windows10更新之后发生了什么感到非常困惑

以下某些控制器工作正常:

[RoutePrefix("api/test")]
public class TestController : ApiController {
    [HttpPost]
    [Route("test01/{str}")]
    public IHttpActionResult Test01([FromUri]string str) {
        return Ok(str);
    }
}
但是其他一些类似的方法不起作用,并返回
IIS 10.0详细错误-404.0-未找到

[RoutePrefix("api/companies")]
public class CompaniesController : ApiController {
    [HttpPost]
    [Route("test/{str}")]
    public IHttpActionResult PostCompany([FromUri]string str) {
        return Ok(str);
    }
}
注意:我已删除Windows和Visual Studio的更新。甚至重新安装了Visual Studio并从windows功能重新启动了IIS,但没有做任何更改

现在我正在考虑重新安装操作系统。你有什么建议


更多信息:我已经在同事的机器上测试了它,它的所有操作都按预期工作。

在尝试了大量与
操作系统
visual studio
iis
相关的解决方案后,我发现真正的问题是由于引用了另一个具有相同控制器名称的
webapi
项目引起的

我不确定这是否是一个bug,但我没想到会有这样的行为