Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint 2013 App HTTP 401 UnAuthorized request ,Access denied. You do not have permission to perform this action or access this resource.

$
0
0

Hi everyone,

I am working on lab with two server AD & SharePoint 2013 , OS: win 2008 R2, the SP server is joined to the domain contoso.com,
I am starting new sharepoint app development activities ,
 for that I am using another domain name { ContosoApp.com, with prefix:Apps}, and Started building workflow inside SharePoint App, to collect approval on uploaded Docs on Draft Library, then After running the App, and starting the workflow on the document, the workflow is canceled with error below,

RequestorId: aa1f4eb8-a201-52ef-1ffa-2bd53c550840. Details: System.ApplicationException: HTTP 401 {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}},

The same Error is coming when I run the workflow inside the SPWeb as normal workflow, and each time the workflow tried to update information inside the Item who started the workflow, the workflow failed with error, 410 http Unauthorized .

I have checked the workflow History List in the second case and its showing all the history of the activities and even the "Item Updated successfully" message, but the in-fact Item was not updated, due to the 401 http unauthorized error.

the workflow History List is not showing any items in the SharePoint App, even the WriteLine action is not showing anything on Test Service Host  of the workflow, during debugging.

According to the logs showing in the canceled workfolw its permession issue, but actually I assigned Full permissions to my accounts running the workflow in both cases?

The Full Error Message is as below

"RequestorId: aa1f4eb8-a201-52ef-1ffa-2bd53c550840. Details: System.ApplicationException: HTTP 401 {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}} {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["1"],"SPRequestGuid":["4fd865c8-00da-406e-8cba-218f5833b4c2"],"request-id":["4fd865c8-00da-406e-8cba-218f5833b4c2"],"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":["Wed, 01 Jul 2015 20:53:04 GMT"],"Server":["Microsoft-IIS\/7.5"],"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)"


Basel Badr ,SharePoint Specialist ,MCAD ,MCTS.



Viewing all articles
Browse latest Browse all 7589

Trending Articles



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