Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for AnonHostModuleHolder ---> System.Security.Cryptography.CryptographicException: Couldn't access random source. at System.Security.Cryptography.RNGCryptoServiceProvider.Check () [0x00000] in :0 at System.Security.Cryptography.RNGCryptoServiceProvider..ctor () [0x00000] in :0 at System.Guid.FastNewGuidArray () [0x00000] in :0 at System.Reflection.Emit.ModuleBuilder..ctor (System.Reflection.Emit.AssemblyBuilder assb, System.String name, System.String fullyqname, Boolean emitSymbolInfo, Boolean transient) [0x00000] in :0 at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (System.String name, System.String fileName, Boolean emitSymbolInfo, Boolean transient) [0x00000] in :0 at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (System.String name) [0x00000] in :0 at System.Reflection.Emit.AssemblyBuilder.GetManifestModule () [0x00000] in :0 at System.Reflection.Emit.DynamicMethod+AnonHostModuleHolder..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at System.Reflection.Emit.DynamicMethod..ctor (System.String name, MethodAttributes attributes, CallingConventions callingConvention, System.Type returnType, System.Type[] parameterTypes, System.Type owner, System.Reflection.Module m, Boolean skipVisibility, Boolean anonHosted) [0x00000] in :0 at System.Reflection.Emit.DynamicMethod..ctor (System.String name, System.Type returnType, System.Type[] parameterTypes, Boolean restrictedSkipVisibility) [0x00000] in :0 at System.Linq.Expressions.Compiler.LambdaCompiler..ctor (System.Linq.Expressions.Compiler.AnalyzedTree tree, System.Linq.Expressions.LambdaExpression lambda) [0x00000] in :0 at System.Linq.Expressions.Compiler.LambdaCompiler.Compile (System.Linq.Expressions.LambdaExpression lambda, System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator) [0x00000] in :0 at System.Linq.Expressions.Expression`1[System.Action`3[System.Runtime.CompilerServices.CallSite,System.Type,System.Object]].Compile () [0x00000] in :0 at System.Runtime.CompilerServices.CallSiteBinder.BindCore[Action`3] (System.Runtime.CompilerServices.CallSite`1 site, System.Object[] args) [0x00000] in :0 at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[Type,Object] (System.Runtime.CompilerServices.CallSite site, System.Type arg0, System.Object arg1) [0x00000] in :0 at AlgorithmTest.Program.Main (System.String[] args) [0x00000] in :0
n_thalpy 9년 전
에... 코딩에서 C# 4.0으로 dynamic을 썼더니 펑 하고 터졌습니다.
분명히 MSVS2013에서는 잘 굴러가는데 말입니다......
여담이지만 에러 구문이 상당히 기네요.