EP站點的應用程式池必須用BCProxy賬戶執行,並且AX中必須設定BCProxy為代理賬戶,另外BCProxy必須屬於IIS_WPG和STS_WPG這兩個組,另外BCProxy必須能連線Sharepoint的配置資料庫和EP站點對應的內容資料庫,這個在WSS2.0上沒什麼問題,昨天試了把WSS3.0,可把俺整死了。
按照跟WSS2.0同樣的設定,配置和建立站點沒有問題,登陸站點的時候開始倒也沒啥問題,只是速度暴慢,過一會後報個執行時異常,讓除錯,到事件檢視器裡發現兩個異常資訊:
第一條是w3wp報的錯,後面的十六進位制的資料看不懂,這裡略去
事件型別: 錯誤
事件來源: Windows SharePoint Services 3 Error Reporting
事件種類: 無
事件 ID: 5000
日期: 2007-4-7
事件: 4:32:43
使用者: N/A
計算機: WANGLAI
描述:
EventType ulsexception12, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 mscorlib, P5 2.0.0.0, P6 4333ab80, P7 11209, P8 88, P9 unauthorizedaccessexception, P10 8yr8.
![None.gif](https://i.iter01.com/images/f7b190ee1ba4b7351a09ea6343e883f7f209baa0b5f35b847b1db9038581b922.gif)
有關更多資訊,請參閱在 http://go.microsoft.com/fwlink/events.asp 的幫助和支援中心。
第二條是.NET 2.0執行時報的錯
![None.gif](https://i.iter01.com/images/f7b190ee1ba4b7351a09ea6343e883f7f209baa0b5f35b847b1db9038581b922.gif)
事件型別: 錯誤
事件來源: .NET Runtime 2.0 Error Reporting
事件種類: 無
事件 ID: 5000
日期: 2007-4-7
事件: 4:32:45
使用者: N/A
計算機: WANGLAI
描述:
EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 mscorlib, P5 2.0.0.0, P6 4333ab80, P7 2bc9, P8 46, P9 system.unauthorizedaccess, P10 NIL.
![None.gif](https://i.iter01.com/images/f7b190ee1ba4b7351a09ea6343e883f7f209baa0b5f35b847b1db9038581b922.gif)
有關更多資訊,請參閱在 http://go.microsoft.com/fwlink/events.asp 的幫助和支援中心。
都是告訴俺沒有許可權,反覆確認了BCProxy屬於文件中要求的兩個組,訪問Sharepoint的配置和EP的站點內容伺服器都沒有任何問題。結果還出這樣的錯,把BCProxy新增到administrators組中沒有任何問題,說明確實是許可權的問題。但是把BCProxy加到管理員組裡確實不是好注意,那BCProxy還屬於哪個組才好那?翻遍了AX的實施文件,裡面都是講加到IIS_WPG和STS_WPG就OK了,但現實是確實不行。後來跑到MSDN上狂搜了一把找到如下文章:
http://msdn2.microsoft.com/en-us/library/aa548699.aspx這個頁面是解決EP配置過程中的異常的,裡面有一段針對這個異常的解決方案:
Error message: "Cannot add the specified assembly to the global assembly cache" or "w3wp.exe unhandled exception (System.UnauthorizedAccessException)"
![None.gif](https://i.iter01.com/images/f7b190ee1ba4b7351a09ea6343e883f7f209baa0b5f35b847b1db9038581b922.gif)
The Business Connector proxy account might not have the appropriate permissions on the server to allow access. The Business Connector proxy must:
![None.gif](https://i.iter01.com/images/f7b190ee1ba4b7351a09ea6343e883f7f209baa0b5f35b847b1db9038581b922.gif)
Be a user in Active Directory.
![None.gif](https://i.iter01.com/images/f7b190ee1ba4b7351a09ea6343e883f7f209baa0b5f35b847b1db9038581b922.gif)
Be a member of the Power Users, IIS_WPG, STS_WPG, and the Performance Monitor Windows groups on the server that runs IIS and hosts Enterprise Portal.
![None.gif](https://i.iter01.com/images/f7b190ee1ba4b7351a09ea6343e883f7f209baa0b5f35b847b1db9038581b922.gif)
For more information about creating a Business Connector proxy account, see Set up the Business Connector proxy user for Enterprise Portal.
![None.gif](https://i.iter01.com/images/f7b190ee1ba4b7351a09ea6343e883f7f209baa0b5f35b847b1db9038581b922.gif)
其中第四行提到了除IIS_WPT,STS_WPG(安裝WSS3.0後這個組改成了WSS_WPG),還有Power Users和Performance Monitor這兩個組(搞笑的是,解決方案裡提到的,更多資訊參閱Set up the Business Connector Proxy user for Enterprise Portal這篇文章裡,提到的還是IIS_WPG和STS_WPG......)
把BCProxy新增到Performance Monitor組後,確實沒有上述兩個異常資訊了,取而代之的是另一個異常:
事件型別: 錯誤
事件來源: Perflib
事件種類: 無
事件 ID: 1023
日期: 2007-4-7
事件: 5:27:22
使用者: N/A
計算機: WANGLAI
描述:
Windows 無法載入可擴充套件計數器 DLL MSSQLServerOLAPService,資料段中的第一個 DWORD 是 Windows 錯誤碼。
![None.gif](https://i.iter01.com/images/f7b190ee1ba4b7351a09ea6343e883f7f209baa0b5f35b847b1db9038581b922.gif)
有關更多資訊,請參閱在 http://go.microsoft.com/fwlink/events.asp 的幫助和支援中心。
不太清楚為什麼要檢測MSSSQLServerOLAPService的效率,我的機子上裝了SQL Server2005的Analysis Services,根據出錯資訊應該是對Analysis Services的某個檔案沒有許可權。
找到Analysis Services的安裝資料夾E:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\bin,這個資料夾給Performance Monitor組賦讀許可權,找到bin目錄裡的msmdctr90.DLL檔案,給Performance Monitor賦讀寫許可權。
OK,到這裡AX與WSS3.0的整合應該沒任何問題可以放心使用了。