Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

請試想下列案例:

您嘗試在 SharePoint 2010 中啟動沙箱程式碼服務。  與服務相關聯的進程會顯示給使用者,但會立即消失。 SharePoint ULS 記錄會顯示下列錯誤:

' 進程效能計數器已停用。 沙箱程式碼監視無法繼續執行。」

原因

當登錄機碼 'HKEY_LOCAL_MACHINE \System\currentcontrolset\services\perfproc\performance\disable 效能計數器」值設為1時,就會發生此問題。

解決方案

若要修正此問題,您必須修改註冊表。 

重要 此章節、方法或工作包含有關如何修改登錄的步驟。 然而,不當修改登錄可能會發生嚴重的問題。 因此,請務必謹慎地依照這些步驟執行。 為加強保護,請先備份登錄再進行修改。 如果發生問題,您就可以還原登錄。 如需有關如何備份和還原登錄的詳細資訊,請按一下下列文章編號,檢視「Microsoft 知識庫」中的文章:

322756-如何在 Windows 中備份及還原註冊表

若要修正問題並成功執行沙箱程式碼服務,使用者應該刪除登錄機碼,或將值設定為 ' 0 '。 若要執行這項操作,請依照下列步驟執行:

  1. 按一下 [ 開始],在 [開始搜尋] 方塊中輸入 regedit ,然後按 enter鍵。

  2. 找出並按一下以下登錄子機碼: HKEY_LOCAL_MACHINE \System\currentcontrolset\services\perfproc\performance\disable 效能計數器

  3. 按一下 [編輯] 功能表上的 [修改]。

  4. 在 [ 值資料 ] 方塊中,將值變更為 [0],然後按一下 [確定]

  5. 結束 [登錄編輯程式]。

其他相關資訊

在 SharePoint ULS 記錄中,您可能會看到下列錯誤:

SPUCHostService (0x17C0) 0x172C SharePoint Foundation 沙箱化程式碼服務 ei19 詳細資訊-嘗試初始化 SPUserCodeHostService 時,發現無法處理的例外狀況。 此服務現在將會終止。 PID = 6080。 Exception = ComponentModel:0xc0000bbc () SPPdh. CheckReturnValue (PDH_STATUS 狀態、布林 throwOnError)在 Win32Exception (在(Int32,Int32 SPPerformanceCounter)的. NextValue (Int32 retryInterval),請參閱。processName (String,Int32 processInstanceId): UserCode. EnsurePerfCounters (IMonitorableProcess monitorableProcess,Int32& indexShimInstance,Int32& indexProxyInstance),在 microsoft. UserCode (SPUserCodeProcessMonitor CreateMonitoredProcess)。 AddProcess (ISPUserCodePoolableProcess 程式) UserCode (程式) SPUserCodeWorkerProcessPool ()。(字串實例),在(() UserCode (() SPUserCodeWorkerProcessPool (StartProcessInternal UserCode)的(SPUserCodeWorkerProcessPool StartProcess)上。 UserCode (Object SPUserCodeWorkerProcessPool)。

SPUCHostService (0x099C) 0x0A1C SharePoint Foundation 一般84yj 中型效能計數器 OS (pdh)通話失敗,錯誤碼 PDH_INVALID_HANDLE。

SPUCHostService (0x099C) 0x0A1C SharePoint Foundation 使用者程式碼服務 ela0 詳細資訊-讀取 perf 計數器 IO 資料位元組/秒失敗,出現例外狀況系統。 ComponentModel. Win32Exception:0xc0000bbc () SPPdh. CheckReturnValue (PDH_STATUS 狀態、布林 throwOnError)在(在(Int32,Int32 SPPerformanceCounter)的()中,重複使用最後一個值0的錯誤()。

SPUCHostService (0x099C) 0x0A1C SharePoint Foundation 使用者程式碼服務 ei0r 詳細-監控進程 "SPUCWorkerProcess" 的讀取效能計數器: PercentProcessorTime = 0 ProcessVirtualBytes = 0 ProcessHandleCount = 0 ProcessThreadCount = 0 ProcessIOBytes = 0

SPUCHostService (0x099C) 0x0A1C SharePoint Foundation 一般 84yj MediumPerformance 計數器 OS (pdh)通話失敗,錯誤碼 PDH_INVALID_HANDLE。

SPUCHostService (0x099C) 0x0A1C SharePoint Foundation 使用者程式碼服務 ela0 詳細資訊-讀取效能計數器執行緒計數失敗,出現例外狀況系統。 ComponentModel. Win32Exception:0xc0000bbc () SPPdh. CheckReturnValue (PDH_STATUS 狀態、布林 throwOnError)在(在(Int32,Int32 SPPerformanceCounter)的()中,重複使用最後一個值0的錯誤()。 

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×