我有一个针对.NET 4.0.3的大型应用程序需要在XP上运行.它使用Visual Studio 2010 SP1构建良好,并在XP上正常运行.
使用面向.NET 4.0.3的Visual Studio 2012构建也可以在Windows 7上正常构建并运行良好,但无法在XP上运行.我收到一条错误消息,说MyApp.exe不是有效的Win32应用程序.
如何使用Visual Studio 2012继续支持使用XP机器的.NET 4.0.3?
.net windows-xp visual-studio-2010 windows-7 visual-studio-2012
在使用Visual Studio 2012 RC进行调试并打开异常中断时,Visual Studio会在.NET Framework中中断异常.如何仅在我的代码中使异常中断?
在调试ASP.NET MVC 4项目时,每个页面上都会抛出很多框架异常.以下异常发生了很多:
System.Globalization.CultureNotFoundException occurred
HResult=-2147024809
Message=Culture is not supported.
Parameter name: name
UserCache is an invalid culture identifier.
Source=mscorlib
ParamName=name
InvalidCultureName=UserCache
StackTrace:
at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
InnerException:
Run Code Online (Sandbox Code Playgroud)
此异常来自mscorlib.dll,我不希望Visual Studio中断.
看起来我在异常窗口中缺少一列.我只看到"Thrown"列,并且"User-Unhandled"缺失.这可能是我的问题.