Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

Media Center guide download error code 13

Media Center guide download error code 13

  • Comments 59

I have been getting several comments in blog posts and emails from customers who have been running into error code 13 while trying to download television guide data in Media Center.  Unfortunately, there appear to be a lot of cases of this error and we have not been able to identify fixes or workarounds for all of them.  I wanted to create one single post where I list all of the suggested workarounds we currently have.

What is error code 13?

First, a brief description of error code 13.  According to the list of possible guide download error codes I previously posted, this error means "Failure attempting to download new Guide data. Please ensure that you are connected to the Internet. If you connect through a LAN, ensure that your proxy or firewall has been properly configured."

What can I try to do if I receive error code 13 during Media Center guide download?

Based on the cases we have seen so far, this error is generally a proxy server configuration issue that is preventing Media Center or the computer from communicating on the internet.  The following suggestions may help resolve this issue:

  1. Media Center guide download will only work if your computer's system clock is correctly synchronized to the current internet time.  Make sure that your system clock is set to the correct time and time zone for the region you are located in.  Note also that if you do not have the box checked to automatically adjust the time for daylight savings time changes, you may have to manually adjust your clock to account for this.
  2. Sometimes, there are XML parsing problems caused by previously downloaded guide data.  You can attempt to workaround this type of problem by renaming the directory %ALLUSERSPROFILE%\Application Data\Microsoft\Ehome\EPG (I suggest renaming rather than deleting in case you want to revert back to the previous data later on).  Then open Media Center, go to Settings, then TV, then Guide, then Set up Guide Listings and configure guide download one more time to regenerate this folder and (hopefully) the contents
  3. Media Center guide download functionality is located in the binary file %windir%\ehome\ehSched.exe.  If you have firewall hardware or software on your system, you need to make sure that this executable has outgoing internet privileges.
  4. Media Center guide download uses SSL and the HTTPS protocol.  This protocol requires the ability to access the internet on port 443.  In addition, the guide download communicates in some instances via the standard HTTP port - 80.  You may need to configure your firewall to allow internet communication on ports 80 and 443 if you have them locked down otherwise.
  5. Launch Media Center, choose Settings, then General, then Media Center Setup and choose to not use the guide.  Then restart the machine, relaunch Media Center and run Media Center setup again and choose to use the guide again
  6. Re-register the Media Center guide DLL by clicking on the Start menu, choosing Run, typing cmd and then running the command line %windir%\Microsoft.NET\Framework\v1.1.4322\regasm.exe %windir%\ehome\ehepgdat.dll
  7. Temporarily disable any anti-virus, anti-spyware or firewall software that you have installed on your system, then launch Media Center and try to download guide data again
  8. Uninstall McAfee Privacy Service if you have it installed
  9. If you are using a SonicWALL hardware firewall, you may have to manually configure it to allow HTTP byte range requests.  See this blog post for instructions to do this.
  10. If you are using a download manager application that overrides default system download functionality (such as BitComet or FlashGet), they may interfere with Media Center guide data download functionality.  In some cases, it helps to close or disable this type of software, then launch Media Center and try to download guide data again

What if none of the above work?

Unfortunately, this list of suggestions is all that I currently know of to try to troubleshoot this type of failure.  If you have tried all of the above and are still not able to download guide data, then I suggest posting a question at one of the following locations and hopefully someone there can help suggest some additional ideas:

