本文介绍了重新启动工作流时System.UnauthorizedAccessException。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重新启动项目的工作流程后,工作流程将移至第一阶段,但会因错误而暂停:

Upon restarting the workflow on a project, the workflow moves to the first stage but becomes suspended with error:

RequestorId: 5efed0c5-6000-f39c-0000-000000000000.

详细信息:在执行工作流实例期间发生了未处理的异常。

Details: An unhandled exception occurred during the execution of the workflow instance.

异常细节:System.ApplicationException:HTTP 401

Exception details: System.ApplicationException: HTTP 401

{" Transfer-Encoding":[" chunked"],"" X-SharePointHealthScore":[" 0" ],

{"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],

" SPClientServiceRequestDuration":[" 32"],

"SPClientServiceRequestDuration":["32"],

" SPRequestGuid":[" 5efed0c5-6000-f39c-b4e6-578d39b9ac51"],

"SPRequestGuid":["5efed0c5-6000-f39c-b4e6-578d39b9ac51"],

"请求-ID":[" 5efed0c5-6000-f39c-b4e6-578d39b9ac51"],

"request-id":["5efed0c5-6000-f39c-b4e6-578d39b9ac51"],

英寸×-FRAME-方式];:[" SAMEORIGIN"],

"X-FRAME-OPTIONS":["SAMEORIGIN"],

" MicrosoftSharePointTeamServices":[" 15.0.0.4569"],

"MicrosoftSharePointTeamServices":["15.0.0.4569"],

英寸×-的Content-Type-方式];:[" nosniff"],

"X-Content-Type-Options":["nosniff"],

英寸×-MS-InvokeApp":[" 1; RequireReadOnly"],

"X-MS-InvokeApp":["1; RequireReadOnly"],

" Cache-Control":[" max-age = 0,private"],

"Cache-Control":["max-age=0, private"],

" Date":[" Sun,09 Nov 2014 13:00:32 GMT"],

"Date":["Sun, 09 Nov 2014 13:00:32 GMT"],

""服务器":[" Microsoft-IIS \ / 8.0"],

"Server":["Microsoft-IIS\/8.0"],

" WWW-Authenticate": [" NTLM"],

"WWW-Authenticate":["NTLM"],

英寸×-ASPNET-版":[" 4.0.30319"],

"X-AspNet-Version":["4.0.30319"],

英寸×供电-所谓QUOT;:[" System.Activities.CodeActivity.InternalExecute(ActivityInstance实例)中的Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context)

"X-Powered-By":["ASP.NET"]}

; ASP.NET"]}

at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context)

,ActivityExecutor executor,BookmarkManager bookmarkManager)

at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)

在System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,BookmarkManager bookmarkManager,Location resultLocation)

at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

在ULS中,记录以下错误。

In the ULS, following errors are logged.

