Compartir a través de


Possible workaround for Media Center guide download error code 20

Our development team has found a possible root cause and workaround for error code 20 that may appear when trying to download television guide data in Media Center 2005. The guide download error code article I previously published describes error code 20 as a file validation error, possibly caused by a mismatched guide package. Previously, the only recommended workaround was to try downloading guide data again later.

We got a hold of a machine that was displaying error code 20, and the developer debugged and found the failure resulted from a call to a cryptographic API that is used to decode guide data (which is downloaded in an encrypted format). For some reason we don't fully understand yet, this API returns a set of permissions that don't permit the guide data file to be opened correctly.

This workaround that we used to resolve this issue is the following:

  1. Log onto the computer as a user with Administrator privileges
  2. Close Media Center
  3. Navigate to the %ALLUSERSPROFILE%\Application Data\Microsoft\Crypto\RSA\MachineKeys folder
  4. Delete the file that starts with 1c93d682e65b0f3af0cd51385becba5e_
  5. Restart Media Center and try to download television guide data again

Error code 20 is being caused by one of the machine keys in that folder, but it appears to be a different key on each computer that hits this problem.

<update date="6/22/2006"> Updated this workaround so that it only includes deleting Media Center-specific RSA keys. The previous workaround ended up deleting the entire RSA key store, which can impact other products on the system. </update>

