BUG: Cannot step into Web method when you debug the ASP.NET Web service (316175)
The information in this article applies to:
- Microsoft Visual Basic 2005 Express Edition
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
This article was previously published under Q316175 SYMPTOMS When you debug a Microsoft ASP.NET Web Service that is
developed with Visual Basic .NET or Visual Basic 2005, you cannot step into a Web method. The
debugger steps over the method call instead of into it. CAUSE This problem occurs because the signature of the Web method
contains a String argument that is declared with the ByRef keyword. RESOLUTION Use one of the following methods to work around this
problem:
- Use the ByVal keyword in the method signature.
Redefine the signature
of the Web method to accept the String argument by value rather than by reference. To do this, use the ByVal keyword rather than the ByRef keyword when you define the String argument. - Insert a breakpoint in the Web method signature.
Open the Web Service project in Microsoft Visual Studio .NET or in Microsoft Visual Studio 2005, and then add a
breakpoint on the signature of the Web method. This causes the project to stop
running whenever the Web method is called.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 3/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kbvs2002sp1sweep kbbug kbnofix KB316175 |
---|
|