Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Very Slow Startup Time

Very Slow Startup Time

Scheduled Pinned Locked Moved C#
csharpvisual-studiodesignxmlquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goodpilot
    wrote on last edited by
    #1

    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

    L S 2 Replies Last reply
    0
    • G goodpilot

      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

      L Offline
      L Offline
      Looney Tunezez
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • G goodpilot

        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

        S Offline
        S Offline
        Steve Maier
        wrote on last edited by
        #3

        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

        G 1 Reply Last reply
        0
        • S Steve Maier

          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

          G Offline
          G Offline
          goodpilot
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups