.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid
Post New Web Links

.NET 4.0 WPF x64 Slow Application Startup

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :WPF

Hello and thank you to everyone in advance that takes time to assist me.

I have been having some issues, although not serious or breaking they are rather annoying.  The issues have to do with a 64 bit .NET 4.0 WPF Windows application (even a simple one with one blank window) upon execution, it can be a cold or a warm start and it makes zero difference it starts up at a noticeably slower speed.  Here are my core system specs just as a reference:

CPU: Intel Core i7 x980 Extreme, GPU: Nvidia GTX 295, Memory: 12 GB OCZ Platinum, HDD: 300 GB Intel X25 SSD RAID 0

Windows 7 Ultimate x64

Stated are my new specs, my old computer had the exact same issues with similar specs, so I do not think it is hardware related (I hope).  The following are all the scenarios that I exhausted trying to figure out what is going wrong:

.NET 3.5:

All architectures and technologies worked as expected and executed very fast at startup.

.NET 4.0:

WinForms Any CPU, x86 and x64 all execute very fast at startup.

WPF x86 executes very fast at startup.

WPF Any CPU and x64 much much slower than the tests above, the application takes 5 seconds + to load.

All of the above tests were compiled with Visual Studio 2010 Ultimate.

I decided to copy this simple .NET 4.0 WPF x64 application to my la

View Complete Post

More Related Resource Links

Slow startup of NET application if the computer is connected to LAN


Before first statement of Main method is executed my application hangs for 30 sec. If i disconnect computer from local network, this delay goes away.

I tried to profile with TCP View: my application does not open any connection. During delay svchost opens UDP connections from various ports (each application's start ports are different) (Remote address = *, Remote port = *) 

framework 3.5 Windows XP


.NET 4 Web Application Startup Time

I was chatting with Jonathan Hawkins and some of the folks on the ASP.NET team about performance and Jonathan mentioned the startup time for large ASP.NET applications is improved on .NET 4. There are some improvements in the CLR and in ASP.NET itself that helped. If you have a giant app, you should do some tests.

CLR Inside Out: Improving Application Startup Performance


Application startup performance matters to users, and there's plenty you can do to improve it. Here's a look at where to begin.

Claudio Caldato

MSDN Magazine March 2008

CLR Inside Out: Improving Application Startup Time


Visual Studio is a wonderful development environment, whose IntelliSense®, integrated debugging, online help, and code snippets help boost your performance as a developer. But just because you're writing code fast doesn't mean you're writing fast code.

Claudio Caldato

MSDN Magazine February 2006

Slow startup of SSIS package if started using a SQL Server job

Hello all,   We have noticed in our environment slowness when starting SSIS packages from SQL Server jobs. I did a quite detailed study on when the slowness actually occurs and what are the consequences. Here are the results.   The SSIS package execution is slow if all the following is true: The package is started from a job. If started directly as a SSIS package, the execution is fast. The job is running on a 64 bit Windows Server (SQL Server 2005 SP2). The SSIS package and the job are either on the same server or on different servers (the second server is SQL Server 2005 SP1). If the job is run on a 32-bit workstation (Windows XP SP2) the execution is fast (the SSIS package still being on the server). The package contains tasks. §         If there are no tasks, just an empty sequence container, the execution is fast. §         If a package that has no tasks has logging into the database configured, the execution is fast. §         Slowness has been verified with A) a package having a single Execute SQL statement and B) a package having a Send Mail task. It doesn't seem to matter which user account is used on when running the job.   The slowness happens in several locations, e.g. (there are also others, at least the following have been verified) There is exactly 30 seconds lag between starting the job (as seen from job history) and when PreValidate (as seen in the sy

WCF (.Net framework 3.5) Call from Windows Application (.net framework 2.0) is too SLOW!!!

WCF (.Net framework 3.5) Call from Windows Application (.net framework 2.0) is too SLOW!!!

It gives more frustration when the new technology means the performance drawbacks. Do I've to dump .Net 3.5 ??????

