Red Gate forums :: View topic - Error in HeaderControl ctor
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Error in HeaderControl ctor

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
garethhayter



Joined: 20 Apr 2010
Posts: 32

PostPosted: Thu Dec 22, 2011 10:17 pm    Post subject: Error in HeaderControl ctor Reply with quote

I'm using version 6.5 with a custom UI. When an unhandled exception occurs, the exception reporting form no longer displays due to an internal exception in the SmartAssembly code:

NullReferenceException in SmartAssembly.SmartExceptionsCore.UI.HeaderControl.ctor()

Any ideas about how to fix this? I've recompiled the custom UI with the 6.5 assemblies.

Thanks,
Gareth.
_________________
Gareth Hayter
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6589

PostPosted: Tue Dec 27, 2011 3:51 pm    Post subject: Reply with quote

Hi Gareth,

That is not a lot of information to go on. Did you try rebuilding with diagnostic information and see if you can get an error report from the assembly when it fails?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6589

PostPosted: Wed Jan 04, 2012 2:17 pm    Post subject: Reply with quote

Sorry, but I can't see anything in the constructor that would cause a null-reference, except possibly something odd to do with fonts or system colors.

Can you get the complete stack trace from this application?

If you're not having any luck with the self-diagnostic, you can try attaching the Red Gate debugger to the protected version of the assembly.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6589

PostPosted: Tue Jan 10, 2012 3:15 pm    Post subject: Reply with quote

Do you still have this problem if you run the program as administrator? I think it may be trying to get the application icon out of a different assembly.
Back to top
View user's profile Send private message
garethhayter



Joined: 20 Apr 2010
Posts: 32

PostPosted: Wed Jan 18, 2012 11:43 pm    Post subject: Reply with quote

Hi Brian. Sorry about the delay in my reply. I realised that I had the .Net 4.5 preview installed on my machine as well, which is supposed to install side-by-side with 4.0. When I uninstalled 4.5 and repaired 4.0 then this error went away, although I now have another error which I'll report separately.

Thanks for your help with this.

By the way, your Red Gate Debugger is a fantastic tool.

Kind regards,
Gareth.
_________________
Gareth Hayter
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6589

PostPosted: Thu Jan 19, 2012 10:18 am    Post subject: Reply with quote

Hi Gareth,

Thanks for the complement - Red Gate are looking into doing some new and exciting stuff with the MS Debugger Engine, which will hopefully benefit a lot of people.

Sounds to me like you had a problem with incompatible resources, in the end.
Back to top
View user's profile Send private message
claus.net



Joined: 26 May 2011
Posts: 2

PostPosted: Wed Nov 14, 2012 9:57 am    Post subject: Reply with quote

Brian, could you please be more specific what you mean by "incompatible resources"? I have the problem as well and I really don't want to uninstall .NET Framework 4.5, nor should I have to imo.

I'm targeting .NET 4.0.
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