简体   繁体   English

IOFileNotFoundException mscorlib.dll

[英]IOFileNotFoundException mscorlib.dll

I try to run unit tests for Windows Phone Silverlight. 我尝试为Windows Phone Silverlight运行单元测试。 When an exception is thrown, I constantly receive the next exception instead of the real exception (for instance, ParseException). 当引发异常时,我会不断收到下一个异常,而不是实际的异常(例如,ParseException)。 I think it has something to do with the culture it is asking. 我认为这与它所要求的文化有关。

Message: 信息:

Could not load file or assembly 'mscorlib.debug.resources, Version=4.0.0.0, Culture=nl-NL, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. 无法加载文件或程序集“ mscorlib.debug.resources,版本= 4.0.0.0,Culture = nl-NL,PublicKeyToken = 7cec85d7bea7798e”或其依赖项之一。 The system cannot find the file specified. 该系统找不到指定的文件。

Stacktrace: 堆栈跟踪:

at System.Environment.GetResourceFromDefaultUsedFallback(String key, CultureInfo culture, Boolean& usedFallback) at System.Environment.GetResourceString(String key, Object[] values) at System.IO.FileNotFoundException.ToString() 在System.IO.FileNotFoundException.ToString()在System.Environment.GetResourceString(String key,Object [] values)在System.Environment.GetResourceFromDefaultUsedFallback(String key,CultureInfo culture,Boolean&usedFallback)

Are you trying to run the unit tests on a device whose language is set to nl-NL ? 您是否要在语言设置为nl-NL的设备上运行单元测试?

I solved my similar-sounding problem by switching the device language to en-US . 我通过将设备语言切换为en-US解决了听起来相似的问题。

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

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