我正在尝试在Silverlight Webservice上调试一些东西 .

它最初设置为与IIS一起工作,但是我认为在VS开发服务器上调试会更容易,所以我切换到了 .

调试silverlight部分工作正常,但是当我在webservice(.csv.cs)中放置一个断点时,它没有被击中,提出:

断点当前不会被击中 . 没有为此文档加载任何符号

我试过了:

  • 清洁解决方案和重建

  • 已删除obj和bin文件夹,已重建

  • 确保您处于调试模式 . 没有代码优化

  • 选择了ASP.NET和Silverlight调试器 .

  • 在“C:\ WINDOWS \ Microsoft.NET \ Framework {框架版本} \ Temporary ASP.NET Files”下删除了项目的临时ASP.NET生成的程序集文件

  • 使用IIS服务器并手动附加调试器

  • 从头开始创建新的IIS Web应用程序

  • 删除了解决方案suo文件

  • 重新启动机器

  • 将IE浏览器从8更新为11

  • Checked物理目录指向正确的位置(似乎是)并且所有.pdb文件都是最新的/正在构建时创建的

  • 已停用"just my code"

  • 所有模块的已加载符号

在解决方案的“多个启动项目”设置中,我将Silverlight应用程序的操作设置为“无”,并为Web服务启用“开始”操作 .

在配置中,两者都在任何CPU上配置为“Debug”并选中“Build” .

构建输出:

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\WebDev.WebServer40.exe', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\WebDev.WebHost40\v4.0_10.0.0.0__b03f5f7f11d50a3a\WebDev.WebHost40.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Symbols loaded.
'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll', Symbols loaded.
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\mscorlib.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.Windows.RuntimeHost.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.Windows.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.Net.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.Core.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.Xml.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.Runtime.Serialization.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.Windows.Browser.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.ServiceModel.Web.dll'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\en-US\System.debug.resources.dll'
'iexplore.exe' (Silverlight): Loaded 'BAE', Symbols loaded.
'iexplore.exe' (Silverlight): Loaded 'InfragisticsSL5.Controls.Charts.XamDataChart.v14.1'
'iexplore.exe' (Silverlight): Loaded 'InfragisticsSL5.Controls.Editors.XamColorPicker.v14.1'
'iexplore.exe' (Silverlight): Loaded 'InfragisticsSL5.Controls.Editors.XamSlider.v14.1'
'iexplore.exe' (Silverlight): Loaded 'InfragisticsSL5.DataVisualization.v14.1'
'iexplore.exe' (Silverlight): Loaded 'InfragisticsSL5.v14.1'
'iexplore.exe' (Silverlight): Loaded 'System.ComponentModel.DataAnnotations'
'iexplore.exe' (Silverlight): Loaded 'System.ServiceModel.DomainServices.Client'
'iexplore.exe' (Silverlight): Loaded 'System.ServiceModel.DomainServices.Client.Web'
'iexplore.exe' (Silverlight): Loaded 'System.ServiceModel.Web.Extensions'
'iexplore.exe' (Silverlight): Loaded 'System.Windows.Controls'
'iexplore.exe' (Silverlight): Loaded 'System.Windows.Controls.Input'
'iexplore.exe' (Silverlight): Loaded 'System.Windows.Controls.Toolkit'
'iexplore.exe' (Silverlight): Loaded 'System.Xml.Linq'
'iexplore.exe' (Silverlight): Loaded 'System.ComponentModel.Composition'
'iexplore.exe' (Silverlight): Loaded 'System.ComponentModel.Composition.Initialization'
'iexplore.exe' (Silverlight): Loaded 'System.Windows.Data'
'iexplore.exe' (Silverlight): Loaded 'System.Windows.Controls.Toolkit.Internals'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\System.ServiceModel.dll'
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'iexplore.exe' (Silverlight): Loaded 'BindingDebugging'
'iexplore.exe' (Silverlight): Loaded 'C:\Program Files (x86)\Microsoft Silverlight\5.1.40416.0\en-US\System.Windows.debug.resources.dll'
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in System.ServiceModel.dll
The thread '<No Name>' (0x20f0) has exited with code 0 (0x0).
The thread '<No Name>' (0x1154) has exited with code 0 (0x0).
The thread '<No Name>' (0x1b58) has exited with code 0 (0x0).
The thread '<No Name>' (0x1ea4) has exited with code 0 (0x0).
The thread '<No Name>' (0x1fc0) has exited with code 0 (0x0).
The thread '<No Name>' (0x23f8) has exited with code 0 (0x0).

接下来要尝试什么的提示?谢谢