问题描述
我有一个在Visual Studio 2012中制作的Windows窗体项目,目标是.Net Framework 4.5。此程序调用Web服务,该服务也是在Visual Studio 2012中制作的,但是以.Net Framework 3.5为目标,因此它可以是具有.asmx扩展名的ASP.Net Web服务,而不是新的WCF服务。
这两个项目都是编译和工作但是我得到了意想不到的结果并希望调试我的Web服务,但我无法。 Visual Studio给出了这个错误:
无法自动进入服务器。无法确定停止位置。验证符号已加载。未找到符号:< ...其他内容...>
无论如何,我可以保留我的Windows窗体项目在.Net Framework 4.5和我的Web服务3.5并仍然调试它?我不想完全将我的ASP.Net Web服务重写为WCF服务。
I have a Windows Forms project that was made in Visual Studio 2012 and targets the .Net Framework 4.5. This program calls a Web Service which was also made in Visual Studio 2012 but targets the .Net Framework 3.5 so that it can be a ASP.Net Web Service with the .asmx extension and not the newer WCF Service.
Both projects compile and work but I'm getting unexpected results and wanted to debug my web service, but am unable to. Visual Studio gives me this error:Unable to automatically step into the server. Unable to determine a stopping location. Verify symbols are loaded. Symbol not found: <...other stuff...>
Is there anyway that I can keep my Windows Forms project at .Net Framework 4.5 and my Web Service at 3.5 and still debug into it? I don't want to have to completely rewrite my ASP.Net Web Service into a WCF Service.
推荐答案
这篇关于WinForm .Net 4.5调用Web服务.Net 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!