简体   繁体   English

应用程序“我的网站”中的服务器错误

[英]Server Error in Application “My web site”

I've bougth an web hosting wervice so I can put my web site on it. 我已经建立了一个虚拟主机托管服务,因此可以将我的网站放到上面。 But I got this problem Server Error in Application "my website": 但是我在应用程序“我的网站”中遇到了此服务器错误:

**Detailed Error Information**
Module  IIS Web Core
Notification    MapRequestHandler
Handler StaticFile
Error Code  0x80070002
Requested URL   http://mywebsite.se:80/Index.cshtml?aspxerrorpath=/
Physical Path   E:\inetpub\webhosting\industri2\mywebsite.se\www\Index.cshtml
Logon Method    Anonymous
Logon User  Anonymous
**Most likely causes:**
The directory or file specified does not exist on the Web server.
The URL contains a typographical error.
A custom filter or module, such as URLScan, restricts access to the file.

Earlyer I got this problem CustomErrors mode=“RemoteOnly” but I put it on off now. 较早时,我遇到了这个问题CustomErrors mode=“RemoteOnly”但我现在将其关闭。 And this problem comes up: server error in application . 然后出现此问题: server error in application I'm using mvc and ms web dev 2010 have a publish and I'm using it. 我正在使用mvc,而ms web dev 2010有一个发布并且正在使用它。 But got this problem. 但是遇到了这个问题。

Here are a few things to check: 这里有几件事要检查:

  1. Is the hosting provider running the correct version of ASP.Net 托管服务提供商是否在运行正确版本的ASP.Net?
  2. Is razor supported 是否支持剃须刀
  3. The actual file exists on the path you set, try putting an ordinary HTML file in there to see if you can hit it 实际文件存在于您设置的路径上,请尝试在其中放置普通的HTML文件,以查看是否可以将其击中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM