Web Matrix Error “No default document”

时光总嘲笑我的痴心妄想 提交于 2019-12-11 06:24:10

问题


I'm new to Web matrix and Razor Syntax indeed. But unfortunately I have an error that appears in the browser when I try to run a test website.

and this is the error

"HTTP Error 404.20 - Not Found No default document."

but when I open any pages in the site through Right Click + Lunch in browser it runs properly.

There are some suggested solutions that appeared in the browser but I couldnt benefit from them

{Most likely causes: A default document is not configured for the site. The URL contains a typographical error. Directory browsing is not enabled. }

Thanks :)


回答1:


From version 2, WebMatrix will look for a default document if you launch the site from the Run button or by pressing F12. You can manage default pages in the Site workspace. Click the Setting button. Otherwise, if you want to launch a specific (non-default) page, you have already discovered the way to do that - right click on it in the file explorer and choose Launch in browser.



来源:https://stackoverflow.com/questions/11872810/web-matrix-error-no-default-document

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!