Solved

How to fix this debug exception: Operators.vb not found.

Posted on 2016-08-30
4
25 Views
Last Modified: 2016-09-04
I am having a problem with the debugger in Visual Studio 2015 Community on my desktop Windows 10 PC. When I set a breakpoint and then Step Through my code by pressing the F8 key (Step Into), when I come to the following code: "If Method = "MACRS Then",  I get the following message: "Operators.vb not found. You need to find Operators.vb to view the source for the current call stack frame. Locating source for f:\dd\vb\runtime\msvalib\helpers\Operators.vb." I have searched my hard drive for the Operators.vb file, but cannot find it anywhere. (I do not have an F drive, and never did.)

I have Visual Studio 2015 Community on my laptop and the debugger seems to step over that same line without throwing an exception. So I compared the two debug exception settings and set them the same, but this did not fix the problem on my desktop version. I also did a search on my laptop to see if I could find the Operators.vb file and copy it to my desktop PC, but I did not find the Operators.vb file on my laptop either.

I have Cleared and then Rebuilt my application, but this also did not fix the problem. I even deleted and then re-installed Visual Studio 2015 Community, and that also did not fix the situation.  I have searched the internet for solutions, but there was no help there either. The topics that seemed to be right on topic had no solution, just the question.

This is frustrating because it seems like it should be a simple fix, a debug setting, or something similar, but I can't figure it out. Any help will be greatly appreciated.
Operators-vb-Not-Found.pdf
0
Comment
Question by:Bob Valentine
  • 3
4 Comments
 
LVL 5

Expert Comment

by:TechieMD
ID: 41777233
Go to Tools->Options->Debugging->General and then click the Step Over Properties And Operators (Managed Only) checkbox.
0
 

Author Comment

by:Bob Valentine
ID: 41777319
TechieMD, thanks for your help. However, when I looked at the Step Over Properties And Operators (Managed Only) exception setting, the checkbox was already checked. So unfortunately for me, this does not fix the problem I am having with the debugger in Visual Studio 2015 Community.

Any other suggestions for help in fixing the debugger so that it will be able to find the Operators.vb file? BTW, the debugger also asks for ProgramData.vb when it encounters other lines of code. What is going on? I can't be the only person who has ever encountered this problem, or can I?
0
 

Accepted Solution

by:
Bob Valentine earned 0 total points
ID: 41777626
I finally figured out the root of the problem. The problem was created after I transferred my VB.Net project file from one PC to a second PC. The problem was contained in the .suo file. I learned that this file contains option settings for a specific user on a specific PC.

So I deleted the .suo file and opened my project in Visual Studio 2015 Community and now I was able to press the F11 key to step into my code line by line without throwing a debug exception that looks for the Operators.vb file and others. I also went to Tools>Options>Debugging>General and checked the Enable Just My Code checkbox so that the debugger is only debugging my code.

So all is good. I hope this will help others who might transfer their project (including the .suo file ) to another developer's PC and then have the same problem that I did with the debugger.
0
 

Author Closing Comment

by:Bob Valentine
ID: 41783537
My solution solved the debugging issue that I was having after transferring my project files to a second computer.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now