- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
因此,当我启动我的 UWP 应用程序时,我会短暂地看到启动画面,然后在以下位置引发异常:
mscorlib.ni.dll!System.RuntimeTypeHandle.GetTypeByName(string name, bool throwOnError, bool ignoreCase, bool reflectionOnly, ref System.Threading.StackCrawlMark stackMark, System.IntPtr pPrivHostBinder, bool loadTypeFromPartialName) mscorlib.ni.dll!System.RuntimeType.GetType(string typeName, bool throwOnError, bool ignoreCase, bool reflectionOnly, ref System.Threading.StackCrawlMark stackMark) mscorlib.ni.dll!System.Type.GetType(string typeName, bool throwOnError) mscorlib.ni.dll!System.Resources.ResourceManager.GetWinRTResourceManager() mscorlib.ni.dll!System.Globalization.CultureInfo.GetCultureInfoForUserPreferredLanguageInAppX() mscorlib.ni.dll!System.Globalization.CultureInfo.CurrentCulture.get() mscorlib.ni.dll!System.IO.FileLoadException.FormatFileLoadExceptionMessage(string fileName = "System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", int hResult) mscorlib.ni.dll!System.IO.FileNotFoundException.SetMessageField() mscorlib.ni.dll!System.IO.FileNotFoundException.FileNotFoundException(string fileName, string fusionLog, int hResult)
除了“抛出的异常:mscorlib.ni.dll 中的‘System.Exception’”之外,没有其他详细信息。
运行不同的 UWP 应用程序(例如 UWP 空白模板应用程序)工作正常,但这个应用程序似乎特别有这个问题。
我可以使用我的应用程序的缩减版本重现该问题,如果需要的话可以是 downloaded here .
最佳答案
原来我的应用程序包已损坏或其他原因,所以我从 [%localappdata%\packages] 中删除了该程序包。您可以在打包部分下的包 list 中找到您的包名称。
我通过查找我在事件查看器中遇到的错误来解决这个问题,Microsoft 的 KB 说我应该在机器上重新创建我的用户帐户,以便我得到一个新的包文件夹。但我发现只需删除项目的包即可解决问题。
关于c# - UWP App Start 抛出异常 : 'System.Exception' in mscorlib. ni.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37960616/
我正在 VS2012 中运行我的应用程序,但遇到运行时错误; 当我查看“原始位置”时,我看到了 mscorlib.dll,但没有看到 mscorlib.pdb。 为什么会发生这种情况以及如何解决它?
我正在尝试将 Silverlight 支持添加到我最喜欢的编程语言 Nemerle。 Nemerle ,在编译过程中,主要分两步通过反射加载所有类型 1-) 使用 Assembly.LoadFrom
我最近正在调查一个构建失败,看到一条关于程序集之间冲突的警告。我深入挖掘,MSBuild 告诉我: There was a conflict between "mscorlib, Version=4.
我们正在使用 Razor 语法开发 Html 模板引擎,将 html 模板转换为 scrip# 代码。 当我们在 ScriptSharp 项目中添加 cshtml 文件时,visual studio
发现了 WCF 并因此开始探索它。这是一个 C# 控制台应用程序。代码工作正常,除非我尝试退出。如果我输入错误类型的数量,它会检测到(捕获),通知我输入无效并将我送回菜单提示。这很好而且花花公子,直到
我想将数据读入 RSAParameters 结构 ( RSAParameters ) 并检查了两次,确保数据正确。但是,我仍然收到错误“无效数据”异常: bei System.Security.
这个问题在这里已经有了答案: What does 'Cor' stand for? (2 个答案) 关闭 5 年前。 mscorlib 绝对是 .net 基类库之一,C# 中的每个程序都依赖于它,但
我在尝试编辑表格时遇到错误。请帮忙 ] 1 最佳答案 将我的 sql server 升级到 2014。问题是在 sql server 版本中未匹配。 关于sql-server - 调用目标抛出异常 (
循环时出现此错误 An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll
我尝试重新启动远程 SQL 服务器(2012 full),但收到此错误: Unable to start service MSSQLSERVER on server (mscorlib) 每次我尝试时
有些事情我无法理解。我无法阅读类型引用: Assembly mscorlib = Assembly.Load("mscorlib"); // it DOES exist, returns type r
我正在研究 MSCoreLib,发现了一些有趣的东西。 我什至不知道它是如何工作的。 (引用 http://referencesource.microsoft.com/#mscorlib/system
我想给 mscorlib 添加一些方法。例如: 字符串abc; abc.IsNumeric() 我希望能解释我的问题。 最佳答案 您不能向 mscorlib 添加方法,但是您可以使用扩展方法,使它们看
我尝试为 Windows Phone Silverlight 运行单元测试。当抛出异常时,我不断收到下一个异常而不是真正的异常(例如,ParseException)。我认为这与它所要求的文化有关。 留
在混淆我的 WPF C# 应用程序时,它显示异常说明 Error occurred while obfuscation: System.IO.FileNotFoundException - Syste
大家好,我有一个 ASP.NET 网站项目,出于某种原因坚持引用 mscorlib 1.0.5 和 mscorlib 2.0,但我不明白为什么。 我已经使用 NDepend 分析了所有引用的 DLL,
我正在创建一个 COM 接口(interface),它应该允许在 Visual Basic 脚本中使用 For Each 和在 C++ 中使用 IEnumVariant。问题是我不希望 C++ 客户端
我有 Delphi 应用程序 (hostproject.exe),我想通过注册免费技术来使用 .net com 对象 (NetSide.dll)。 当应用程序启动时,显示并排配置错误和 sxtrace
我在我的电脑上安装了第 3 方程序。我在 ildasm.exe 中打开了这个程序附带的 .dll 之一并检查了 list : .assembly extern mscorlib { .publi
我有一个第三方库,它提供了一个 System.Collections.Generic.IReadOnlyCollection 类型,用于与 .NET 4.0 应用程序兼容。但是,如果您在 .NET 4
我是一名优秀的程序员,十分优秀!