Solved

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

Posted on 2016-08-30
4
47 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is an explanation of a simple data model to help parse a JSON feed
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

810 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