首页 新闻 赞助 找找看

如何清除缓存,当您的应用程序承载 Visual C#.net 中的 web 浏览器控件

0
悬赏园豆:50 [已关闭问题]

请教一个问题关于清除IE缓存的,

http://support.microsoft.com/kb/326201

我参考了这里的code,在自己的机器(windows 7)上运行是没有问题的,但是放到服务器上(windows 2008 R2 64bit )运行就出现错误了,下面是错误信息

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
...DeleteUrlCacheEntry(IntPtr lpszUrlName)

 

我已经以Administrator来运行了但是还是不行,请问下我是否应该在服务器设置些什么权限?或者还有其他清除IE缓存的方法吗?

            //ClearFolder ( new DirectoryInfo ( Environment.GetFolderPath ( Environment.SpecialFolder.History ) ) );
//ClearFolder ( new DirectoryInfo ( Environment.GetFolderPath ( Environment.SpecialFolder.InternetCache ) ) );
//ClearFolder ( new DirectoryInfo ( Environment.GetFolderPath ( Environment.SpecialFolder.Cookies ) ) );

 

这种我已经试过了 没有microsoft提供的好。 在线请教...

chris_thanks的主页 chris_thanks | 初学一级 | 园豆:55
提问于:2010-04-13 13:09
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册