请教一个问题关于清除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提供的好。 在线请教...