ASP.NET网页无法运行 [英] ASP.NET web page won't run

查看:104
本文介绍了ASP.NET网页无法运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用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屋!

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