IE浏览器Internet 临时文件设置不了,导致客户端登陆报错问题解决办法

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-23浏览:2

IE浏览器Internet 临时文件设置不了,导致客户端登陆报错问题解决办法


出现问题背景:

      由于客户端的图片缓存于IE浏览器的Internet 临时文件中,故需要访问IE的临时文件的权限,因此当客户端的操作系统下的临时文件夹访问不了、设置不了大小的话会导致登陆客户端的时候报错。


      具体现象如下:

  1. 登陆报错:

image.webp

   点开【更多】可以看到报错如下:

Insufficient memory to continue the execution of the program.,   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at MS.Win32.WinInet.get_InternetCacheFolder()
   at System.Windows.Media.Imaging.BitmapDownload.BeginDownload(BitmapDecoder decoder, Uri uri, RequestCachePolicy uriCachePolicy, Stream stream)
   at System.Windows.Media.Imaging.LateBoundBitmapDecoder..ctor(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy requestCachePolicy)
   at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
   at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
   at Kingdee.BOS.XPF.Component.RUrl2BMPSourceConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)...

    2.客户端的头部背景色等图片加载不出来:

image.webp



出现问题原因:

      IE浏览器Internet选项下设置临时文件夹:路径为空,临时文件大小为0。修改大小和设置文件夹位置也不生效。正常情况下可以设置这个文件夹的大小和路径,出现这种情况是因为微软操作系统的BUG,现在已经发现了几个客户有这种情况。

image.webp


  解决办法:

      查了一些资料,可以通过修改操作系统的方法解决。解决方式如图,根据本机的操作系统环境选择对应的注册表参数修改即可。配置如下:


User Configuration > Preferences > Registry:

  • HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    Name: Cache
    Type: REG_EXPAND_SZ
    Value (Win 7): %<USERPROFILE>%\AppData\Local\Microsoft\Windows\Temporary Internet Files
    Value (Win 10): %<USERPROFILE>%\AppData\Local\Microsoft\Windows\INetCache

  • for some reason the mistake I did also changed the default user's registry
    HKU\ .DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    Name: Cache
    Type: REG_EXPAND_SZ
    Value (Win 7): %<USERPROFILE>%\AppData\Local\Microsoft\Windows\Temporary Internet Files
    Value (Win 10): %<USERPROFILE>%\AppData\Local\Microsoft\Windows\INetCache

  • HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache
    Name: ContentLimit
    Type: REG_DWORD
    Data (Decimal): 250

  • HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content
    Name: CacheLimit
    Type: REG_DWORD
    Data (decimal): 256000


image.webp

参考网址来源:https://community.spiceworks.com/topic/1967956-missing-ie-10-11-temporary-folder-location


IE浏览器Internet 临时文件设置不了,导致客户端登陆报错问题解决办法

出现问题背景: 由于客户端的图片缓存于IE浏览器的Internet 临时文件中,故需要访问IE的临时文件的权限,因此当客户端的操作系统...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息