SharePoint Online – App Only Calls returning “System.Net.WebException: The remote server returned an error: (401) Unauthorized”

Recently I had an issue with a SharePoint Remote Event Receiver that was returning a 404 error. I had given correct permission in the appmanifest.xml. The clientcontext was being created with the following code: After digging around I discovered that newer SharePoint Online sites have app only permissions disabled. To enable it I ran the […]

Provider Hosted App Times Out

Disclaimer: The supplied solution is convoluted, a better solution would be to completely recreate the SharePointContext class. I came across a problem with a SharePoint Provider Hosted App I created for a client while working on the Gold Coast. The app was a Single Page Application created in MVC C# utilising the standard SharePointContext and […]

visualstudio

Web deployment task failed. http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.

​After setting up and using Web Deployment from Visual Studio 2013 many many times, I experienced an error: Error 79 Web deployment task failed. (Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.) I couldn’t figure out […]