tags:

views:

103

answers:

2

How can I delete the IE cache in a 64 bit environment?

A: 

Take a look at How to clear the cache when your application hosts a WebBrowser control in Visual C# .NET

Shay Erlichmen
doesnt seem to work for some reason.
webly
It doesn't delete the cache or you get an error?
Shay Erlichmen
no error... it just seems like is not working... the following directory continues to grow in size “\windows\SysWOW64\config\systemprofile\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5"
webly
this is the x86 folder, you need to compile you application in x86 mode in order that the api will refer to that folder.In the build choose x86 instead of AnyCpu.
Shay Erlichmen
it is being built as x86
webly
A: 

After contacting the MSFT support the answer turned out to be that I had to run the application under an interactive user. It seems like wininet on win 08 64 bit did not like executing the delete cache apis under a non interactive user!

webly
non interactive user? you mean a service? WinInet, IE's networking library, isn't supported in windows service.
Sheng Jiang 蒋晟