私は異常な問題に直面してきました.私の単体テストプロジェクトでは、このエラーが発生しています.また、奇妙なことは、通常は合格するいくつかのテストが次の実行で失敗することです. アセンブリからすべてのプロファイルを読み込もうとしていますが、このエラーで AutoMapperMappingExceptions も取得しています。潜在的なエラーについて app.config もチェックしました。xunit2、automapper 3.2.1 を実行しています。スタックトレースの一部を添付しています
System.Configuration.ConfigurationErrorsException
Configuration system failed to initialize
at System.Configuration.ConfigurationManager.PrepareConfigSystem()
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Web.Configuration.ClientRuntimeConfig.GetSectionObject(String sectionName)
at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
at System.Web.Configuration.RuntimeConfig.get_HttpRuntime()
at System.Web.Util.HttpEncoder.GetCustomEncoderFromConfig()
at System.Lazy`1.CreateValue()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Lazy`1.get_Value()
at System.Web.Util.HttpEncoder.get_Current()
at System.Web.HttpUtility.HtmlDecode(String s)