2010-08-17 59 views
0

Parser Error的SharePoint嚴重錯誤

This page has encountered a critical error. Contact your system administrator if this problem persists. 


Line 1: <%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Reference VirtualPath="~TemplatePageUrl" %>; <%@ Reference VirtualPath="~masterurl/custom.master" %> <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head> 
Line 2: <!--[if gte mso 9]><xml> 
Line 3: <mso:CustomDocumentProperties> 

MOSS偶爾當我登錄並試圖訪問任何頁面引發此錯誤。我發現了一個非常奇怪的解決方法:如果我從一個空的Web應用程序中取出一個新的web.config並複製有問題的web.config的web.config,然後粘貼所需的所有特殊配置更改,它將起作用。但是,如果我保存一個正在工作的web.config的備份,然後在出現錯誤時恢復爲它,似乎無法解決它。我必須從一個新的重新開始。在我看來,像web.config中的腐敗問題在我看來,它通常出現在我在服務器上的其他地方進行更改後,至少有一次它沒有任何明顯更新web.config的時間戳。此外,即使我在新的web.config中進行比較,文件中也沒有明顯的腐敗現象。

回答

0

對於任何可能有類似問題的人,我發現了這個問題。我想當我最初在SharePoint管理中心設置Web應用程序時,我使用了特定的目錄,但之後在IIS中對其進行了更改。現在,當我在中央管理中進行某些更改時,SharePoint會嘗試在原始目錄中查找application/web.config。爲了解決它,我必須回到IIS並將網站的主目錄更新到新目錄。