“/”应用程序中的服务器错误。

正在分析“????”- 限定符 {x,y} 前没有任何内容。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 正在分析“????”- 限定符 {x,y} 前没有任何内容。

源错误:


行 111:                {
行 112:                    string tempkey = row["KeywordName"].ToString();
行 113:                    Regex r = new Regex(tempkey);
行 114:                    Content = r.Replace(Content, "<a href='/s/" + HttpUtility.UrlEncode(tempkey) + ".aspx' target='_blank'>" + tempkey + "</a>", 1, 0);
行 115:                }

源文件: c:\Websites\sport.shaoqun.com\Template\ShowArticle.aspx.cs    行: 113

堆栈跟踪:


[ArgumentException: 正在分析“????”- 限定符 {x,y} 前没有任何内容。]
   System.Text.RegularExpressions.RegexParser.ScanRegex() +2090
   System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op) +146
   System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, TimeSpan matchTimeout, Boolean useCache) +460
   System.Text.RegularExpressions.Regex..ctor(String pattern) +62
   Template_ShowArticle.Page_Load(Object sender, EventArgs e) in c:\Websites\sport.shaoqun.com\Template\ShowArticle.aspx.cs:113
   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.4690.0