Project Server                	Security                      	PWA:http://server/PWA, ServiceApp:Project Server Service Application 1, User:PROJECTSERVER\system, PSI: User i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint could not be authenticated because logon permission has not been granted, LogLevelManager Warning-ulsID:0x00212098 has no entities explicitly specified.	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	Exception occured in scope Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage. Exception=System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.     at Microsoft.ProjectServer.PJClientCallableContext.get_PJContext()     at Microsoft.ProjectServer.AppPermissionCollection.<.ctor>b__18()     at System.Lazy`1.CreateValue()     at System.Lazy`1.LazyInitValue()     at Microsoft.ProjectServer.AppPermission.Check(Scope type, Right perms, Guid projectId)     at Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage(Guid projectId, Guid stageId)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.EnterProjectStage_MethodProxy(WorkflowActivities target, ClientValueCollection xmlargs, ProxyContext proxyContext)     at Microsoft.ProjectServer.Workflow...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	...ActivitiesServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	Original error: System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.     at Microsoft.ProjectServer.PJClientCallableContext.get_PJContext()     at Microsoft.ProjectServer.AppPermissionCollection.<.ctor>b__18()     at System.Lazy`1.CreateValue()     at System.Lazy`1.LazyInitValue()     at Microsoft.ProjectServer.AppPermission.Check(Scope type, Right perms, Guid projectId)     at Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage(Guid projectId, Guid stageId)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.EnterProjectStage_MethodProxy(WorkflowActivities target, ClientValueCollection xmlargs, ProxyContext proxyContext)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.InvokeMethod(Object target, String methodName, ClientValueColl...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	...ection xmlargs, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Portal Server      	Microfeeds                    	SocialRESTExceptionProcessingHandler.DoServerExceptionProcessing - SharePoint Server Exception [System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.     at Microsoft.ProjectServer.PJClientCallableContext.get_PJContext()     at Microsoft.ProjectServer.AppPermissionCollection.<.ctor>b__18()     at System.Lazy`1.CreateValue()     at System.Lazy`1.LazyInitValue()     at Microsoft.ProjectServer.AppPermission.Check(Scope type, Right perms, Guid projectId)     at Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage(Guid projectId, Guid stageId)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.EnterProjectStage_MethodProxy(WorkflowActivities target, ClientValueCollection xmlargs, ProxyContext proxyContext)     at Microsoft.ProjectServer.WorkflowAct...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Portal Server      	Microfeeds                    	...ivitiesServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)]	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM Api                      	Leaving Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	Original error: System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.     at Microsoft.ProjectServer.PJClientCallableContext.get_PJContext()     at Microsoft.ProjectServer.AppPermissionCollection.<.ctor>b__18()     at System.Lazy`1.CreateValue()     at System.Lazy`1.LazyInitValue()     at Microsoft.ProjectServer.AppPermission.Check(Scope type, Right perms, Guid projectId)     at Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage(Guid projectId, Guid stageId)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.EnterProjectStage_MethodProxy(WorkflowActivities target, ClientValueCollection xmlargs, ProxyContext proxyContext)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.InvokeMethod(Object target, String methodName, ClientValueColl...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	...ection xmlargs, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethod(Boolean mainRequestPath, Object value, ServerStub serverProxy, EdmParserNode node, Boolean resourceEndpoint, MethodInformation methodInfo, Boolean isExtensionMethod, Boolean isIndexerMethod)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathMember(Boolean mainRequestPath, String path, Object value, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	...(Boolean mainRequestPath, String path, String pathForErrorMessage)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Portal Server      	Microfeeds                    	SocialRESTExceptionProcessingHandler.DoServerExceptionProcessing - SharePoint Server Exception [System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.     at Microsoft.ProjectServer.PJClientCallableContext.get_PJContext()     at Microsoft.ProjectServer.AppPermissionCollection.<.ctor>b__18()     at System.Lazy`1.CreateValue()     at System.Lazy`1.LazyInitValue()     at Microsoft.ProjectServer.AppPermission.Check(Scope type, Right perms, Guid projectId)     at Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage(Guid projectId, Guid stageId)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.EnterProjectStage_MethodProxy(WorkflowActivities target, ClientValueCollection xmlargs, ProxyContext proxyContext)     at Microsoft.ProjectServer.WorkflowAct...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Portal Server      	Microfeeds                    	...ivitiesServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethod(Boolean mainRequestPath, Object value, ServerStub serverProxy, EdmParserNode node, Boolean resourceEndpoint, MethodInformation methodInfo, Boolean isExtensionMethod, Boolean isIndexerMethod)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathMember(Boolean mainRequestPath, String path, Object value, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Portal Server      	Microfeeds                    	...)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String pathForErrorMessage)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()]	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Portal Server      	Microfeeds                    	serviceHost_RequestExecuted	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	End CSOM Request. Duration=32 milliseconds.	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.     at Microsoft.ProjectServer.PJClientCallableContext.get_PJContext()     at Microsoft.ProjectServer.AppPermissionCollection.<.ctor>b__18()     at System.Lazy`1.CreateValue()     at System.Lazy`1.LazyInitValue()     at Microsoft.ProjectServer.AppPermission.Check(Scope type, Right perms, Guid projectId)     at Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage(Guid projectId, Guid stageId)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.EnterProjectStage_MethodProxy(WorkflowActivities target, ClientValueCollection xmlargs, ProxyContext proxyContext)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	...ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethod(Boolean mainRequestPath, Object value, ServerStub serverProxy, EdmParserNode node, Boolean resourceEndpoint, MethodInformation methodInfo, Boolean isExtensionMethod, Boolean isIndexerMethod)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathMember(Boolean mainRequestPath, String path, Object value, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainReq...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	...uestPath, String path, String pathForErrorMessage)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()     at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	Original error: System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.     at Microsoft.ProjectServer.PJClientCallableContext.get_PJContext()     at Microsoft.ProjectServer.AppPermissionCollection.<.ctor>b__18()     at System.Lazy`1.CreateValue()     at System.Lazy`1.LazyInitValue()     at Microsoft.ProjectServer.AppPermission.Check(Scope type, Right perms, Guid projectId)     at Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage(Guid projectId, Guid stageId)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.EnterProjectStage_MethodProxy(WorkflowActivities target, ClientValueCollection xmlargs, ProxyContext proxyContext)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.InvokeMethod(Object target, String methodName, ClientValueColl...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	...ection xmlargs, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethod(Boolean mainRequestPath, Object value, ServerStub serverProxy, EdmParserNode node, Boolean resourceEndpoint, MethodInformation methodInfo, Boolean isExtensionMethod, Boolean isIndexerMethod)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathMember(Boolean mainRequestPath, String path, Object value, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	CSOM                          	...(Boolean mainRequestPath, String path, String pathForErrorMessage)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()     at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Portal Server      	Microfeeds                    	SocialRESTExceptionProcessingHandler.DoServerExceptionProcessing - SharePoint Server Exception [System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.     at Microsoft.ProjectServer.PJClientCallableContext.get_PJContext()     at Microsoft.ProjectServer.AppPermissionCollection.<.ctor>b__18()     at System.Lazy`1.CreateValue()     at System.Lazy`1.LazyInitValue()     at Microsoft.ProjectServer.AppPermission.Check(Scope type, Right perms, Guid projectId)     at Microsoft.ProjectServer.WorkflowActivities.EnterProjectStage(Guid projectId, Guid stageId)     at Microsoft.ProjectServer.WorkflowActivitiesServerStub.EnterProjectStage_MethodProxy(WorkflowActivities target, ClientValueCollection xmlargs, ProxyContext proxyContext)     at Microsoft.ProjectServer.WorkflowAct...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Portal Server      	Microfeeds                    	...ivitiesServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethod(Boolean mainRequestPath, Object value, ServerStub serverProxy, EdmParserNode node, Boolean resourceEndpoint, MethodInformation methodInfo, Boolean isExtensionMethod, Boolean isIndexerMethod)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathMember(Boolean mainRequestPath, String path, Object value, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo...	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Portal Server      	Microfeeds                    	...)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String pathForErrorMessage)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()     at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)]	5efed0c5-6000-f39c-b4e6-578d39b9ac51
SharePoint Foundation         	General                       	Application error when access /PWA/_vti_bin/client.svc, Error=Cannot redirect after HTTP headers have been sent.   at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)     at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)	5efed0c5-6000-f39c-b4e6-578d39b9ac51

如果有人遇到同样的问题,请告诉我如何解决。




推荐答案

当管理员尝试重新启动工作流程时,您是否收到相同的错误从设置区域/项目页面?第一次启动工作流时是否会出现相同的错误?

Do you get the same error when an admin tries to restart the workflow from the Settings area/Project page? Do you get same error when the workflows are started for the first time?

如果您有多个应用服务器,则要检查的一件事是您可以成功连接到工作流服务器 来自所有应用服务器。

One thing to check, in case you have multiple app servers, is that you can connect successfully to the workflow server from all app servers.

Paul


这篇关于重新启动工作流时System.UnauthorizedAccessException。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 22:33