Quantcast
Channel: Project Server - Setup, Upgrade, Administration and Operation forum
Viewing all articles
Browse latest Browse all 4226

System.UnauthorizedAccessException when workflow is restarted.

$
0
0

Hi,

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.

Exception details: System.ApplicationException: HTTP 401

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

"SPClientServiceRequestDuration":["32"],

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

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

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

"MicrosoftSharePointTeamServices":["15.0.0.4569"],

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

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

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

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

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

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

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

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

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

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

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


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

If someone has faced this same issue please let me know how to resolve it.



Viewing all articles
Browse latest Browse all 4226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>