<update date="1/7/2008"> Added information about download manager software and added links to the public newsgroup and forums </update>


  • Hi All & Aaron


    I'm getting the same failure attempting to download new guide data. Code 13. It will download my TV signal provider but refuses to download the guide. It is not a router firewall or ISP blocking the port as I've used XP media center on the same router and it's downloaded it no problem.

    I've tried everything possible including checking the time settings and synchronising to the time server. I've renamed the EPG directory and also checked there are no firewall settings enabled in Vista. This is driving me crazy. I've tried reinstalling 3 times to no avail. I strongly suspect IE7 is the culprit but on Vista it's impossible to remove.

    Any help would be greatly appreciated.

    Many Thanks

  • Hi All & Aaron

    I forgot to add above that my problem is only with MCE on Vista RC1. I can use the MCE XP version on my same set up without any problems.
    Can you tell me if this is a common bug with Vista RC1 and if it is what are the recommended fixes or workarounds.

    Many Thanks

  • I am running Vista RC2 and testing the MCE portion.  Nevertheless, it has been a uphill battle all the way getting MCE to work.

    Nevertheless, I am getting the dreaded Code 13.   I also spent the last 2 hours doing the steps above to no avail.

    What frustrates me is I also own a LG LRM-519, media center appliance.  Works flawlessly.  Guide downloads without issue.

    So, I flip over to Vista... Guide doesn't download.

    I totally understand some of the angst on this board as it shouldn't be this hard to do something so basic.

    On greenbutton, they suggested that if you put the URL "https://data.tvdownload.microsoft.com/discovery/discoveryservice.asmx/GetTVServicesMetaInfo" in the web browser, you should see what you get.  Well, I get a HTTP 500, Server Error.

    Nevertheless, I am very bummed as I have spent much time with no payoff.  Please send feedback to them that this issue needs to be fixed.  It is way to crazy to make people go through this...


  • I've also been struggling with this Error 13 for some time (in a Norwegian MCE setup).  Tried everything mentioned in earlier postings. Reinstalling didn't help, time syncronization is OK, internet connection is not blocked by any firewall etc. Network tracing showed correct access to epg.tvdownload.microsoft.com.

    Finally, in desperation, I added microsoft.com and msn.com to Internet Explorer Trusted Sites, and set security for trusted sites to Low.

    And then the guide started downloading.

    To me it seems that there's something security related that blocks the EPG download.  Scripts, unsigned components - I don't know.

    But to me it works with low security settings.


    Rune R  

  • This blog was helpful. I am running Vista Ultimate and was experiencing the dreaded error 13, it so turns out that my firewall's (Astaro Security Linux) transparent proxy doesn't properly support http byte-ranged requests. ASL uses squid proxy, so I imagine that if your ISP is using some derivative of squid proxy you are out of luck. In my case it was easy to address since I am the custodian of the firewall and my ISP doesn't run any sort of transparent proxy. Interestingly, I did experience simular issues with YUM update on my Linux based VMs under vmware. What I did to solve the issue was the to define the Vista host under ASL, exclude it from the proxy, and then define 2 explicit packet filter rules to allow it direct access to TCP 80 and TCP 443. The guide worked great after that. Just thought I would let you all know what worked for me.

  • I am posting on your blog because you seem to be the authority on getting MC Guide issues worked out.

    I recently set up my MC computer with my AFN satellite system.  (I am stationed over in Japan.)  And while the AFN schdule information is actually in the system under zip code 96349 (The FPO AP zip code), the schedule that is provided is shifted for the Central time zone.  

    My question; Is there a way to trick the system, short of changing the system clock and disabling the MS clock sync function?


    Josh Perry

  • Hi Jperry13 - I don't know enough about how the guide functionality was implemented behind the scenes and I also haven't heard of a case like this in my past experience, so I'm not sure what to suggest as a workaround here.  You might want to post a question on the Microsoft.Public.Windows.MediaCenter newsgroup or one of the Media Center forums like http://www.thegreenbutton.com and hopefully someone there will be able to assist.

  • Vista Media Center writes detailed log information to the following file when retrieving guide listings: C:\ProgramData\Microsoft\eHome\EPG\tracehelper\DefaultDomain-MediaCenterService.xml

    I opened this file and found that the actual error I'm getting (the one that's causing the "Error Code 13" message) is "Failure attempting to download new Guide data.

    Unable to add files to bits job".  Does that mean anything to anybody?  Here's a snippet of the lines leading up to the error:  Notice the warnings about a failure to upload HMS data.  Could that be related to the problem?

    <event level="Error" source="Media Center Guide" time="2007:03:18 04:30:04:111243" eventid="13" category="0">Failure attempting to download new Guide data.

    Unable to add files to bits job</event>

    <event level="Info" source="Media Center Guide" time="2007:03:18 04:30:04:111243" eventid="0" category="0">State now changed to: STATE_ERROR


    <event level="Info" source="Media Center Guide" time="2007:03:18 04:30:03:828058" eventid="0" category="0">Downloading files http://epg.tvdownload.microsoft.com/epgdata/us/1/2642993102/29/31/58/28513928/28513928_ListingData.txt?clientId=e703fdfd2c224ee0870c9b22f3e63789&amp;sessionToken=380A699E8772D72FE1BA1BFD13632FA285738C3B8DEB3D64566AC72AC132D481787CB63C1AD7C585BED7A9978AEC52C11233F0ED292EB8AC


    <event level="Info" source="Media Center Guide" time="2007:03:18 04:30:03:827082" eventid="0" category="0">@ Ehepgdat Downloading files


    <event level="Warning" source="Media Center Guide" time="2007:03:18 04:30:03:827082" eventid="0" category="0">Unable to send Hms file


    <event level="Warning" source="Media Center Guide" time="2007:03:18 04:30:03:827082" eventid="0" category="0">@ Ehepgdat: HmsTransmit Run Failed


    <event level="Info" source="Media Center Guide" time="2007:03:18 04:29:57:827466" eventid="0" category="0">@ Ehepgdat Uploading HmsInfo


  • BigStickCarpet: I have the same issue in Vista. When I look in my log I also see:

    IOException in getting files from HmsFilePath System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\ProgramData\Microsoft\eHome\Hms'.

    I, indeed, do not have this path. I'm not even sure what HMS is. Anyone know? Do other people have this path? In the beginning of the log you see MediaCenter trying to send an HMS file and failing. I wonder if this is why the entire guide-download process is failing for some of us.

  • Forgot to mention, that HSM path does NOT exist. I tried to give everyone permissions to the eHome directory thinking that MediaCenter was unable to create that directory. (I have my MC services running under a different user.) But still no luck.

  • I hate to keep leaving comments but I just set the services back to NETWORK SERVICE and now I can download the guide. I guess I will have to reconfigure my media server to allow Everyone access to the media....any ideas on how to get MC to work when it is running under a different user?

  • Thanks!

    #2 worked great for me on XP Media Center Toshiba Qosmio G30 Laptop w/ cable modem.


  • #3 (adding ehSched.exe to the Windows Firewall Exception List) worked for me when I encountered this problem on one of my Vista Ultimate SP1 machines. Thanks!

  •   I also was constantly recieveing error code#13. The Guide would download as much as 20% and then I would recieve the #13 error I found after synchronizing the time it would still have the same behavior. However disabling the Windows Firewall during the download seem to do the trick, the entire update downloaded successfully. Afterwards I re-enabled the firewall !  

Page 4 of 4 (59 items) 1234
Leave a Comment
  • Please add 4 and 1 and type the answer here:
  • Post