2010-10-26 36 views
0

我正在使用Sharepoint 2007作爲面向公衆網站的CMS的網站上工作。Sharepoint - 登錄時無法訪問文檔庫文件

內部用戶通過活動目錄進行身份驗證,並可以通過內部URL編輯內容。外部用戶通過公共網址查看內容。我剛剛爲面向外部版本的網站添加了基於表單的身份驗證,以便爲經過身份驗證的用戶提供一些特殊服務。

該功能在其開發服務器上按預期工作,但在推出到測試服務器時,任何通過基於表單的身份驗證進行身份驗證的用戶將不再能夠訪問css文件(可通過匿名用戶訪問該文件)。所以所有的造型都會丟失。 CSS文件保存在文檔庫中。如果用戶註銷,這些文件將再次可用。 (全部通過外部URL和基於形式的認證)

任何想法可能會發生什麼?

尋找在事件日誌中提供了以下信息:

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 26/10/2010 3:08:20 p.m. 
Event time (UTC): 26/10/2010 2:08:20 a.m. 
Event ID: f6fbeb6ffe334e48aa150bc7d34aeda8 
Event sequence: 159 
Event occurrence: 29 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/1334941635/ROOT-1-129325324099898564 
    Trust level: WSS_Minimal 
    Application Virtual Path:/
    Application Path: E:\WebSites\test.company.co.nz\ 
    Machine name: INTERNETTEST 

Process information: 
    Process ID: 7616 
    Process name: w3wp.exe 
    Account name: CH\InternetTestAPESite 

Exception information: 
    Exception type: FileNotFoundException 
    Exception message: The site with the id 5b06fc07-8611-4774-a283-7b9f94318030 could not be found. 

Request information: 
    Request URL: http://internettest.company.co.nz/Style Library/Company/CSS/base.css 
    Request path: /Style Library/Company/CSS/base.css 
    User host address: 172.23.4.119 
    User: [email protected] 
    Is authenticated: True 
    Authentication Type: Forms 
    Thread account name: CH\InternetTestAPESite 

Thread information: 
    Thread ID: 19 
    Thread account name: CH\InternetTestAPESite 
    Is impersonating: True 
    Stack trace: at Microsoft.SharePoint.SPSite..ctor(Guid id, SPFarm farm, SPUrlZone zone, SPUserToken userToken) 
    at Microsoft.SharePoint.SPSite..ctor(Guid id) 
    at Microsoft.SharePoint.Publishing.BlobCache.<>c__DisplayClass3.<EnsureAuthenticatedRights>b__0() 
    at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state) 
    at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() 
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) 
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) 
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) 
    at Microsoft.SharePoint.Publishing.BlobCache.EnsureAuthenticatedRights(Guid siteID, Guid scopeID) 
    at Microsoft.SharePoint.Publishing.BlobCache.RewriteUrl(Object sender, EventArgs e) 
    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

回答

1

這是一個blob緩存問題。清除緩存,然後使用iisreset解決了問題。