Solved

Visual Studio 2010 ASP Design View Performance

Posted on 2010-09-02
8
463 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 96

Expert Comment

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

Author Comment

by:MDKIMZEY
ID: 33617457
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
ID: 33617600
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:MDKIMZEY
ID: 33617950
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
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 33618491
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
ID: 33618869
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
ID: 33691907
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
ID: 33692100
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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 keystrokes in Netbeans IDE 8.0 for Windows.

705 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