Hello everyone,
I am using VS 2010 with VB.net, .NET Framework is 3.5, to build an Add-IN.
When I try to debug the Add-In, breakpoints are ignored, and it displays the following error message:
"The source file is different from when the module was built. Would you like the debugger to use it anyway?"
I only have tone project and one source file, so I do not know where the module is located.
Yesterday the whole application worked fine, I was able to debug it.
Any idea on what is causing this problem?
Thanks
Hello everyone,
for this problem I recommend to read this post it helped me a lot understanding the issue:
These are the steps I applied to solve this issue:
- Remove bin folder from the VS 2010 Add-In
- Remove all folders from C:\Users\User\AppData\Local\ESRI\Desktop10.2\AssemblyCache
- Rebuild the Add-In in VS 2010 in debug mode. Close VS 2010
- Open ArcMap go to add-In Manager and remove any existing reference to the Add-In.Close ArcMap
- Go to Add-In folder ..\bin\Debug and run the .esriAddIn to install the Add-In in ArcMap
- Reopen VS 2010, rebuild and run
What version of ArcMap are you debugging against? It sounds as if your project isn't building a new copy of the addin. I'm guessing that you're probably building your addin against 10.1 and the addin was originally built in 10.0.