请教一个问题关于清除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提供的好。 在线请教...
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提供的好。 在线请教...
我尝试把Temporary Internet Files 文件夹readonly去掉,但是按确认后 它又自己恢复了
PS :我在我机器上 Temporary Internet Files文件夹也是readonly的
在服务器上IE的缓存文件夹地址是不同的,指向 C:\Users\Administrator\AppData\Local\Temp\3
而不是我们一般的 C:\Users\Administrator\AppData\Local\Microsoft\Windows\Temporary Internet Files
发现好像是注册表的 Violation Enviroment 设置了
好疑惑...... 请解答....
换其它系统试试,例如server2003,
....... 就是不能换系统,想问问同行们知道server2008是否有这样一种安全机制? 有 如何可以解开?
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/3e10e206-4699-4285-9f3e-dd2ba25778dd