简体   繁体   中英

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. And this problem comes up: server error in application . I'm using mvc and ms web dev 2010 have a publish and I'm using it. But got this problem.

Here are a few things to check:

  1. Is the hosting provider running the correct version of 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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