Silverlight3 test (1): Message: ag_e_network_error

Source: Internet
Author: User

Test media playback in silverlight3. The Code is as follows (created using blend 3 ):

<Mediaelement X: Name = "new" margin = "95,63, 105,79" Source = "assets/New. wmv" stretch = "fill"/>

A simple line of code with the following error message:

Line: 53
CHAR: 13
Code: 0
Error: unhandled error in Silverlight 3 Application clientbin/silverlightcontroltest. xap
Code: 4001
Category: mediaerror
Message: ag_e_network_error

URL: http: // localhost: 17021/

Solution:

After query by multiple parties, the solution is found:

1. The media address must be changed to a URL address:

Modify as follows:

<Mediaelement X: Name = "new" margin = ", 63," Source ="HTTP: /localhost: 17021/assets/New. wmv"Stretch =" fill "/>

2. Copy the media files (including folders) originally placed under the blend file to the test URL directory.

According to the information found on the Internet, this error occurs in previous versions of Silverlight. It is not clear because I was just reading Silverlight. I hope you will not make such mistakes any more.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.