本文介绍了“源文件不同....” Visual Studio 2008中的消息是在x64 Windows上调试x32应用程序的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写ADO.NET提供者。对于调试我使用类DbProviderFactories.GetFactory方法。这个方法构造我继承的DbProviderFactory类,我用于创建DbConnection继承者的提供者等等。当我尝试在我的提供程序代码中设置断点我播放它不工作 - 执行不停止。当我在我的代码中抛出异常VS2008显示消息框描述源文件不同...。
调试在明天前一天工作得很好,但现在不行。有人知道魔术复选框来解决我的麻烦吗?任何想法?



Update1 :提供程序汇编在后续构建步骤中添加到GAC。编译器在解决方案中没有发现错误。
Update2 :静态引用的程序集的源代码也是不同的。



Update3和last :我找到了麻烦的来源。我使用x64版本的Windows 7.我的应用程序使用一些COM服务器(通常的本机x32 COM服务器),。所以我决定运行它作为x32应用程序使用WOW所以我设置平台目标为x32。但调试器开始显示消息,如源文件不同....。我不明白为什么它的作品。我会写信给微软的支持小组。

解决方案

Visual Source 2008中的源文件不同...消息是调试结果x64 Windows上的x32应用程序。请参阅


I'm writing ADO.NET provider. For debugging I use class DbProviderFactories.GetFactory method. This method constructs my inherited DbProviderFactory class that i use for create DbConnection inheritor of my provider and etc.. When I try set breakpoint in my provider code I sow it isn't work - execution doesn't stopped. When I throw exception in my code VS2008 showed message box describing "The source file is different...".Debugging works good before day before tomorrow, but it isn't now. Does somebody know "magic checkbox" for resolve my trouble? Any idea?

Update1: Provider assembly is adding to GAC on post build step. Compiler didn't find errors in solution.Update2: Source code of static referenced assemblies is "different" too.

Update3 and last: I've found source of trouble. I use x64 version of Windows 7. My application use some COM servers (usual native x32 COM Servers) that can't be loaded in x64 context. So I decided run it as x32 app using WOW so I set platform target as x32. But debugger started show messages like "The source file is different....". I don't understand why it works as works. I will write to microsoft support team.

解决方案

"The source file is different…" message in Visual Studio 2008 is result of debugging x32 apps on x64 Windows. See new thread

这篇关于“源文件不同....” Visual Studio 2008中的消息是在x64 Windows上调试x32应用程序的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 11:31