Comments

  • Anonymous
    December 03, 2005
    Umm... wonder why it needs to access an RSA machine key. Are they watching you.

  • Anonymous
    December 03, 2005
    The Media Center guide download feature needs to access this key because it uses it as part of the process of decrypting the guide data that it downloads from the guide server. Data is stored on the guide server in an encrypted format because it is only intended for use by Windows Media Center.

  • Anonymous
    December 04, 2005
    Hi. I am still having problems downloading the guide. Everytime it tries to download, ehrec.exe would crashes. May be you can help out? Thanks

  • Anonymous
    December 04, 2005
    Hi Ti - Can you check and see if you have any files named *.crash in %windir%ehome. Also can you check in eventvwr and see if you have any errors or warning in your Application event log? If possible, please send me the *.crash and an export of your Application event log so I can take a look? You can send them to aaronste@microsoft.com.

  • Anonymous
    December 04, 2005
    I have received error 23 a few times now, seems like since the Rollup 2 was released. I will reboot and then it will work fine.

  • Anonymous
    December 05, 2005
    Hi,

    I'm the CAPI1 owner. Aaron, I sent you an e-mail about this problem. Please answer the questions there to help me triage this problem.

    Thanks,
    Dan

  • Anonymous
    December 05, 2005
    Hi Aaron. I looked in the ehome folder but there is no such file that has .crash extension. I don't see any errors and warnings related to Media Center either. I do see the information logs from it mentioning about it managed to log suceessfully, when it is going to perform the next update, etc. The problem stills exist however...

  • Anonymous
    December 05, 2005
    Hi Dan - I received your email and I have contacted you regarding this issue. Thank you for your help!

    Hi Ti - could you try to download your guide data and let it crash again, and then choose to send the report to Microsoft. Then could you click the link that says View details of this report and send me the information that is listed there? That should allow us to go look at the crash information after it arrives on our server and hopefully that will help narrow this down. You can contact me using http://blogs.msdn.com/astebner/contact.aspx to send me this information.

  • Anonymous
    December 05, 2005
    Hi Eric

    In regards to your guide error code 23, that's a different issue than the one Aaron is describing in this blog entry. You might want to try the tips that he has provided at another blog entry.

    The link is available here
    http://blogs.msdn.com/astebner/archive/2005/11/10/491632.aspx

  • Anonymous
    December 06, 2005
    Hi Aaron,
    The thing is it does not give me Send Error Report dialog. Visual Studio Just-In-Time Debugger catches it and wants to debug. You can see the screenshot from my blog post...

  • Anonymous
    December 06, 2005
    The comment has been removed

  • Anonymous
    December 06, 2005
    Hi Aaron,
    I emailed you the logs info. I hope it would be figured out and solve the problem.

    Thanks,
    Ti

  • Anonymous
    December 06, 2005
    There's quite a few KB articles on permissions for the MachineKeys folder - could be related?

  • Anonymous
    December 14, 2005
    I get these repeated errors 20, too. Turns out it is the proxy from my firewall software. Once disabled the download worked.

    Any ideas what the connection is here...

  • Anonymous
    December 14, 2005
    Hi CaptainComic - There probably isn't any connection between the error you're seeing and the root cause I described in this blog post. Unfortunately, the same guide download error code can occur for multiple different reasons. We have seen other firewall issues with guide downloads in the past (for example the hardware firewall issue described at http://blogs.msdn.com/astebner/archive/2005/11/23/496503.aspx).

    I have added an additional suggested step to my blog post at http://blogs.msdn.com/astebner/archive/2005/11/01/487997.aspx to address AV/firewall/anti-spyware applications.

  • Anonymous
    December 21, 2005
    This worked for me. Thanks for your help!!

  • Anonymous
    January 27, 2006
    I can't do your workaround because it says the access is denied - as if the file was open. But I've closed media center. I've been getting error code 20 repeatedly. And it says "File validation error - mismatched guide package. Code 20" Can you help?

  • Anonymous
    January 27, 2006
    Hi Tommy - the access denied error may be caused by some other program that is running and keeping those files in use. You might want to try to reboot and then try the workaround again and see if that helps. If that doesn't work, you might need to boot into safe mode and try to delete them that way. Hope this helps!

  • Anonymous
    January 27, 2006
    I'm in shock! I finally got it to work. I've been fiddling with it for weeks now and finally got it to work. I booted in safe mode but still couldn't cut and paste the files, so I just deleted them - and the delete was odd... I tried to delete the whole folder but then one or 2 files would disappear on each delete attempt until finally I got them all. Probably had to tell it to delete the folder 5 times. But then after a reboot to normal mode the guide downloaded flawlessly. Thanks for this post on your website - it is literally the only place on the internet that addresses this issue.

  • Anonymous
    March 16, 2006
    just wanted to let you know that I also was having difficulty in downloading the TV Guide listings on my HP media center PC.  I did a google search using the same error message and foud your site.  your fix worked.  Thnx!

  • Anonymous
    June 26, 2006
    The comment has been removed

  • Anonymous
    July 22, 2006
    The comment has been removed

  • Anonymous
    July 24, 2006
    The comment has been removed

  • Anonymous
    July 29, 2006
    PingBack from http://blogs.msdn.com/astebner/articles/487537.aspx

  • Anonymous
    July 30, 2006
    PingBack from http://blogs.msdn.com/astebner/articles/487537.aspx

  • Anonymous
    October 18, 2006
    PingBack from http://www.slappa.org/?p=208

  • Anonymous
    November 04, 2006
    This article serves as a central location for all links to troubleshooting documentation that has been

  • Anonymous
    December 02, 2006
    I tried to go into that folder that should have the keys. Mine does not contain the one that you said to delete. I have no idea what to do. Any ideas?

  • Anonymous
    December 03, 2006
    Hi Gjr5017 - If you don't have the files listed in this blog post, then you are likely not running into this specific issue.  You may want to try some of the other workarounds for guide download issues that are listed in the Guide Download Errors section of the article at http://blogs.msdn.com/astebner/articles/487537.aspx.  If none of those help, you may want to post a question on the Microsoft.Public.Windows.MediaCenter newsgroup and hopefully someone there can provide some useful advice.

  • Anonymous
    August 07, 2010
    I'm experiencing the same problem on vista home premium not win 7 or not xp how do i fix this issue?

  • Anonymous
    August 07, 2010
    Hi Brian Stettin - I'm not sure if the steps in this blog post will help on your version of Windows, but it is worth a try just in case.  If that doesn't help, then I'd suggest posting a question on one of the following forums to see if someone there can help suggest some additional ideas for you to try: thegreenbutton.com/.../ShowForum.aspx www.microsoft.com/.../reader.mspx

  • Anonymous
    September 25, 2010
    Worked like a charm.  Thanks!

  • Anonymous
    May 02, 2014
    This fix worked for me on vista media center

  • Anonymous
    May 02, 2014
    Although on vista the key is located here (hidden folders need to be shown)  C:ProgramDataMicrosoftCryptoRSA