.net - Asp.net MVC3 web application server response time issue -
my site taking on 5 seconds load, other sites hosted on same server working fine , opening fast. pointed same dns.
i using same connection helper class open connection ms sql express 2008 express r2 (sp1) sites:
public class connectionhelper : iconnectionhelper { public objectcontext connection { { 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 { { return configurationmanager.connectionstrings["cpusortentities"].tostring(); } } }
i have tried in iis 7.5, increased worker processes 2 make web garden no luck.
any should do? please me out, thanks
Comments
Post a Comment