Its the ArcMap application config file\ArcGIS\Desktop10.0\bin\arcmap.exe.configIts an xml file so modify it with notepad. This isn't an official solution by the way....
This worked for me, thank you! I uncommented the v4.0 and commented the v2.0
Before:
<startup>
<!-- <supportedRuntime version="v4.0.30319"/> -->
<supportedRuntime version="v2.0.50727"/>
</startup>
After:
<supportedRuntime version="v4.0.30319"/>
<!-- <supportedRuntime version="v2.0.50727"/> -->
It worked for me. This was the change, I commented V2 and uncommented V4
I ran into the same problem, and none of the solutions worked for me, at least not on their own. I found one more thing that may have been crucial:
After configuring the project to build on the 3.5 framework, I noticed a build warning in Visual Studios output window: warning : The 'language' attribute in the AddIn element is invalid - The value 'CLR4.5' is invalid according to the project's target framework version - The value should be 'CLR'.
After changing the language attribute in Config.esriaddinx file to CLR, things worked again.
Oh, and one more thing: Initially the breakpoint looks invalid (the breakpoint will not currently be hit). Don't let that fool you, because as soon as the addin is loaded, e.g. by clicking on a button, the breakpoint will be valid.
My other configuration:
I believe, like you said, the solutions work together. I remember changing the version from V2 to V4 worked, but I also had to ensure the CLR value was the correct one (in my case <AddIn language="CLR4.5" ...) and target CPU x86
None of these solutions worked for me this time, although at various times in the past one or the other of these techniques did work. There seem to be about a 100 ways that this thing can get off the track and it seems to do that spontaneously, at any time (but especially when there is a deadline looming) and I have wasted literally DAYS messing with these and other solutions trying to fix this. This sucks!
Berend Veldkamp wrote:...Oh, and one more thing: Initially the breakpoint looks invalid (the breakpoint will not currently be hit). Don't let that fool you, because as soon as the addin is loaded, e.g. by clicking on a button, the breakpoint will be valid....
Berend Veldkamp wrote:
This is the clincher for me. I changed the runtime version in arcmap.exe.config as per the "unofficial" solution, and I was still getting the invalid breakpoint message. But just as Berend said, as soon as you start your addin, the breakpoint functions as intended. Thank you for saving me pointless additional troubleshooting!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.