文章編號: 975603 - 上次校閱: 2009年11月5日 - 版次: 1.2

當您開啟一個商業伺服器 2009年網站在不同的電腦上安裝 SQL Server 及 Commerce Server 時整合在 SharePoint 錯誤訊息: 「 伺服器錯誤在 '/' 應用程式 」

可以下載 Hotfix下載 Hotfix
檢視和要求下載 hotfix
系統提示本文適用於您使用的作業系統之外的作業系統。與您不相關的文章內容已停用。

在此頁中

全部展開 | 全部摺疊

徵狀

考慮下列案例:
  • 您有已安裝 Microsoft Commerce Server 2009 的電腦。
  • 建立 Commerce Server 2009 的網站整合在 Microsoft SharePoint 使用 SharePoint 商業服務組態精靈。
  • 您裝載 SQL Server 網站的資料在另一部電腦上。
  • 站台會使用 Windows 整合式驗證 (也稱為 NTLM 驗證)。
  • 您嘗試開啟站台使用的 Windows 帳戶。
在這種情況下您不能開啟該網站。 此外,您會收到類似下列的錯誤訊息:
在 '/' 應用程式的伺服器錯誤。
登入的使用者 'NT AUTHORITY\ANONYMOUS 登入' 失敗。
描述: 目前的 Web 要求的執行過程中發生未處理的例外狀況。 請檢閱堆疊追蹤關於該錯誤,以及它發源程式碼中的詳細資訊。
備忘稿
  • 當您在網站上使用表單架構驗證,則不會發生這個問題。
  • 就會發生這個問題時您仍可開啟 SharePoint 網站使用 NTLM 驗證,如果該網站不 Commerce Server 2009 站台。

解決方案

Hotfix 資訊

Microsoft 提供支援的 Hotfix。不過,此 Hotfix 旨在修正本文中所述隨問題。只會發生此特定問題的系統套用此 Hotfix。

如果此 Hotfix 可供下載,您可在本知識庫文件的頂端找到「 可用的 Hotfix 下載 」區段。如果沒有出現此區段,將要求提交到 Microsoft 客戶服務及支援],以取得該 Hotfix。

附註如果發生其他問題,或如果需要任何疑難排解,您可能必須建立個別的服務要求。和此 Hotfix 無關的額外支援問題適用一般的支援費用。如需完整清單,Microsoft 客戶服務和支援的電話號碼,或建立個別的服務要求,造訪下列 Microsoft 網站:-
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
附註「 下載 Hotfix 」 表單會顯示此 Hotfix 會出現,以供使用的語言。如果您沒有看到您的語言,是因為此 Hotfix 是不適用您的語言。

必要條件

您必須擁有 Commerce Server 2009 套用這個 Hotfix 安裝。

重新啟動需求

您沒有套用此 Hotfix 之後重新啟動電腦。但是,您必須重新啟動網際網路資訊服務 (IIS) 套用此 Hotfix 之後。在命令提示字元中,重新啟動 IIS,鍵入 IISRESET RESTART,並按下 ENTER。
附註這個命令會停止,然後重新啟動所有的 IIS 正在執行的服務。

Hotfix 取代資訊

此 Hotfix 不會取代任何其他的 Hotfix。

檔案資訊

此 Hotfix 的英文版在檔案屬性 (或更新版本的檔案屬性) 如下列表格中所列。 這些檔案的日期和時間為 Coordinated Universal Time (UTC)。當您檢視檔案資訊時,會將它轉換為當地時間。若要到 UTC 與當地時間差異使用在 [日期及時間 中項目控制台中的 [時區] 索引標籤]。
檔案資訊 forCommerceServer2007SP3 KB975603 ENU.exe
摺疊此表格展開此表格
檔案名稱檔案版本檔案大小日期時間平台
Microsoft.commerceserver.Runtime.dll6.0.4171.7849,78414-Sep-200911: 18x86

CS2009 KB975603 x86.exe 的檔案資訊
摺疊此表格展開此表格
檔案名稱檔案版本檔案大小日期時間平台
Microsoft.Commerce.providers.dll1.0.20123.16681,83216-Sep-200902: 40x86
Microsoftcommercewebparts.wsp不適用691,69416-Sep-200903: 01不適用

安裝備忘稿

下載 Hotfix 套件之後您可以取得下列檔案,包含 SiteContext.cs 檔案的來源資料夾:
  • CS2009 KB975603 x86.exe
  • CommerceServer2007SP3 KB975603 ENU.exe
  • Hotfix.txt
請使用下列程序來安裝最適合您情況的 Hotfix。

附註 您必須安裝的 Hotfix 為本機系統管理員,或使用 [以系統管理員身分執行] 選項來執行 Hotfix。 如果您執行 Windows Vista、 Windows Server 2008 或更新版本的作業系統,使用 [以系統管理員身分執行] 選項,如果使用者帳戶控制 (UAC) 已啟用。

情況 1

安裝這個 Hotfix 之前,已部署沒有網站。
安裝指示的情況 1
  • 安裝下列 Hotfix 安裝程式:
    • CS2009 KB975603 x86.exe
    • CommerceServer2007SP3 KB975603 ENU.exe
  • 執行 IISRESET 命令。
  • 執行 SharePoint 商業服務設定精靈來部署新的站台使用更新的 MicrosoftCommerceWebParts.WSP 方案檔。
情況 2

