.net - System.Configuration.ConfigurationErrorsException using xunit2 and automapper -
i have been facing unusual problem, in unit test project getting error, strange thing tests pass, fail in next run. error getting automappermappingexceptions, although trying load profiles assembly. have checked app.config potential errors. running xunit2, automapper 3.2.1. attaching part of stack trace
system.configuration.configurationerrorsexception configuration system failed initialize @ system.configuration.configurationmanager.prepareconfigsystem() @ system.configuration.configurationmanager.getsection(string sectionname) @ system.web.configuration.clientruntimeconfig.getsectionobject(string sectionname) @ system.web.configuration.runtimeconfig.getsection(string sectionname, type type, resultsindex index) @ system.web.configuration.runtimeconfig.get_httpruntime() @ system.web.util.httpencoder.getcustomencoderfromconfig() @ system.lazy`1.createvalue() --- end of stack trace previous location exception thrown --- @ system.runtime.exceptionservices.exceptiondispatchinfo.throw() @ system.lazy`1.get_value() @ system.web.util.httpencoder.get_current() @ system.web.httputility.htmldecode(string s)
this framework error, has nothing am. malformed configuration file cause example. there should inner exception more details.
Comments
Post a Comment