所以,當我開始我的UWP應用程序,我簡要地得到一個閃屏,然後一個異常被拋出時:拋出異常:「System.Exception的」在mscorlib.ni.dll上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 (字符串的typeName,布爾throwOnError,布爾IGNORECASE,布爾reflectionOnly,裁判System.Threading.StackCrawlMark stackMark) mscorlib.ni.dll!System.Type.GetType(字符串的typeName,布爾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(字符串文件名,串fusionLog,INT HRESULT)
有沒有進一步瞭解詳情OTH呃比「引發的異常:'mscorlib.ni.dll'中的'System.Exception'」。
運行不同的應用程序UWP如UWP空白模板的應用程序工作正常,但這個應用程序專門似乎有這個問題。
我可以用我的應用程序的削減版本,如果需要的話可以downloaded here重現該問題。
應該是發生在你的應用程序異常。您必須放置斷點才能找到哪個部分不能工作。也許在主頁構造函數中有錯誤?或者在App.Xaml.Cs OnLaunched? – GeralexGR
應用程序構造函數aka App()上的斷點永遠不會被擊中。這是一個後構造問題。 –
您的應用程序是否在代表中,以便您可以比較差異? – SeeuD1