简体   繁体   English

C#编译问题

[英]C# Compile Issue

An unhandled exception of type 'System.TypeInitializationException' occurred in Microsoft.VisualStudio.HostingProcess.Utilities.dll Microsoft.VisualStudio.HostingProcess.Utilities.dll中发生了类型为'System.TypeInitializationException'的未处理异常

Additional information: The type initializer for 'BobTyler.Program' threw an exception. 附加信息:'BobTyler.Program'的类型初始值设定项引发了异常。

'BobTyler.vshost.exe' (Managed): Loaded 'C:\\Windows\\assembly\\GAC_MSIL\\System.Configuration\\2.0.0.0__b03f5f7f11d50a3a\\System.Configuration.dll' 'BobTyler.vshost.exe'(受管理):已加载'C:\\ Windows \\ assembly \\ GAC_MSIL \\ System.Configuration \\ 2.0.0.0__b03f5f7f11d50a3a \\ System.Configuration.dll'

Any advice? 有什么建议? Thanks. 谢谢。

My guess is that you´ve got a configuration setting in your BobTyler.exe.config (/app.config in the solution project) that isn't of a proper type. 我的猜测是您的BobTyler.exe.config(解决方案项目中为/app.config)中的配置设置类型不正确。 Check all entries under and make sure that they´re mapped to proper types. 检查下面的所有条目,并确保将它们映射到正确的类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM