I'm making this program for work in VB.NET but there's this one error that I can't figure out how to fix. It acts like any other exception but it says there is no source code available for that location . Also, I can't seem to narrow it down to what's causing the problem because it seems to happen at random. Sometimes I'll run the program and the error won't come up at all. When it does occur, it's not always at the same time/place within the program. Here are the actual error messages: I've tried looking for any problem areas but my code looks like it should work. Since there is "no source code for the current location" is this even a problem with my code, or a problem with VB itself? I'd post my work here but it's pretty long and I doubt anyone would want to look through all of it. I'm just wondering if anyone else has had this problem and how they went about finding what was causing the problem.