by Njål

“Insufficient storage available” when updating Android Apps

A few days ago I started to get the error “Insufficient storage available” when updating Apps on my Samsung S4 – running Cyanogenmod 11. I Googled it – and was recommended me to install various “cleaning” Apps – and also make sure I wasn’t out of storage space – which I wasn’t.

image

 

What actually fixed the problem was to open File Manager (which comes with Cyanogenmod) – and deleting folders inside /data/app-lib/ for the Apps that refused to be updated. Often the Apps had several folders – indicating that an Update had beenattempted – but failed. Delete all folders related to the App.

 

image

 

The folder names might not correspond 100% with the name of the App. If you are unable to find the folder for an App – then simply go to Settings > Apps > XXXXX and look at the namespace (marked in red below). The folder will have this name as well.

image

 

by Njål

Intelligencia UrlRewriter – Ashx Sessions getting lost

image

When debugging a Windows Azure website I kept getting null Sessions for my ashx pages. They worked perfectly on  IISExpress, so I thought this was a Azure flaw. It turned out that it was IIS 7.5 + Url Rewriting (I’m using the Intelligencia module) that caused the problem.

 

 

After adding this to my Web.config everything worked like expected again – also in IIS 7.5

<configuration>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" >
     ...
     ...
  </system.Webserver>
</configuration>

Also – make sure your ashx code implements IRequiresSessionState

public class ApiHandler : IHttpHandler, IRequiresSessionState
{
}