引发的异常:在 UWP 应用启动.dll 上的 mscorlib.ni 中'System.Exception'



因此,当我启动我的UWP应用程序时,我会短暂获取plass屏幕,然后在:

上抛出一个异常

mscorlib.ni.dll!system.runtimetypehandle.getTypebyName(字符串名称,bool throwonError,bool ignorecase,bool igeclectionly,ref system.threading.stackcrawlmark stackmark stackmark stackmark stackmark,system.intptr pprivhostbinder,bool loadtypefrompefmarttypeformarttypepepeformantialdialdialdialdialialdialdialdialdialdialdialdialdialdialdialdialdialdialdialname)) mscorlib.ni.dll!system.runtimetype.getType(字符串键入,bool throwonError,bool ignorecase,bool bool reflectionly,ref system.threading.stackcrawl.stackcrawlmark stackmark)) mscorlib.ni.dll!system.type.getType(字符串打字,bool throwonError) mscorlib.ni.dll!system.Resources.ResourceManager.getWinrtresourceManager() mscorlib.ni.dll!system.globalization.cultureinfo.getCultulureInforuserPreferredLanguageInappx() mscorlib.ni.dll!system.globalization.curtureinfo.currentculture.get() mscorlib.ni.dll!system.io.io.fileleoadexception.formatfileleloadexceptionMessage(字符串fileName =" system.runtime,版本= 4.0.20.0,culture =中性,publickeytoken = b03f5f5f5f7f7f7f7f7f11d50a3a,int hresult) mscorlib.ni.dll!system.io.filenotfoundexception.setMessageField() mscorlib.ni.dll!system.io.filenotfoundexception.filenotfoundexception(字符串文件名,字符串fusionlog,int hresult)

除了" exception thrown:'system.exception'in mscorlib.ni.dll"。

没有其他细节。

运行不同的UWP应用程序,例如UWP空白模板应用程序正常工作,但此应用程序似乎有此问题。

我可以通过我的应用程序的剪切版本来重现问题,如果需要,可以在此处下载。

因此,事实证明我的应用程序包已损坏或其他内容,因此我从[%localappdata% packages]中删除了软件包。您可以在包装部分下方的包装中找到包装名称。

我通过查找活动查看器中遇到的错误来弄清楚这一点,Microsoft的KB说我应该在计算机上重新创建我的用户帐户,以便我可以获得一个新的包装文件夹。但是我发现,只需删除您的项目的包装即可修复。

最新更新