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. WCF and WF
  4. Problem with Web Server Performance

Problem with Web Server Performance

Scheduled Pinned Locked Moved WCF and WF
helpquestioncsharpcomsysadmin
3 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.
  • U Offline
    U Offline
    User 2970611
    wrote on last edited by
    #1

    Hi I have a Active X Control that calls a C# Com Server, which itself makes Web Service calls. The code itself is fine and data comes back without error. However, when the browser is opened for the first time as a new session and the user navigates to the page where the Active X is the performance is shockingly slow. Running in debug mode, the opening of the Active X is quick but when it reaches the code to call the COM Server and then executes this line of code it takes 23 seconds for the data to come back. This problem only every happens when opening a new browser window/session. If you use the same window and call the Active X again, then the code only takes a few seconds. So, my question is whether there is any way of instantiating the objects needed for web service calls right at the point when the page is first loaded where the Active X is found rather than instantiating when the call is made via the Active X? Is this possible? Or is there another way of speeding things up?

    D J 2 Replies Last reply
    0
    • U User 2970611

      Hi I have a Active X Control that calls a C# Com Server, which itself makes Web Service calls. The code itself is fine and data comes back without error. However, when the browser is opened for the first time as a new session and the user navigates to the page where the Active X is the performance is shockingly slow. Running in debug mode, the opening of the Active X is quick but when it reaches the code to call the COM Server and then executes this line of code it takes 23 seconds for the data to come back. This problem only every happens when opening a new browser window/session. If you use the same window and call the Active X again, then the code only takes a few seconds. So, my question is whether there is any way of instantiating the objects needed for web service calls right at the point when the page is first loaded where the Active X is found rather than instantiating when the call is made via the Active X? Is this possible? Or is there another way of speeding things up?

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      I am not sure if WCF is the right place for this question. I guess Web Development forum would suite better.

      "The worst code you'll come across is code you wrote last year.", wizardzz[^]

      1 Reply Last reply
      0
      • U User 2970611

        Hi I have a Active X Control that calls a C# Com Server, which itself makes Web Service calls. The code itself is fine and data comes back without error. However, when the browser is opened for the first time as a new session and the user navigates to the page where the Active X is the performance is shockingly slow. Running in debug mode, the opening of the Active X is quick but when it reaches the code to call the COM Server and then executes this line of code it takes 23 seconds for the data to come back. This problem only every happens when opening a new browser window/session. If you use the same window and call the Active X again, then the code only takes a few seconds. So, my question is whether there is any way of instantiating the objects needed for web service calls right at the point when the page is first loaded where the Active X is found rather than instantiating when the call is made via the Active X? Is this possible? Or is there another way of speeding things up?

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        Seems like it would be easy enough to extract the calling code itself and then actually time it or even profile it.

        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