Last post Mar 23, 2016 05:58 PM by indianapolymath
Mar 23, 2016 02:45 PM|indianapolymath|LINK
in VS and starting the debugger using the local IIS express and IE 11 in an attached process, everything works fine until I close the browser. When I reopen the browser, localStorage has several items missing that should be there and in the case of two items,
there is no code to clear, remove or set to null/empty anywhere.
Now here is the weird part: it works fine with no data loss in other browsers and works fine with no data loss in the same local IE 11 browser when I publish the code to an IIS server and run the application from the IIS server. This ONLY occurs when running
the browser application in debug mode from VS 2015. I put a brake point onbeforeunload and see that the localStorage data is fine right before the browser app unloads but when I check localStorage prior to opening or loading anything, that data is lost. I
have also tried it in VS 2013 and get the same issue.
Can anyone point me to a cause, reported defect, others that have run into this situation, solutions, etc?
It seems to me that when I run the application so that VS attaches to the browser, this shows up or am I off base?
Mar 23, 2016 04:14 PM|PatriceSc|LINK
Have you tried to see if you are near the max size? I would also try to compare the size and maybe would clear entirely the local storage to start again and see if it is still happening...
Mar 23, 2016 05:58 PM|indianapolymath|LINK
That was it and thank you. I thought about testing for that but I thought why would it NOT work attached to debug mode and work for the same browser same machine just not in debug / IIS Express mode? Anyway, thanks for the point in the right direction.