'/' 應用程式中發生伺服器錯誤。

值不能為 null。
參數名稱: input

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: System.ArgumentNullException: 值不能為 null。
參數名稱: input

原始程式錯誤:


行 122:            if (MainData.YoutubeUrl != "")
行 123:            {
行 124:                Match regexMatch = Regex.Match(MainData.YoutubeUrl, "^[^v]+v=(.{11}).*",
行 125:                                   RegexOptions.IgnoreCase);
行 126:                string v = regexMatch.Groups[1].Value; pic = " <iframe width = \"853\" height = \"480\" src = \"https://www.youtube.com/embed/" + v + "\" frameborder = \"0\"  allowfullscreen ></iframe >";

原始程式檔: C:\WEB\MyWeb\techlife\detail.aspx.cs    行: 124

堆疊追蹤:


[ArgumentNullException: 值不能為 null。
參數名稱: input]
   System.Text.RegularExpressions.Regex.Match(String input) +8107706
   System.Text.RegularExpressions.Regex.Match(String input, String pattern, RegexOptions options) +102
   detail.Page_Load(Object sender, EventArgs e) in C:\WEB\MyWeb\techlife\detail.aspx.cs:124
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4110.0