Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi. I just installed the macro on my site running umbraco v
184.108.40.206. But when I insert the macro and point it at a YouTube video and browse to the page, I get a YSOD. (Stack trace below.) It appears to be failing to connect to YouTube. I don't know why the server needs to connect as I thought this was embedded on the client. At any rate, this is what is happening for me. I have verified that the YouTube video can be viewed otherwise.
One thought -- we are behind an authenticating proxy/firewall. If the server must connect to YouTube, then this may be the reason for the error. You think that's it?
[SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 220.127.116.11:80] System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239 System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224[WebException: Unable to connect to the remote server] System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +287 System.Net.WebClient.DownloadString(Uri address) +106 System.Net.WebClient.DownloadString(String address) +29 CPalm.Umbraco.Macro.OEmbed.usercontrols.CPalmUmbracoMacroOEmbed.Page_Load(Object sender, EventArgs e) in D:\Solutions\CPalm\Umbraco\CPalm.Umbraco.Macro.OEmbed\usercontrols\CPalmUmbracoMacroOEmbed.ascx.cs:46 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Seems as a connection error to youtube. I have looked at the code and the problem is that the user control dosent catch the exception.
Could you try and post the url you are trying to insert?
This macro gets the flash embed code from youtube, so if youtube fails to answer this macro will fail to recieve the embed code
Thanks for the reply, Anders. Some more info. After I posted the above, I talked with one of our network admins and she set up a bypass so that the Web server would not have to authenticate to the proxy server. We were hoping that would fix the problem but it has not helped. Due to the topology of our network, there is no way to get a direct, non-proxied connection to the Internet from our Web server. But she said most programs and scripts should work fine through the proxy when it does not challenge for authentication, as it is now configured.
This is the URL of the video: http://www.youtube.com/watch?v=6_sWOd9WQGo
I can browse directly to it from either my workstation or the Web server.
Can you try http://our.umbraco.org/projects/insert-video---youtube,-vimeo
I have made that project and can help debugging it if needed to solve your problem.
Thank you for your kind offer of assistance, Anders. I have started a new thread on your project's page in continuation.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted