Very Slow Startup Time
-
When I run my C# application on the same machine on which Visual Studio is installed it starts up very very quickly. However, when I start it on a machine that does not have Visual Studio installed it takes what seems like minutes before the UI appears. The app is using an XML file for reading in it's parameters and that file is loaded in the Form_Load event. Is it the XML file that is causing the slow startup on machines that do not have Visual Studio? What can I do to make it start just as quickly as it does on my dev box. Robert
-
When I run my C# application on the same machine on which Visual Studio is installed it starts up very very quickly. However, when I start it on a machine that does not have Visual Studio installed it takes what seems like minutes before the UI appears. The app is using an XML file for reading in it's parameters and that file is loaded in the Form_Load event. Is it the XML file that is causing the slow startup on machines that do not have Visual Studio? What can I do to make it start just as quickly as it does on my dev box. Robert
Does this happen everytime you try to run the app from the non VS.Net machine or just when you deploy a new .exe? by the new .exe i mean new version. Cheers! Looney Tunezez "If you build it.... .....BUGS will come!" -JB
Application.Run(new Form1(this.Dispose())); <--WHAT :wtf::confused::eek:
"Stability. What an interesting concept" - Chris Maunder -
When I run my C# application on the same machine on which Visual Studio is installed it starts up very very quickly. However, when I start it on a machine that does not have Visual Studio installed it takes what seems like minutes before the UI appears. The app is using an XML file for reading in it's parameters and that file is loaded in the Form_Load event. Is it the XML file that is causing the slow startup on machines that do not have Visual Studio? What can I do to make it start just as quickly as it does on my dev box. Robert
Does the app run faster the second time you load it up? try to have another small C# program running to make sure that the .NET framework is loaded and then see if your programmer is faster. It could be the loading of the framework that is taking some additonal time. It should not be on the level of minutes, but you can run this test to make sure its not the .NET framework loading. Steve Maier, MCSD MCAD
-
Does the app run faster the second time you load it up? try to have another small C# program running to make sure that the .NET framework is loaded and then see if your programmer is faster. It could be the loading of the framework that is taking some additonal time. It should not be on the level of minutes, but you can run this test to make sure its not the .NET framework loading. Steve Maier, MCSD MCAD
It happens every time I load the application. I have 4 different apps that I load on that machine and they all take a very long time to load compared to my development box. The server is a 2.4 GHz dual xeon processor machine running Windows Server 2003, which comes with .NET preinstalled. My dev box is a 2.4 GHz single processor laptop. I thought perhaps it was because I did not change tempuri.org in the XML file that the app has to load, because the server does not have access to the internet. However, if I delete the tempuri.ord entry I the app still loads slow. Robert