Visual Studio : Object reference not set Error when trying to insert a brealpoint?
I am getting an error when trying to add a breakpoint to a state machine workflow in the visual studio designer.This just started happening and I don’t know why.
Reproducible:
- Open workflow
- Right click and select breakpoint – add breakpoint
- Error Object reference not set to an instance of an object.
- Nothing in the event viewer
I can reproduce this error on other workflows added to the project. If I start another workflow in a new project, I do not have this problem.
UPDATE
Adding the workflow project to a new blank solution fixes this error. I have deleted the SUO file from the original solution (1.2 MB) but this had no effect.
Help would be appreciated.
This is my current environment
XP pro sp2
Pentium 4 3.20 with 2gb ram
Microsoft Visual Studio 2005
Version 8.0.50727.762(SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Enterprise
Microsoft Visual Basic 200577718-204-0769794-41100
Microsoft Visual Basic 2005
Microsoft Visual C# 200577718-204-0769794-41100
Microsoft Visual C# 2005
Microsoft Visual C++ 200577718-204-0769794-41100
Microsoft Visual C++ 2005
Microsoft Visual J# 200577718-204-0769794-41100
Microsoft Visual J# 2005
Microsoft Visual Studio Tools for Office77718-204-0769794-41100
Microsoft Visual Studio Tools for the Microsoft Office System
Microsoft Visual Web Developer 200577718-204-0769794-41100
Microsoft Visual Web Developer 2005
Microsoft Web Application Projects 200577718-204-0769794-41100
Microsoft Web Application Projects 2005
Version 8.0.50727.762
Visual Studio 2005 Team Edition for Architects77718-204-0769794-41100
Microsoft Visual Studio 2005 Team Edition for Software Architects
Visual Studio 2005 Team Edition for Developers77718-204-0769794-41100
Microsoft Visual Studio 2005 Team Edition for Software Developers
Visual Studio 2005 Team Edition for Testers77718-204-0769794-41100
Microsoft Visual Studio 2005 Team Edition for Software Testers
Crystal ReportsAAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005
Enterprise Library Configuration Editor3.0
Microsoft patterns & practices Enterprise Library Configuration Editor
Extensions for Windows WF
Windows Workflow Foundation Tools for Visual Studio
Microsoft Recipe Framework Package8.0
This package provides services to the guidance packages.
Microsoft Visual Studio 2005 Team Suite - ENU Service Pack 1 (KB926601)
This service pack is for Microsoft Visual Studio 2005 Team Suite - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/926601
Orcas Technology Preview - .NET Framework 3.0 Development Tools1.0
Microsoft Visual Studio Code Name Orcas Community Technology Preview - Development Tools for WinFX
GhostDoc for Visual Studio 2005
For more information about GhostDoc, see the GhostDoc website
at http://www.roland-weigelt.de/ghostdoc
Copyright ? 2003-2007 Roland Weigelt.

