简体   繁体   English

Windows Phone 8应用失败,出现FileLoadException

[英]Windows Phone 8 app failed with FileLoadException

I am working on a Xamarin app, which works perfect on Android and iOS, but when I am running it on Windows Phone 8.1 (real device, haven't tried emulator). 我正在开发一个Xamarin应用程序,该应用程序在Android和iOS上完美运行,但是当我在Windows Phone 8.1(真实设备,尚未尝试模拟器)上运行它时。 It fails with 它失败了

Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.ni.dll
Exception thrown: 'System.UnauthorizedAccessException' in System.Windows.ni.dll
Exception thrown: 'System.UnauthorizedAccessException' in System.Windows.ni.dll
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\Data\Programs\{612EA9F2-DCC3-4580-8B14-389E6EF8E763}\Install\da-DK\Microsoft.Phone.Controls.Toolkit.resources.DLL'. Module was built without symbols.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Device.ni.dll'. Cannot find or open the PDB file.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\Data\Programs\{612EA9F2-DCC3-4580-8B14-389E6EF8E763}\Install\program.Xamarin.DLL'. Symbols loaded.
Exception thrown: 'System.IO.FileLoadException' in mscorlib.ni.dll
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\Data\Programs\{612EA9F2-DCC3-4580-8B14-389E6EF8E763}\Install\Xamarin.Insights.DLL'. Cannot find or open the PDB file.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Net.Primitives.ni.dll'. Cannot find or open the PDB file.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\Data\Programs\{612EA9F2-DCC3-4580-8B14-389E6EF8E763}\Install\System.Net.Http.Primitives.DLL'. Cannot find or open the PDB file.
Exception thrown: 'System.Net.WebException' in System.Windows.ni.dll
Exception thrown: 'System.Net.WebException' in System.Windows.ni.dll
Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.ni.dll
Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.ni.dll
Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in mscorlib.ni.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
Exception thrown: 'System.Threading.Tasks.TaskCanceledException' in program.DLL
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Runtime.Serialization.Primitives.ni.dll'. Cannot find or open the PDB file.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Xml.XDocument.ni.dll'. Cannot find or open the PDB file.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Text.RegularExpressions.ni.dll'. Cannot find or open the PDB file.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 
Exception thrown: 'System.IO.FileLoadException' in mscorlib.ni.dll

It successfully gets to the 1st page (login-page), and I investigated on the server, that it gets called with success and a token is send in response. 它成功进入第一页(登录页面),我在服务器上进行了调查,成功调用了它,并发送了令牌作为响应。

program.Xamarin.DLL is an extension library I build, as it can be used in other projects. program.Xamarin.DLL是我构建的扩展库,因为它可以在其他项目中使用。

If you are using a secondary solution, be sure they both are using the same NuGET package versions. 如果使用辅助解决方案,请确保它们都使用相同的NuGET软件包版本。 This solved my problem 这解决了我的问题

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

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