我正在开发一款适用于Android和iOS的Xamarin应用程序,但是当我在Windows Phone 8.1上运行它时(真正的设备,没有尝试过模拟器)。它失败了
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
它成功进入第一页(登录页面),我在服务器上进行调查,成功调用它,并在响应中发送令牌。
program.Xamarin.DLL
是我构建的扩展库,因为它可以在其他项目中使用。
答案 0 :(得分:0)
如果您使用的是辅助解决方案,请确保它们都使用相同的NuGET包版本。 这解决了我的问题