c# - NUnit: Common Language Runtime detected an invalid program -
when running nunit tests in teamcity, keep getting following error.
test(s) failed. system.reflection.targetinvocationexception: exception has been thrown target of invocation. ---> system.invalidprogramexception: common language runtime detected invalid program. @ system.web.razor.parser.syntaxtree.block..ctor(blocktype type, ienumerable`1 contents, string name) @ system.web.razor.parser.syntaxtree.block..ctor(blocktype type, ienumerable`1 contents) @ system.web.razor.parser.syntaxtree.syntaxtreebuildervisitor.visitendblock(blocktype type) @ system.web.razor.parser.visitorpair.visitendblock(blocktype type) @ system.web.razor.parser.parsercontext.endblock() @ system.web.razor.utils.disposableaction.dispose(boolean disposing) @ system.web.razor.utils.disposableaction.dispose() @ system.web.razor.parser.htmlmarkupparser.parserootblock(tuple`2 nestingsequences, boolean casesensitive) @ system.web.razor.parser.htmlmarkupparser.parsedocument() @ system.web.razor.parser.razorparser.parse(lookaheadtextreader input, parservisitor visitor) @ system.web.razor.razortemplateengine.generatecodecore(lookaheadtextreader input, string classname, string rootnamespace, string sourcefilename, nullable`1 canceltoken) @ system.web.razor.razortemplateengine.generatecode(textreader input, string classname, string rootnamespace, string sourcefilename, nullable`1 canceltoken) @ system.web.razor.razortemplateengine.generatecode(textreader input) @ razorengine.compilation.compilerservicebase.getcodecompileunit(string classname, string template, iset`1 namespaceimports, type templatetype, type modeltype) @ razorengine.compilation.directcompilerservicebase.compile(typecontext context) @ razorengine.compilation.directcompilerservicebase.compiletype(typecontext context) @ razorengine.templating.templateservice.createtemplate(string template, type modeltype) @ razorengine.templating.templateservice.gettemplate(string template, type modeltype, string name) @ razorengine.templating.templateservice.parse[t](string template, t model, string name) @ razorengine.razor.parse[t](string template, t model, string name) @ myproject.cachedrazor.parse[t](string atemplaterazor, string atemplatename, t amodel) in c:\teamcity\buildagent\work\5bb723c0e2c1dace\myproject\cachedrazor.cs:line 62 --- end of inner exception stack trace --- @ system.runtimemethodhandle.invokemethod(object target, object[] arguments, signature sig, boolean constructor) @ system.reflection.runtimemethodinfo.unsafeinvokeinternal(object obj, object[] parameters, object[] arguments) @ system.reflection.runtimemethodinfo.invoke(object obj, bindingflags invokeattr, binder binder, object[] parameters, cultureinfo culture) @ system.reflection.methodbase.invoke(object obj, object[] parameters) @ unittests.tests.emailrazorparsingtests.emailrazortemplate_parsesucceeded(emailrazortemplatenames aemailrazortemplatename, type aemailmodeltype) in c:\teamcity\buildagent\work\5bb723c0e2c1dace\unittests\tests\emailrazorparsingtests.cs:line 47
i found answers related long methods in code, don't seem relevant. ideas?
Comments
Post a Comment