Click here to Skip to main content
15,844,903 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

Updated 23-Jan-11 21:20pm
JF2015 24-Jan-11 2:20am    
Edited to remove the mail address. Never post your address in a public forum to avoid being spammed.

1 solution

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;
Share this answer
praveshsharda 24-Jan-11 3:06am    

it is hosted at IIS

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900