It might be because the schema of the backup doesn’t match the target site
Follow the answers
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
Follow the answers
Generally:
Make sure the filename in the header is quoted
Follow the article: http://nikpatel.net/2012/02/12/enable-asp-net-session-state-on-sharepoint-2010-application/