ASP.NET网页无法运行 [英] ASP.NET web page won't run
问题描述
我已经使用MS WebMatrix创建了一个ASP.NET页面.
当我在本地计算机上运行该页面(通过WebMatrix或独立运行)时,该页面运行良好.
我使用FileZilla将其上传到新主机(这是ASP.NET主机,因此我知道该部分有效).
Default的主要页面是 Default.cshtml ,它位于所提供页面的子目录(HTTPDocs)中.
当我尝试浏览(www.greystarling.co.uk)时,它说禁止
您无权访问此文档."
有任何想法吗?
I have used MS WebMatrix to create an ASP.NET page.
This page works perfectly well when I run it on my local machine, (either through WebMatrix or stand alone).
I used FileZilla to upload this to a new host (this is an ASP.NET host, so I know that part works).
The main Default page is Default.cshtml and this is held in a subdirectory of the ones provided (HTTPDocs).
When I attempt to navigate there (www.greystarling.co.uk) it says "Forbidden
You do not have permission to access this document."
Any ideas?
推荐答案
为cshtml配置的MIME类型? Clickety [ ^ ]
还要检查此 Razor ASP.NET网页和CSHTML禁止的错误 [ ^ ]
Configured MIME type for cshtml? Clickety[^]
Also check this Razor ASP.NET web pages and CSHTML Forbidden errors[^]
这篇关于ASP.NET网页无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!