Monday, 12 August 2013

Asp.net MVC3 web application server response time issue

Asp.net MVC3 web application server response time issue

my site (cpusort.com) is taking almost over 5 seconds to load, but all
other sites hosted on the same server are working fine and opening fast.
I am using the same connection helper class to open the connection to the
MS Sql express 2008 express R2 (SP1)
public class ConnectionHelper : IConnectionHelper
{
public ObjectContext Connection
{
get
{
if (_connection == null &&
HttpContext.Current.Items["DbActiveContext"] != null)
{
_connection =
(cpusortEntities)HttpContext.Current.Items["DbActiveContext"];
}
else
{
_connection = new cpusortEntities(ConnectionString);
//HttpContext.Current.Items.Add("DbActiveContext",
_connection);
HttpContext.Current.Items["DbActiveContext"] = _connection;
}
return _connection;
}
}
private ObjectContext _connection;
public string ConnectionString
{
get
{
return
ConfigurationManager.ConnectionStrings["cpusortEntities"].ToString();
}
}
}
I have tried almost everything in IIS 7.5, increased worker processes to 2
to make it a web garden but no luck.
Any help what you I do? Please help me out

No comments:

Post a Comment