Question

I have an ASP.NET MVC application, which seems to run OK on my machine, but not when it runs on the server. Does anyone have any tips on finding out where the performance bottleneck may by or any general tips? Would routing misconfiguration ever slow down an application?

I have added HttpContext.Current.Trace.Write statements throughout the code, but they don't show in the application trace log (/trace.axd)? How can you write to this? I want to be able to see what parts might be slow when the application is being used, without having to have page trace enabled. When page trace is enabled, it writes out information for every partial view that may be used.

A third party library (MvcSiteMap) I am using might be the issue, but can't really be sure since it is not too bad performance wise on my local PC and I can't debug the code directly on the server. The application doesn't hang, it just takes several minutes for the page to load.

Was it helpful?

Solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top