65.9K
CodeProject is changing. Read more.
Home

Silverlight - temporary *.XCP files created

Jul 12, 2010

CPOL
viewsIcon

17840

Temporary XCP files are created on the local drive and are not cleared up until the user manually deletes them.

Very recently, I had run across a problem with Silverlight where temporary files (*.XCP) were being created in the temp folder when a user was using IE7 (or IE6). These continued to be created without getting cleared up. They were not cleared up even when the browser was closed. Only a manual delete removed these files. Some explanations and solutions are given here[^]. Unfortunately for me, even adding GC.Collect() to the code did not fix this problem. After further analysis, I was able to trace the problem down to this KB[^]. Installing IE Security update 969897[^], however, finally fixed this issue for me. A link to this hotfix is also provided within the KB. I thought I'd collate this information and post it in a tip to help anyone else who might encounter a similar problem. Cheers