Red Gate forums :: View topic - Web dev. server crash
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 8
ANTS Performance Profiler 8 forum

Web dev. server crash

Search in ANTS Performance Profiler 8 forum
Post new topic   Reply to topic
Jump to:  
Author Message
EduardoFortes



Joined: 19 Aug 2013
Posts: 1

PostPosted: Mon Aug 19, 2013 6:16 pm    Post subject: Web dev. server crash Reply with quote

I installed the trial today, tried the demo Nerd Dinner and everything worked nice. Later I tried profiling my solution but my project keeps crashing after login, this does not happen in production nor debugging with VS2010.

I am using NHibernate to access the database and the application crash on the return line.

Code:
using (var _session = NHibernateHelper.OpenSession())
{
    return _session.Query<T>().ToList<T>();
}

Error message:
System.InvalidOperationException: Sequence contains more than one matching element

When i set the profiler, i select only one project, but this is a big solution with dozens of projects inside, this piece of code above is a repository project.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 585

PostPosted: Tue Aug 20, 2013 8:23 pm    Post subject: Reply with quote

Profiling can be a dramatic procedure- as far as your process is concerned- it can cause crashes, exacerbate race conditions, break security. You shouldn't be surprised to see some kind of failure mode turn up every now and again.

If you *really* want to know what happened here- we could always debug the entire process, analyse a full memory dump - with symbols- and take a wild stab but the quickest thing to get you *some* results is to bypass the problem.

Can you try again but this time using the sampling mode of profiling?

Here's some more info on this:

http://documentation.red-gate.com/display/APP8/Choosing+a+profiling+mode
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