Profiler add a second mscorlib assembly

Code profiling for .NET developers.

Moderator: dom.smith

Profiler add a second mscorlib assembly

Postby philippe.martens » Fri Oct 18, 2013 9:15 am

When recording performance for a program using Linq for NHibernate, the program crashed with a Type initilization error exception (but works normally outside of performance profiler).

After some investigation, it boils down to Remotion Linq executing
var mscorlibReference = Assembly.GetExecutingAssembly().GetReferencedAssemblies().Single (name => name.Name == "mscorlib")

which is quite reasonable.

But running with performance profiler version 8.0, every assembly gets one supplementary referenced assembly, namely mscorlib version 1.0.3300.0, and thus seems to reference 2 mscorlib assemblies.
philippe.martens
 
Posts: 7
Joined: Fri Oct 18, 2013 8:22 am

Postby philippe.martens » Fri Oct 18, 2013 9:34 am

The problem is still present with version 8.3
philippe.martens
 
Posts: 7
Joined: Fri Oct 18, 2013 8:22 am

Postby dom.smith » Tue Oct 22, 2013 5:07 pm

Hi Philippe,

Thanks for letting us know. I've added this to our bug tracking system (reference: PP-3428) for investigation.

Dom.
Dominic Smith,
Project Manager,
Red Gate Software.
dom.smith
 
Posts: 95
Joined: Thu Jun 03, 2010 5:54 pm
Location: Cambridge, UK

Postby dom.smith » Wed Oct 23, 2013 4:01 pm

Hi again Philippe,

The developers have looked at this, and we have confirmed this issue.

However, it looks like Re-motion have fixed the bug at their end (https://www.re-motion.org/jira/browse/RM-3832), so upgrading re-linq may help you.

Dom.
Dominic Smith,
Project Manager,
Red Gate Software.
dom.smith
 
Posts: 95
Joined: Thu Jun 03, 2010 5:54 pm
Location: Cambridge, UK

Upgrading relinq would take me too far

Postby philippe.martens » Thu Oct 24, 2013 6:53 am

Unfortunately, I don't use Re-Linq directly, I use it from NHibernate (and it is merged in NHibernate assembly).

Upgrading Re-Linq would then require upgrading NHibernate, and the latest versions come with an embedded proxy generator which doesn't support generic methods in generic classes (which I use in my infrastructure classes).

I would then need to endorse support for the Castle based ProxyGenerator from the version I'm currently using...

For now, I've just patched Re-Linq and rebuild it and NHibernate, but only for dev/test purposes.

So I'll wait for your correction of the problem.

Regards.
philippe.martens
 
Posts: 7
Joined: Fri Oct 18, 2013 8:22 am


Return to ANTS Performance Profiler 8

Who is online

Users browsing this forum: No registered users and 0 guests