我有一個C#.NET網站我一直在嘗試上傳到虛擬主機提供商的服務器。如果我將網站上傳到我的基本目錄http://www.xyz.org/hello.aspx
,我很成功。但是當我嘗試上傳到子目錄http://www.xyz.org/subDir/hello.aspx
時,出現以下錯誤消息。我有一種感覺,它與配置文件有關?但我不確定。任何幫助,將不勝感激。將C#項目上載到FTP服務器
Server Error in '/' Application.
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The file '/Resume_MasterPage.master' does not exist.
Source Error:
Line 1: <%@ page title="" language="C#" masterpagefile="~/Resume_MasterPage.master" autoeventwireup="true" inherits="HomePage, App_Web_zotcvohv" %>
Line 2: <%@ MasterType VirtualPath="~/Resume_MasterPage.master" %>
Line 3:
我會刪除'〜'還是會在路徑名中添加子目錄...'〜/ subdir/Resume_MasterPage.master' – Chris
第1行:<%@ master language =「C#」autoeventwireup =「true」第3行:<!DOCTYPE html PUBLIC「 - // W3C // DTD XHTML 1.0 Transitional // EN」「http://www.w3.org/TR/xhtml1/DTD/xhtml1 -transitional.dtd「> 源文件:/cs/Resume_MasterPage.master行:1 不幸的是仍然收到錯誤消息 – Chris
@Chris做一個測試 - 如果你只是刪除它,你必須把它們放在同一個目錄。錯誤信息 ?什麼錯誤? – Aristos