Trouble shooting reflector addin load failures

Moderators: Luke Jefferson, Greg.Tillman, Clive Tong

Trouble shooting reflector addin load failures

Postby Notre » Sat Jun 18, 2011 12:45 am

I'm trying to get an addin working with Reflector 7.1.0.143. I tried other pre-existing addins, and none of them worked until I discovered this post:

http://forums.reflector.net/questions/217/baml-add-in

where it talks about targetting .NET 3.5 and 'Any CPU'. I did this for other addins (e.g. BamlViewer) and I'm now able to use it with this latest version of Reflector. I tried the same thing with Deblector (which I got from http://deblector.codeplex.com/SourceCon ... changesets) but I get the generic addin failed to load message.

I attached to the Reflector.exe process and set breakpoints in the 'EntryPoint' class' constructor and the IPackage.Load() method, but neither breakpoints are hit (although debug symbols are successfully loaded and breakpoints appear active).

Any debugging/diagnostic tips for analyzing Reflector add in load failures?
Notre
 
Posts: 3
Joined: Sat Jun 18, 2011 12:39 am

Postby Bart Read » Mon Jun 27, 2011 2:13 pm

Hi there,


We're planning to get an add-ins page up on www.reflector.net, and to upload v7 compatible add-ins to the CodePlex site within the next 2-3 weeks. We'll keep you posted.

Regarding Deblector, my understanding was that it's "dead", in the sense that nobody's actively working on it, and has been so for maybe a couple of years or so, so I'm not entirely surprised you're having trouble getting it working. You may well need to tweak the code to make it run again, rather than just get away with a rebuild.

Hope that helps,


Thanks,


Bart
Bart Read
Principal Consultant
bartread.com Ltd
Bart Read
 
Posts: 977
Joined: Thu Mar 31, 2005 11:17 am
Location: Cambridge, UK

Postby Notre » Mon Jun 27, 2011 6:07 pm

Hi Bart,

Thank you very much your reply. That's good to know about the v7 compatible addins, when a dedicated page becomes available.

I suspect your are right re: Deblector, that it is "dead". My question is how do I go about troubleshooting an addin, in general (not just Deblector), that fails to load?

As noted earlier, I attached to the Reflector.exe process and set breakpoints in the 'EntryPoint' class' constructor and the IPackage.Load() method, but neither breakpoints are hit (although debug symbols are successfully loaded and breakpoints appear active). I also looked to find any extended logging for Reflector, but I didn't find anything written to a log - is there a way to write extended error information? Any other debugging tips?

Thanks,
Notre
Notre
 
Posts: 3
Joined: Sat Jun 18, 2011 12:39 am

Postby Bart Read » Fri Jul 01, 2011 8:52 pm

OK, a couple of updates. Regarding troubleshooting, if the add-in fails to load you can double-click on it in the message box that comes up and it will show you some more detailed error information - I didn't realise this myself at the time because it's quite well hidden.

Also, I've just fixed the problem of v5/6 add-ins not working with v7 once and for all this afternoon. I'm planning to put out a build and a proper announcement on Monday but, as Visual Studio does from 2005 onwards, we can now support add-ins targeting both Reflector 6.8 and 7.x without having to muck around with config files, separate builds, or any other nonsense like that.


Thanks,


Bart
Bart Read
Principal Consultant
bartread.com Ltd
Bart Read
 
Posts: 977
Joined: Thu Mar 31, 2005 11:17 am
Location: Cambridge, UK

Postby Notre » Mon Jul 04, 2011 6:29 pm

Great tip on the addin loading troubleshooting. (Well hidden is an understatement :D ). Now I can see extended error information which will be invaluable to figuring out how to get the addin working.

That's also really good news about Reflector soon being able to load v5/v6 addins. I'm sure many Reflector users, myself included, will be happy about that. I look forward to the new Reflector build, when it is available.

Cheers,
Notre
Notre
 
Posts: 3
Joined: Sat Jun 18, 2011 12:39 am

Postby Bart Read » Tue Jul 05, 2011 3:33 pm

Sweet.

I've just put out a 7.2 EA with the 5.x/6.x add-in compatibility built in, which you can download from the bottom of the Reflector homepage at http://www.reflector.net/.


Thanks,


Bart
Bart Read
Principal Consultant
bartread.com Ltd
Bart Read
 
Posts: 977
Joined: Thu Mar 31, 2005 11:17 am
Location: Cambridge, UK


Return to .NET Reflector 7.0 Feedback

Who is online

Users browsing this forum: No registered users and 0 guests