未发现异常场编译DLL的正则表达式 [英] Field not found exception with compiled dll regular expression

查看:237
本文介绍了未发现异常场编译DLL的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这种错误的麻烦和被搜索对谷歌的解决方案,但目前还没有任何

I'm having trouble with this error and been searched for a solution on google but there aren't any.

例外:现场未发现:System.Text.RegularExpressions.Regex.internalMatchTimeout

Exception: Field not found: 'System.Text.RegularExpressions.Regex.internalMatchTimeout'.

我的正则表达式是:

TheExpressions.Add("ExtractURL", @"\b(?:(?:https?|ftp|file)://|www\.|ftp\.)
  (?:\([-A-Z0-9+&@#/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#/%=~_|$?!:,.])*
  (?:\([-A-Z0-9+&@#/%=~_|$?!:,.]*\)|[A-Z0-9+&@#/%=~_|$])");



代码编译选项:

Code to compile with options:

CI[Cnt++] = new RegexCompilationInfo((string)de.Value,        // the reg. ex pattern
                                                 RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace | RegexOptions.Compiled,   // Options to specify
                                                 (string)de.Key,          // name of the pattern
                                                 "TheRegularExpressions", // name space name
                                                 true);                  // Public?



感谢。

Thanks.

推荐答案

看来,internalMatchTimeout领域是.NET 4.5新。检查以确保您不会以某种方式混合.NET库版本。

It seems that the internalMatchTimeout field is new in .NET 4.5. Check to make sure that you aren't somehow mixing .NET library versions.

这篇关于未发现异常场编译DLL的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