安裝這個 Hotfix 之前,已部署某些站台。
安裝指示的情況 2
  • 安裝下列 Hotfix 安裝程式:
    • CS2009 KB975603 x86.exe
    • CommerceServer2007SP3 KB975603 ENU.exe
  • 部署更新的 Web 使用下列 stsadm 命令來方案套件 (WSP) 檔案:
    stsadm-o upgradesolution-名稱 microsoftcommercewebparts.wsp-檔名 MicrosoftCommerceWebParts.WSP-立即 –allowgacdeployment
  • 更新的 Web.config httpmodules 」 區段?使用新 httpmodules 檔案。

    附註當您開啟 Web.config 檔案時,您注意到未更新的區段會在原始碼中略過。 The following is the source code for the file:
     <add name="CommerceApplication" type="Microsoft.CommerceServer.Runtime.CommerceApplicationModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <!--<add name="CommerceOrder" type="Microsoft.CommerceServer.Runtime.Orders.CommerceOrderModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />-->
    <add name="SharePointCommerceOrder" type="Microsoft.Commerce.Providers.SharePointCommerceOrderModule, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35" />
    <!--<add name="CommerceCatalog" type="Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />-->
    <add name="SharePointCommerceCatalog" type="Microsoft.Commerce.Providers.SharePointCommerceCatalogModule, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35" />
    <!--<add name="CommerceProfile" type="Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />-->
    <add name="SharePointCommerceProfile" type="Microsoft.Commerce.Providers.SharePointCommerceProfileModule, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35" />
    <!--<add name="CommerceExpressionEvaluator" type="Microsoft.CommerceServer.Runtime.Targeting.CommerceExpressionModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />-->
    <add name="SharePointCommerceExpressionEvaluator" type="Microsoft.Commerce.Providers.SharePointCommerceExpressionModule, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35" />
    <!--<add name="CommerceDataWarehouseAuthenticationModule" type="Microsoft.CommerceServer.Runtime.CommerceDataWarehouseAuthenticationModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />-->
    <add name="SharePointCommerceDataWarehouseAuthenticationModule" type="Microsoft.Commerce.Providers.SharePointCommerceDataWarehouseAuthenticationModule, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35" />
    <add name="CommerceCache" type="Microsoft.CommerceServer.Runtime.Caching.CommerceCacheModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <add name="CommerceContentSelection" type="Microsoft.CommerceServer.Runtime.Targeting.CommerceContentSelectionModule, Microsoft.CommerceServer.Runtime, Version=6.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    
  • 執行 IISRESET 命令。
情況 3

Web 組件自訂藉由使用 [CommerceSharePointExtensibilityKit 工具:
情況 3 的安裝指示
  • 安裝下列 Hotfix 安裝程式:
    • CS2009 KB975603 x86.exe
    • CommerceServer2007SP3 KB975603 ENU.exe
  • 在包含在 Hotfix 套件的 [來源] 資料夾中找到更新的原始程式檔 SiteContext.cs。
  • 使用此來源檔案來取代位於 CommerceSharePointExtensibilityKit SiteContext.cs 檔案。
  • 編譯 Web 組件的組件。
  • 更新 Web.config 檔,若要使用新 httpmodules 像情況 2 httpmodules"部分。
備忘稿
  • 可能有其他需要提高權限在伺服器上的自訂代碼。比方說外部資料商店存取程式碼和錯誤的記錄程式碼兩者都要求更高的權限。這些關稅代碼必須提升使用 RunWithElevatedPrivileges 方法。 如此可確保使用應用程式集區 (也稱為 SharePoint 系統帳戶) 的身分識別,而不是模擬的使用者身分識別。
  • CommerceSharePointExtensibilityKit 工具位於下列位置:
    %Program Files%\Microsoft Commerce Server 2007\Microsoft Commerce Server 2009\Sdk\Samples\CommerceSharePointExtensibilityKit.zip

狀況說明

Microsoft 已確認<適用於>一節所列之 Microsoft 產品確實有此問題。

其他相關資訊

如需有關如何在 Web 上設定 SharePoint 商業服務伺服器,請造訪下列 Microsoft 開發 o 人 h 員 ? 工 u 具 ? 網路 (MSDN) Web 網站:
http://msdn.microsoft.com/en-us/library/dd452351.aspx (http://msdn.microsoft.com/en-us/library/dd452351.aspx)
如需有關如何開發藉由使用 SharePoint 商業服務的網站請造訪下列 MSDN 網站:
http://msdn.microsoft.com/en-us/library/dd328216.aspx (http://msdn.microsoft.com/en-us/library/dd328216.aspx)

這篇文章中的資訊適用於:
  • Microsoft Commerce Server 2009 Enterprise
  • Microsoft Commerce Server 2009 Standard
  • Microsoft Commerce Server 2007 Developer Edition
  • Microsoft Commerce Server 2007 Enterprise Edition
  • Microsoft Commerce Server 2007 Standard Edition
關鍵字:?
kbmt kbautohotfix kbexpertiseadvanced kbsurveynew kbqfe kbhotfixserver KB975603 KbMtzh
機器翻譯機器翻譯
重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,而非使用人工翻譯而成。Microsoft 同時提供使用者人工翻譯及機器翻譯兩個版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,機器翻譯的文章可能不盡完美。這些文章中也可能出現拼字、語意或文法上的錯誤,就像外國人在使用本國語言時可能發生的錯誤。Microsoft 不為內容的翻譯錯誤或客戶對該內容的使用所產生的任何錯誤或損害負責。Microsoft也同時將不斷地就機器翻譯軟體進行更新。
按一下這裡查看此文章的英文版本:975603? (http://support.microsoft.com/kb/975603/en-us/ )
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。