我的项目基于 WCF Web 服务,在调试时,它正在启动 WCF 测试客户端。当我遇到错误时,而不是在特定点中断代码,它只是将错误报告回 WCF 测试客户端。
我希望它能够中断代码,这样我就可以调试并观察它正在中断哪些记录。这曾经发生过,但突然停止工作。我不知道这是否是我在 web.config 中禁用的东西。
Project Web Server 仍设置为 IIS Express (localhost:#####),而且我还有其他项目使用 WCF 测试客户端,它们在代码中的中断就好了。
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="ConnectorService.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime requestValidationMode="2.0" targetFramework="4.5"/>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<directoryBrowse enabled="true"/>
</system.webServer>
<applicationSettings>
<ConnectorService.Properties.Settings>
<setting name="ConnectionName" serializeAs="String">
<value>Test</value>
</setting>
<setting name="UserName" serializeAs="String">
<value>TestUser</value>
</setting>
<setting name="Password" serializeAs="String">
<value>Password</value>
</setting>
</ConnectorService.Properties.Settings>
</applicationSettings>
</configuration>
我不知道它可能是什么,如果我能提供更多信息,请问,谢谢。