{"id":32862,"date":"2023-02-07T13:34:23","date_gmt":"2023-02-07T08:04:23","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=32862"},"modified":"2023-03-21T10:14:38","modified_gmt":"2023-03-21T04:44:38","slug":"error-2894-riched20-dll-getlasterror-5","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/error-2894-riched20-dll-getlasterror-5\/","title":{"rendered":"Error 2894 RICHED20.DLL GetLastError() returned: 5"},"content":{"rendered":"<p>When installing a third-party program, you may encounter the error 2895 mentioning riched20.dll. The entire error message is below:<\/p>\n<pre class=\"err\">Error 2894.Info 2894. Loading RICHED20.DLL failed.\r\nGetLastError() returned: 5.<\/pre>\n<p><!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-32867\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/02\/riched20-dll-error-2894.jpg\" alt=\"riched20.dll getlasterror 5 2894 \" width=\"724\" height=\"343\" \/><\/p>\n<p>For example, the above error may occur when installing these apps:<\/p>\n<ul>\n<li>H&amp;R Block Tax<\/li>\n<li>TurboTax<\/li>\n<li>NVivo<\/li>\n<li>Retrospect 19<\/li>\n<\/ul>\n<h2>Cause<\/h2>\n<p>Error code 5 denotes &#8220;ERROR_ACCESS_DENIED.&#8221; The above issues occur if the module riched20.dll has lost the NTFS permission entries or ACEs and ownership, making the file inaccessible to users. Based on our observation, this happens for the 32-bit version of riched20.dll located at <code>C:\\Windows\\SysWOW64\\Riched20.dll<\/code>.<\/p>\n<h2>Resolution<\/h2>\n<p>To resolve the issue, take ownership of <code>riched20.dll<\/code> and assign the necessary permissions.<\/p>\n<p>Open an <a href=\"https:\/\/www.winhelponline.com\/blog\/open-elevated-command-prompt-windows\/\">admin Command Prompt<\/a> window.<\/p>\n<p>Execute the following commands one by one:<\/p>\n<pre>cd \/d c:\\windows\\syswow64\\<\/pre>\n<pre>TAKEOWN \/F riched20.dll \/a<\/pre>\n<pre>ICACLS riched20.dll \/reset<\/pre>\n<pre>ICACLS riched20.dll \/inheritance:r<\/pre>\n<pre>ICACLS riched20.dll \/grant \"NT SERVICE\\TrustedInstaller\":(F)<\/pre>\n<pre>ICACLS riched20.dll \/grant \"Administrators\":(RX)<\/pre>\n<pre>ICACLS riched20.dll \/grant \"NT AUTHORITY\\SYSTEM\":(RX)<\/pre>\n<pre>ICACLS riched20.dll \/grant \"BUILTIN\\Users\":(RX)<\/pre>\n<pre>ICACLS riched20.dll \/grant \"ALL APPLICATION PACKAGES\":(RX)<\/pre>\n<pre>ICACLS riched20.dll \/grant \"ALL RESTRICTED APPLICATION PACKAGES\":(RX)<\/pre>\n<pre>ICACLS riched20.dll \/setowner \"NT Service\\TrustedInstaller\"<\/pre>\n<div class=\"qt\"><strong>Note:<\/strong> If you want to rename or replace this module with a fresh copy from the source, you need full control access. In that case, <strong>replace command #6<\/strong> above with the following:<\/p>\n<pre>ICACLS riched20.dll \/grant \"Administrators\":(F)\r\n<\/pre>\n<\/div>\n<p>The Advanced Security Settings dialog for Riched20.dll should now look like the following:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-32868\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/02\/riched20-dll-permissions.png\" alt=\"Riched20.dll default permissions\" width=\"767\" height=\"520\" \/><\/p>\n<p><em>(For more information about takeown.exe and icacls.exe, check out the article\u00a0<a href=\"https:\/\/www.winhelponline.com\/blog\/take-ownership-of-file-or-folder\/\">Take Ownership of a File or Folder Using Command-Line in Windows<\/a>.)<\/em><\/p>\n<p>The above commands give full control privileges to the file for the &#8220;administrators&#8221; group and the &#8220;SYSTEM&#8221; account.<\/p>\n<p>That&#8217;s it! You should no longer get the &#8220;riched20.dll GetLastError&#8221; when installing third-party apps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When installing a third-party program, you may encounter the error 2895 mentioning riched20.dll. The entire error message is below: Error 2894.Info 2894. Loading RICHED20.DLL failed. GetLastError() returned: 5.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[106,191],"class_list":["post-32862","post","type-post","status-publish","format-standard","hentry","category-windows","tag-command-prompt","tag-error-messages"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":59358,"url":"https:\/\/www.winhelponline.com\/blog\/epicgameslauncher-error-0xc000007b-0xc000012f\/","url_meta":{"origin":32862,"position":0},"title":"How to Fix Epic Games Launcher Error 0xC000007B or 0xC000012F","author":"Ramesh","date":"July 12, 2023","format":false,"excerpt":"When you run Epic Games Launcher, the error code 0xc000007b or 0xc000012f may appear. The full error message is mentioned below: EpicGamesLauncher.exe - Application Error The application was unable to start correctly (0xc000007b). Click OK to close the application. On some systems, the error code may be 0xc000012f. EpicGamesLauncher.exe -\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"file copy dll replace epicgameslauncher","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/epicgameslauncher-error-fix-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/epicgameslauncher-error-fix-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/epicgameslauncher-error-fix-3.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":77899,"url":"https:\/\/www.winhelponline.com\/blog\/appvisvsubsystems64-0xc000012f-office\/","url_meta":{"origin":32862,"position":1},"title":"0xc000012f &#8211; AppvIsvSubsystems64.dll Error Launching Office apps","author":"Ramesh","date":"February 15, 2025","format":false,"excerpt":"When you launch Office apps such as Word, Excel, or PowerPoint, the \"Bad Image\" error appears with the error code 0xc000012f. Here's the full error message. WINWORD.EXE - Bad Image C:\\Program Files\\Microsoft Office\\root\\Office16\\AppVIsvSubsystems64.dll is either not designed to run on Windows or it contains an error. Try installing the program\u2026","rel":"","context":"In &quot;Office&quot;","block_context":{"text":"Office","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/office\/"},"img":{"alt_text":"office online repair","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/02\/office-365-repair.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/02\/office-365-repair.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/02\/office-365-repair.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/02\/office-365-repair.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":75337,"url":"https:\/\/www.winhelponline.com\/blog\/vclibs-uwpdesktop-33728-x64-bad-image\/","url_meta":{"origin":32862,"position":2},"title":"[Fix] VCLibs UWPDesktop 14.0.33728.0 x64 &#8220;Bad Image&#8221; Error","author":"Ramesh","date":"June 1, 2024","format":false,"excerpt":"Summary: In this article, we'll learn how to repair the VCLibs UWPDesktop 14.0.33728.0 x64 modules. The procedure is similar to the VCLibs x64 14.0.33519.0 \"Bad Image\" error fix we saw in an earlier article. When you launch Notepad, Store, Paint, Photos, or any other Store app on a Windows 11\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"vclibs uwpdesktop 33728 bad image","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/vclibs-33728-bad-image.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":80420,"url":"https:\/\/www.winhelponline.com\/blog\/c2r64-dll-0xc000012f-office-apps\/","url_meta":{"origin":32862,"position":3},"title":"0xc000012f \u2013 c2r64.dll Error Launching Office apps","author":"Ramesh","date":"March 9, 2026","format":false,"excerpt":"When you open an Office app, such as Excel, Outlook, Word, PowerPoint, or OneNote, you may get an error message regarding the file c2r64.dll. Here are some of the errors that users encounter: WINWORD.EXE - Bad Image C:\\Program Files\\Microsoft Office\\Root\\Office16\\c2r64.dll is either not designed to run on Windows or it\u2026","rel":"","context":"In &quot;Office&quot;","block_context":{"text":"Office","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/office\/"},"img":{"alt_text":"c2r64.dll error 0xc000012f launching Office apps","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2026\/03\/c2r64-dll-0xc000012f.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":54008,"url":"https:\/\/www.winhelponline.com\/blog\/securityhealthsystray-bad-image-0xc000012f\/","url_meta":{"origin":32862,"position":4},"title":"SecurityHealthSystray.exe &#8211; Bad Image 0xC000012F Error","author":"Ramesh","date":"June 16, 2023","format":false,"excerpt":"You may be unable to access the Windows Security app on your Windows 11 computer. And when you login to your account, the following error message appears: SecurityHealthSystray: SecurityHealthSystray.exe - Bad Image \\?\\C:\\Windows\\System32\\SecurityHealth\\1.0.2303.27001-0\\SecurityHealthSSO.dll is either not designed to run on Windows or it contains an error. Try installing the program\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"securityhealthsso.dll 0xc000012f","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/securityhealthsso_dll_error_2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/securityhealthsso_dll_error_2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/securityhealthsso_dll_error_2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":74737,"url":"https:\/\/www.winhelponline.com\/blog\/missing-mfc110u-dll-vc-runtime\/","url_meta":{"origin":32862,"position":5},"title":"Fix for &#8220;Mfc110u.dll was not found&#8221; Error","author":"Ramesh","date":"April 9, 2024","format":false,"excerpt":"When you run a program, an error may occur indicating that the file \"mfc110u.dll\" is missing from the computer. The entire error message is below: The code execution cannot proceed because mfc110u.dll was not found. Reinstalling the program may fix the problem. Running DISM and SFC doesn't resolve the issue.\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"mfc110u.dll missing - vc++ redist","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/mfc110u-dll-missing.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/32862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=32862"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/32862\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=32862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=32862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=32862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}