媒体失败的轮播控制代码项目 [英] media failed carousel control codeproject

查看:59
本文介绍了媒体失败的轮播控制代码项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

团队,

我已经安装并实现了轮播控制.在默认测试页上它可以正常工作,但是一旦我单击任何图像,它就会显示媒体失败".

请向我推荐我该怎么办?

我已经更改了相对和绝对路径.
给http://localhost:5001/videos/1.wmv

*已删除邮件*

Hi Team,

I have installed and implemented carousel control. It is working ok in default test page but once I click on any image it says "Media failed".

Please sugest me what should I do?

I have changed the path Relative and Absolute.
give http://localhost:5001/videos/1.wmv

*REMOVED MAIL*

推荐答案

您是否在Visual Studio中运行代码?
在这种情况下,端口/网址将不是localhost:5001.

您需要提供主机名和端口,如下所示-
Are you running your code in Visual Studio?
In this case, the port / url wont be localhost:5001.

You need to provide the hostname and port as follows -
string hostName = Application.Current.Host.Source.Host;                    
if (Application.Current.Host.Source.Port != 80)     
hostName += ":" + Application.Current.Host.Source.Port;


这篇关于媒体失败的轮播控制代码项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