We've a web service that is being called from the Windows Application and it is loading the initial screen after 30 seconds. The binding is done through coding:


ET2Service service = new ET2Service();
service.Url =

The Application is performaing very slow after upgrade to SQL Server 2008 x64


Hello All,

I am writing you all after I tried a lot of solutions to resolve my Issue, please find below my issue details..

Task: Upgrade from SQL Server 2000 Ent. Edition to SQL Server 2008 X64 for IA on windows server 2008 Clustered environment (Active\Active)

SQL Server 2008 Servers HW configuration:

  • 24 GB Of Ram
  • 2x Process or dual core
  • SAN storage
  • up to 1 Tera Storage

Slow startup. Waiting for MEX data for 40 seconds.


Hi all,

I'm tearing my hear out, and I don't have that much hair left to start with.  I have a WCF program that takes 41 seconds to start. For 40 of those seconds it's sitting waiting for the MEX data.  It runs fine after that.  Here are the details:

  • Running on Windows 7, and I can't try it on another machine.  This is the machine it has to work on.
  • Compiled with Visual Studio 2010 with .NET 4.0 as the target
  • I'm not running in Administrator mode, and it doesn't help anyway, when I tried it. (And I can't imagine why anyone would do that, but that's another story!)
  • The endpoint is using the named pipes protocol, so I can't set "UseDefaultWebProxy = false".
  • I tried other protocols including the HTTP protocols and TCP.  It doesn't change anything.
  • I have no security set at all.
  • I added the <generatePublisherEvidence enabled="false" /> because I understand that can help if the lookup is searching for expired certificates.
  • I tried it with one base address -- for the named pipe; and with the current two base addresses.
  • While it's sitting there for 40 seconds waiting for the MEX data, my internet browser hangs.
  • Also, when looking at the trace I notice that before listening for MEX, it constructs a ServiceHost and the

Startup Delay for windows application



I have a windows application that I set its build options to optimize code in visual studio before creating a setup project for it. After installing it on my laptop, I noticed that it is taking some time to start (like a couple of seconds) when I double click on the desktop shorcut. Once it starts, it runs fast with no problems.

I do not have any kind of processing taking place on startup, so I wonder is that a normal behavior for a windows application? Is there anything I should do for it, because the client is complaining about this? I am using .net 4.0 and visual studio 2010.

Please advise...   Many thanks in advance.

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

Integrating a Legacy Web Application in SharePoint

This month we will continue with the theme of deploying Microsoft's SharePoint as a company intranet by describing a method for integrating a legacy Web application inside a SharePoint site.

In many companies the intranet site is not just a home page with announcements. It houses Web applications used by many different departments. In last month's article, I built a page to search the employee table in Northwind (the sample database included in Microsoft's SQL Server). This month, I will move the Web pages used to add/remove records from the table into the SharePoint intranet.

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

High-Performance .NET Application Development & Architecture

It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.

Application architecture in asp .net

Application Architecture is the most important process of developing a good application. Some people tends to jump into coding without any architecture laid. Later we see those people changing the architecture and finally the application had to be developed from the scratch with the correct architecture.

In this article I will describe some details about how you can improve the architecture of you application. This article is targeted to the beginner's audience.

Improving Application Performance in .Net

Application performance has always been a concern for Web Application developers. This article contains guidelines and tips for maximizing application performance in ASP.NET.

Logic behind N -Tier Application Development

In the arena of application development, developers all over the world use various programming languages, technical processes, and technical tools. While using number of technical & non technical elements the processes or methods become complex, for simplification of the application development process, developers use various techniques such as dividing the application architecture into layers or parts. In the professional & technical language this separation or division process is called N-Tier Application Development process, where "N" stands for number and "tire" stands for layers or parts.

How to create 3 tier application using LINQ

As you know that in 3 tier architecture there are three layers

User interface layer. (Is our Form in Windows application and .aspx page in Web application)
Data Access layer. (Which provides interface between Business logic layer and Database)
Business Logic layer.(Which stores your application logic)
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend