播放ASP.NET Web Api时出现404错误 [英] Get 404 error when play ASP.NET Web Api
本文介绍了播放ASP.NET Web Api时出现404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
让我们从 asp.net web api教程。在Visual Studio 2015中,转到项目属性/ web,然后创建虚拟目录。(IIS Express)
按F5,Web浏览器转到localhost:9000。
但我在 服务器错误 -string>' /'应用程序。
无法找到资源。
那么怎么回事?解决方案将起始页面设置为index.html,project-> Properties-> web tab->特定页面,或右键单击解决方案资源管理器中的index.html并选择设置为启动。
Let's download the code from asp.net web api tutorial. In Visual Studio 2015, go to the project property/web, then create virtual directory.(IIS Express)
Press F5, the web browser goes to localhost:9000.
But I got
Server Error in '/' Application.
The resource cannot be found.
So what is wrong?
解决方案
Set the start page to index.html, project->Properties->web tab->specific page, or right-click index.html in the solution explorer and select to set as startup.
这篇关于播放ASP.NET Web Api时出现404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文