Home   |   Asp.Net 2.0   |   .Net Framework 2.0   |   IIS 6.0   |   Sql Server 2005   |   Visual Basic 2005   |   c# 2005   |   VS 2005   |   Visual Source Safe 2005

MS Dynamics CRM 3.0

SharePoint Portal Server 2003
SharePoint Server 2007
Dynamics NAV
Dynamics CRM
SharePoint Designer 2007
SharePoint Portal Server 2001
Windows SharePoint Services
Windows SharePoint Services 3.0
Project Server 2003
Project Server 2007
Dynamics – Point of Sale
Dynamics AX
Dynamics GP
Dynamics Retail Management System (RMS)
Dynamics SL
SQL Server 2000
Visual Basic .NET 2003
Visual C# .NET 2003
Visual C++ .NET 2003
Visual C++ 2005
Visual SourceSafe 6.0
Windows Server 2003
Windows Server 2003
Outlook 2003
ADO.NET 1.1
ASP.NET 1.0
Visual Studio Team Foundation Server
Visual Studio 2005 Team Edition
Windows Internet Explorer 7
BizTalk Server 2000
BizTalk Server 2002
BizTalk Server 2004
BizTalk Server 2006
Visual Studio 6.0
Access 2000
Access 2002
Access 2003
Access 2007
Access 97
Collaboration Data Objects 2.0
Commerce Server 2002
Content Management Server 2001
Commerce Server 2007
Content Management Server 2002
Data Access Components 2.7
Data Access Components 2.8
DirectX 9.0b
Office Small Business Accounting 2006
Accounting 2007
ActiveSync 4.1
Class Server 2.0
Groove 2007
Windows Vista
Outlook 2007
OneNote 2003
OneNote 2007
Office X for Mac
Zune software
Zune Live
Zoo Tycoon 2
Flight Simulator 2002
Dungeon Siege II

Cervo Technologies
The Right Source to Outsource

Oracle Database FAQS

Sharepoint Portal Server KB

Outlook 2007 Knowledge Base Articles

Visual Basic 2005 Knowledge Base Articles

Unable to set the next statement to this location error message when you are debugging a Visual Studio 2005 application


When you are debugging a Microsoft Visual Studio 2005 application and you try to set the next statement, you may receive an error message that resembles the following error message:
Unable to set the next statement to this location. There is no executable code at this location in the source code.

CAUSE

The Debugger Engine is picking the statements in sequence. As long as the caret is at the end of the line, the Debugger Engine will set the next statement on the next line. If there is no executable code from the next line, an error message will occur.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Steps to reproduce the behavior

Visual Basic 2005
1.Start Visual Studio 2005.
2.Click the File menu, click New, and then click Project.
3.Expand Visual Basic, click Console Application, type ConsoleApplication1 in the Name text box, and then click OK.
4.Replace the code in the Module1.vb file with the following code.
Module Module1

    Sub Main()
        Dim x As Integer
        x = 1
    End Sub


End Module
5.Set a Breakpoint on the x = 1 line.
6.Click the Debug menu, and then click Start Debugging.
7.Position the cursor to the right of the b in End Sub, right-click with the caret in the same position as the cursor, and then click Set Next Statement.
You then see the error message that is mentioned in the symptoms section.

Visual C# 2005
1.Start Visual Studio 2005.
2.Click the File menu, click New, and then click Project.
3.Expand Visual C#, click Console Application, type ConsoleApplication1 in the Name text box, and then click OK.
4.Replace the code in the Program.cs file with the following code.
using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            int x;
            x = 1;
        }
    }
}
5.Set a Breakpoint on the x = 1; line.
6.Click the Debug menu, and then click Start Debugging.
7.Position the cursor to the right of the closing curly brace for the static void Main method, right-click with the caret in the same position as the cursor, and then click Set Next Statement.
You then see the error message that is mentioned in the symptoms section.


APPLIES TO
Microsoft Visual Studio 2005 Professional Edition
Microsoft Visual Studio 2005 Standard Edition
Microsoft Visual Studio 2005 Express Edition
Microsoft Visual Basic 2005
Microsoft Visual C# 2005 Express Edition
Microsoft Visual Studio 2005 Team System Architect Edition
Microsoft Visual Studio 2005 Team System Developer Edition
Microsoft Visual Studio 2005 Team Foundation
Microsoft Visual Studio 2005 Team System Test Edition

Keywords: 
kbtshoot kberrmsg kbinfo kbprb KB919808

Copyright © 2004 - 2007 Gridview.org, Inc. All rights reserved. Powered by Smart Web Content Management System