因此,我在過去幾週一直在爲我的老闆開發此應用程序,然後昨晚與IT管理員插孔我的機器。我認爲他所做的唯一事情就是重命名計算機名稱,但可能會有更多。無論如何,我在打開計算機後重新打開項目,現在ASP.Net Web項目正在查看web.config的每個aspx文件的當前目錄,而不是項目目錄根目錄中的web.config(其中它一直是這個時候)。Visual Studio 2010 + ASP.Net Web項目:查看web.config(而不是根目錄)的當前文件夾
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to 'C:\*web project location*\pages' because access is denied.
Source Error:
[No relevant source lines]
Source File: C:\*web project location*\pages\web.config
web.config文件位於c:\ * web項目位置* \ web.config下,應該加載。項目中沒有其他web.config文件。我在項目中爲應用程序的不同部分定義了各種文件夾,UserControl和MasterPages均爲文件夾。如果我從其中一個子文件夾打開任何aspx文件,<%@ Page%>指令表示它正在該目錄中尋找web.config文件而不是項目的根目錄。
請幫忙!我一直在谷歌搜索和搜索棧沒有結果的答案。我可以找到與部署到IIS時發生的唯一細節相關的問題。我沒有那樣做。
非常感謝您的幫助。非常感謝。