System.Windows.pdb未加载 - Windows Phone

时间:2013-05-23 11:47:38

标签: c# windows-phone-7 windows-phone-8 backgroundworker

我刚刚从网站上下载了后台工作者示例以供参考,当我运行应用程序时,它运行没有任何问题。后台任务正常执行,并显示Toast通知。

但问题是我将目标版本从Windows Phone 7.1更改为Windows Phone 8后,它没有执行后台任务。它显示错误System.Windows.pdb not loaded

我没有更改项目中的单个代码。我不知道为什么会出现这种错误..请帮助我..

这是我从网站上下载的sample

这是调用堆栈 > System.Windows.ni.dll!MS.Internal.JoltHelper.OnUnhandledException(object sender, System.UnhandledExceptionEventArgs args) Unknown [Native to Managed Transition]
[Managed to Native Transition]
mscorlib.ni.dll!System.Reflection.RuntimeAssembly.nLoad(System.Reflection.AssemblyName fileName, string codeBase, System.Security.Policy.Evidence assemblySecurity, System.Reflection.RuntimeAssembly locationHint, ref System.Threading.StackCrawlMark stackMark, System.IntPtr pPrivHostBinder, bool throwOnFileNotFound, bool forIntrospection, bool suppressSecurityChecks) Unknown mscorlib.ni.dll!System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity, System.Reflection.RuntimeAssembly reqAssembly, ref System.Threading.StackCrawlMark stackMark, System.IntPtr pPrivHostBinder, bool throwOnFileNotFound, bool forIntrospection, bool suppressSecurityChecks) Unknown mscorlib.ni.dll!System.Reflection.RuntimeAssembly.InternalLoad(string assemblyString, System.Security.Policy.Evidence assemblySecurity, ref System.Threading.StackCrawlMark stackMark, System.IntPtr pPrivHostBinder, bool forIntrospection) Unknown mscorlib.ni.dll!System.Reflection.RuntimeAssembly.InternalLoad(string assemblyString, System.Security.Policy.Evidence assemblySecurity, ref System.Threading.StackCrawlMark stackMark, bool forIntrospection) Unknown mscorlib.ni.dll!System.Reflection.Assembly.Load(string assemblyString) Unknown Microsoft.Phone.ni.dll!Microsoft.Phone.BackgroundAgentActivator.LoadEntryPointAssembly(string assemblyName) Unknown Microsoft.Phone.ni.dll!Microsoft.Phone.BackgroundAgentActivator.LoadAgent(string assemblyName, string typeName) Unknown Microsoft.Phone.ni.dll!Microsoft.Phone.BackgroundAgentActivator.Microsoft.Phone.IBackgroundAgentActivator.CreateBackgroundAgent(string assembly, string typeinfo) Unknown Microsoft.Phone.ni.dll!Microsoft.Phone.BackgroundAgentDispatcher.AgentRequest.Invoke() Unknown Microsoft.Phone.ni.dll!Microsoft.Phone.BackgroundAgentDispatcher.InvocationThread() Unknown mscorlib.ni.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) Unknown mscorlib.ni.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown mscorlib.ni.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown mscorlib.ni.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown mscorlib.ni.dll!System.Threading.ThreadHelper.ThreadStart() Unknown [Native to Managed Transition]

1 个答案:

答案 0 :(得分:0)

pdb文件是一个符号文件,用于在调试时逐步执行代码。

我不确定你为什么要在调试时进入system.windows ...你可能想要查看工具 - >选项并检查您是否尝试进入微软代码。

问题是你得到一个例外,并且调试器尝试使用它时它会遇到异常。

没有必要踩到那个装配体,因为你无法改变它 - 也许你想要寻找它。我个人不会打扰; p