Web Matrix 错误“无默认文档" [英] Web Matrix Error "No default document"

查看:46
本文介绍了Web Matrix 错误“无默认文档"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确实是 Web 矩阵和 Razor 语法的新手.但不幸的是,当我尝试运行测试网站时,浏览器中出现错误.

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.

这是错误

"HTTP 错误 404.20 - 未找到没有默认文档."

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

但是当我在浏览器中通过右键单击 + Lunch 打开站点中的任何页面时,它运行正常.

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

{最可能的原因:未为站点配置默认文档.该 URL 包含一个印刷错误.未启用目录浏览.}

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

谢谢:)

推荐答案

从版本 2 开始,如果您从运行"按钮或按 F12 启动站点,WebMatrix 将查找默认文档.您可以管理站点工作区中的默认页面.单击设置按钮.否则,如果您想启动特定(非默认)页面,您已经找到了这样做的方法 - 在文件资源管理器中右键单击它并选择在浏览器中启动.

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.

这篇关于Web Matrix 错误“无默认文档"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