2012-05-14 78 views
0

我已經開發了一個虛擬主機服務器,所以我可以把我的網站放在上面。但我得到了應用這個問題 服務器錯誤「我的網站」:應用程序中的服務器錯誤「我的網站」

**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我得到了這個問題,但CustomErrors mode=「RemoteOnly」我把它關了。這個問題出現了:server error in application。我正在使用mvc和ms web dev 2010有一個發佈,我正在使用它。但是有這個問題。

回答

0

這裏有一些事情要檢查:

  1. 正在運行ASP.Net的正確版本
  2. 是剃刀支持的
  3. 實際文件你設置的路徑上存在,請嘗試託管服務提供商將一個普通的HTML文件放在那裏,看看你是否可以點擊它
+1

當然,確保安裝ASP.NET MVC 3。 – HackedByChinese

+0

嗨!我試圖把一個普通的HTML文件,它的工作原理。但我不知道剃鬚刀是否支持並運行正確的asp.net版本。我如何檢查? – newb

+1

@newb eaiest選項是詢問服務器的管理員。 –

相關問題