2011-10-04 78 views
1

我嘗試附加到進程w3wp.exe來調試我的asmx網絡服務,添加斷點。但沒有任何提示(斷點不會被觸發,本文件沒有符號載入)。無法調試asmx網絡服務

我可以調試從asmx文件調用的項目中的代碼。

見ASMX文件:

<%@ WebService Language="vb" Codebehind="~/App_Code/MyWebService.asmx.vb" Class="MyWebService.MyWebService" Debug="true" %> 

見的Web.config:

<compilation defaultLanguage="vb" debug="true" targetFramework="4.0"> 
    <compilers> 
    <compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".VB" compilerOptions="/optimize+ /define:Trace=True /imports:Microsoft.VisualBasic,System,System.Collections,System.Data,System.Diagnostics,System.Web,System.Web.Services"/> 
    </compilers> 
</compilation> 

我用Win 2008 R2,VS 2010 SP1中,IIS 7.5,.Net框架4 86。

有沒有人有想法我可以調試我的asmx文件?

回答

1

在Visual Studio中,確保您在Debug模式下運行(與Release模式相反)。同時嘗試刪除/ obj和/ bin文件夾,然後嘗試重新構建整個解決方案。

+0

感謝它的幫助。 – tbicr