This was an old error which I was receiving when building an application. At that time, I had not started this blog and therefore I don’t have any screenshot of the error. But I had posted this error on forums to get help from others. Here is more detail about the error and solution which worked for me.
I was getting this error in Visual Studio 2005 when starting the debugging (running) a project:
The breakpoint will not currently be hit. The source code is different from the original version.
Because of this error I wasn’t able to edit the source code while the application was running in debugging mode.
I tried almost everything suggested at :
I also looked and tried other threads on the above site and other forums, but at last solved it myself.
I had Windows 7 64-bit with Visual Studio 2005, and I had used Crystal Reports in the project. The error could be occuring because of leaving the “Target CPU” option to its default: “Any CPU”.
- I set the Target CPU type from “Any CPU” to “x86″.
- Then I removed the files in debug folder and then also removed the solution’s .SUO file.
I changed the target CPU type from “Any CPU” to “x86″ because the CLR automatically runs the application in the Windows OS’ environment (if OS is 32-bit, the app is also run in 32-bit environment and if the OS is 64-bit the app is run in 64-bit environment) but the Crystal Reports’ version was only to run on 32-bit environment and therefore the error “The breakpoint will not currently be hit. The source code is different from the original version.” is shown if breakpoint is specified in code and Crystal Reports is used in project.
I removed the files in debug folder and the solution’s .SUO file because it could have become corrupted due to misconfiguration.