创建 2013 OOB 工作流时出现SharePoint请求的注册表访问"错误

症状

当您尝试在 SharePoint 2017 年 11 月 SharePoint 2017Cu 中新建开箱 (OOB) 工作流时, (错误) :

发生意外错误。

统一日志记录服务 (ULS) 还会显示以下详细信息, (突出显示) :

02/06/2019 10:33:12.14 w3wp.exe (Servername:0x0A18) 0x3118 SharePoint Foundation General 8nca Medium Application error when access /_layouts/15/CstWrkflIP.aspx, <mark>Error=Requested registry access is not allowed. at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at Microsoft.Win32.Registry.GetValue</mark> (String keyName, String valueName, Object defaultValue) at Microsoft.Office.InfoPath.Server.Util.UrlManager.<>c__DisplayClass1.<OpenFileNameMap>b__0() at Microsoft.Office.Server.Security.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.Office.InfoPath.Server.Util.UrlManager.OpenFileNameMap() at Microsoft.Office.InfoPath.Server.Util.UrlManager..cctor() 4445bd9e-70b9-008f-6bc3-c842222bad98

备注

有关 ULS 中错误的更完整显示,请参阅详细信息部分。

原因

应用程序池帐户没有创建工作流所需的权限。

解决方案

若要解决此问题,请尝试以下步骤:

  1. 将应用程序池应用程序的帐户添加到 WSS_WPG 和 WSS_Admin_WPG 组。

  2. 将读取访问权限应用于以下注册表项:

    • HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Office Server\15.0
    • HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\Secure
  3. 重新启动服务器。

如果问题仍然存在,请联系 Microsoft 客户服务和支持部门

更多信息

ULS 的更完整显示如下所示:

02/06/2019 10:33:12.03 w3wp.exe (Servername: 0x0A18) 0x3118 SharePoint Foundation Workflow Services aighj Medium Can't find WorkflowServiceProxy or its service application proxy type name is null 4445bd9e-70b9-008f-6bc3-c842222bad98

02/06/2019 10:33:12.14 w3wp.exe (Servername:0x0A18) 0x3118 SharePoint Foundation General 8nca Medium Application error when access /_layouts/15/CstWrkflIP.aspx, <mark>Error=Requested registry access is not allowed. at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at Microsoft.Win32.Registry.GetValue</mark> (String keyName, String valueName, Object defaultValue) at Microsoft.Office.InfoPath.Server.Util.UrlManager.<>c__DisplayClass1.<OpenFileNameMap>b__0() at Microsoft.Office.Server.Security.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.Office.InfoPath.Server.Util.UrlManager.OpenFileNameMap() at <mark>Microsoft.Office.InfoPath.Server</mark>.Util.UrlManager..cctor() 4445bd9e-70b9-008f-6bc3-c842222bad98

02/06/2019 10:33:12.14 w3wp.exe (Servername: 0x0A18) 0x3118 SharePoint Foundation Runtime 6616 Critical Requested registry access is not allowed. 4445bd9e-70b9-008f-6bc3-c842222bad98
02/06/2019 10:33:12.14 w3wp.exe (Servername: 0x0A18) 0x3118 SharePoint Foundation General ajlz0 High Getting Error Message for Exception System.TypeInitializationException: The type initializer for 'Microsoft.Office.InfoPath.Server.Util.UrlManager' threw an exception. ---> System.Security.SecurityException: Requested registry access is not allowed. at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at Microsoft.Win32.Registry.GetValue(String keyName, String valueName, Object defaultValue) at Microsoft.Office.InfoPath.Server.Util.UrlManager.<>c__DisplayClass1.<OpenFileNameMap>b__0() at Microsoft.Office.Server.Security.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.Office.InfoPath.Server.Util.UrlManager.OpenFileNameMap() at Microsoft.Office.InfoPath.Server.Util.UrlManager..cctor() --- End of inner exception stack trace --- at Microsoft.Office.InfoPath.Server.Util.UrlManager.GetConverterGeneratedFilePath(ConverterGeneratedFile file, Document document) at Microsoft.Office.InfoPath.Server.SolutionLifetime.ScriptIncludes.RenderCssLinksToHeader(Control ctrl, Document document, Boolean ribbonEnabled, Boolean isDisplayMode) at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.TryToAddCssLinksToHeader() at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.OnDataBindHelper() at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.WebParts.Part.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at <mark>Microsoft.Office.Workflow.CstWrkflIPPage.LoadFromWorkflowTemplate(EventArgs ea)</mark> at Microsoft.Office.Workflow.CstWrkflIPPage.OnLoad(EventArgs ea) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 4445bd9e-70b9-008f-6bc3-c842222bad98

仍然需要帮助? 请转到 SharePoint 社区