Solved

Visual Studio 2010 ASP Design View Performance

Posted on 2010-09-02
8
444 Views
Last Modified: 2012-05-10

I'm developing an ASP.Net website in Visual Studio 2010.  The design view is extremely sluggish.  Making minor adjustments to a page in the design view literally maxes CPU use for up to five minutes or longer.  

Are there any third party editors that offer a design view editor with better performance or are there any settings that can improve VS 2010 performance?
0
Comment
Question by:MDKIMZEY
  • 5
  • 3
8 Comments
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Is it only one web site?  How complex are your pages?  What kind of hardware are you working with?
0
 

Author Comment

by:MDKIMZEY
Comment Utility
I have found that this occurs on any page that uses a MasterPageFile.  
If I remove the the MasterPageFile attribute, the designer performance is orders of magnitude better.  The MasterPageFile is moderately complex.  When the MasterPageFile is included, anything done in Design view takes at least 5 minutes of hard disk churning activity before the next thing can be done.
Hardware:
Intel(R) Core(TM) 2CPU
6700 @ 2.66GHz
2.66 GHz, 2.00 GB of RAM
239 GB Hard Drive Capacity - 79 GB Free
All other applications perform fine.
Currently the best workarounds seem to be:
  1. Temporarily remove the MasterPageFile attribute from the Source before switching to the Design view.
  2. Only work in Source (Ignore Split and Design Views)
The next thing I will try is commenting out sections of the MasterPageFile to see if there are specific items that impede Designer performance.
 
 
 
 
 
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Can you give me some kind of idea what the master page looks like?  You haven't indicated anything yet that sets off any alarm bells, other than the 5 minutes thing.
0
 

Author Comment

by:MDKIMZEY
Comment Utility
The site master includes:

  • script src statements for jQuery dialog and calendar
  • Html.DevExpress().RenderStyleSheets(...) for Menu, NavBar, PageControl, Tab Control and GridView
  • Html.ActionLink for the main site pages.
I suspect that the Html.DevExpress().RenderStyleSheets(...) is the prime suspect.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
Comment Utility
It now appears that you are using the MVC pattern, and I guess at version 2.0.  The MVC pattern with the DevExpress tools is an unknown, so anything is possible.  What happens if you don't call the RenderStyleSheets?
0
 

Author Comment

by:MDKIMZEY
Comment Utility
Actually DevExpress has released a GridView and a few other controls for MVC.
I suspect the RenderStylesheets are the cause.  I will try this.
0
 

Author Comment

by:MDKIMZEY
Comment Utility
Thus far, it seems to happen when:

  • The page contains a MasterPageFile that contains items such as:
    • RenderStyleSheet

  • The page contains style sheet
I have found that if you need the designer, the best approach by far is:

  1. Comment out all references to MasterPageFiles and StyleSheets prior to opening the page in the VS 2010 Designer

  2. Or - always edit the page as source.  - All developers at my work place use source - precisely because the performance of the VS 2010 designer is so poor.
0
 

Author Closing Comment

by:MDKIMZEY
Comment Utility
Still something of an open issue with workarounds.

Thus far:
1. This issue is easy to reproduce - simply add a MasterPageFile with style sheets or RenderStyleSheets

2. Most web developers that I have talked to avoid the VS Designer precisely because the performance is so poor.

3.  I don't know of any third-party alternatives to the VS Designer
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now