Server Error in '/' Application.

Invalid URI: The format of the URI could not be determined.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UriFormatException: Invalid URI: The format of the URI could not be determined.

Source Error:


Line 100:        if (formattedParam.StartsWith("/"))
Line 101:        {
Line 102:            Uri uri = new Uri(videoUrl);
Line 103:            return uri.Scheme + "://" + uri.Host + formattedParam;
Line 104:        }

Source File: d:\web\HJH\hk2s.hjhdy.com\1213.aspx.cs    Line: 102

Stack Trace:


[UriFormatException: Invalid URI: The format of the URI could not be determined.]
   System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +7038091
   System.Uri..ctor(String uriString) +22
   s.GenerateEmbedUrl(String videoUrl, String productId) in d:\web\HJH\hk2s.hjhdy.com\1213.aspx.cs:102
   ASP._1213_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\web\HJH\hk2s.hjhdy.com\1213.aspx:1710
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4797.0