Problem statement
- Umbraco installation is throwing 401 error while uploading images.
- Umbraco installation works fine in local computer but after deployed to web server, the website is redirecting to login screen within few seconds.
An error at console
GET http://example.com/umbraco/backoffice/UmbracoApi/Authentication/GetRemainingTimeoutSeconds 401 (Unauthorized) angular.min.js:106(anonymous function) angular.min.js:106o angular.min.js:102g angular.min.js:100i angular.min.js:79i angular.min.js:79(anonymous function) angular.min.js:80e.$eval angular.min.js:92e.$digest angular.min.js:90e.$apply angular.min.js:92safeApply umbraco.services.js:58(anonymous function) umbraco.services.js:6773(anonymous function) angular.min.js:108e angular.min.js:31(anonymous function
Solution
- Make sure that your web hosting provider supports Full Trust Hosting.
- Enable 32 bit application support for Umbraco website.  If you are AccuWebHosting's Windows Shared Hosting customer, you can submit the support ticket from client area to enable 32 bit application pool.
- Make sure that website's web user has necessary permissions.