Red Gate forums :: View topic - Trouble shooting reflector addin load failures
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.NET Reflector 7.0 Feedback
.NET Reflector 7.0 Feedback forum

Trouble shooting reflector addin load failures

Search in .NET Reflector 7.0 Feedback forum
Post new topic   Reply to topic
Jump to:  
Author Message
Notre



Joined: 18 Jun 2011
Posts: 3

PostPosted: Sat Jun 18, 2011 12:45 am    Post subject: Trouble shooting reflector addin load failures Reply with quote

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/SourceControl/list/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?
Back to top
View user's profile Send private message
Bart Read



Joined: 31 Mar 2005
Posts: 977

PostPosted: Mon Jun 27, 2011 2:13 pm    Post subject: Reply with quote

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
www.bartread.com/blog
=============================
Back to top
View user's profile Send private message
Notre



Joined: 18 Jun 2011
Posts: 3

PostPosted: Mon Jun 27, 2011 6:07 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Bart Read



Joined: 31 Mar 2005
Posts: 977

PostPosted: Fri Jul 01, 2011 8:52 pm    Post subject: Reply with quote

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
www.bartread.com/blog
=============================
Back to top
View user's profile Send private message
Notre



Joined: 18 Jun 2011
Posts: 3

PostPosted: Mon Jul 04, 2011 6:29 pm    Post subject: Reply with quote

Great tip on the addin loading troubleshooting. (Well hidden is an understatement Very Happy ). 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
Back to top
View user's profile Send private message
Bart Read



Joined: 31 Mar 2005
Posts: 977

PostPosted: Tue Jul 05, 2011 3:33 pm    Post subject: Reply with quote

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
www.bartread.com/blog
=============================
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group