Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio
All postings are provided AS IS
with no warranties, and confer no rights. Additionally, views expressed
herein are my own and not those of my employer, Microsoft.
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:
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>
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.
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?
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&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?
#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 !