473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Variable delay starting a .dot application using a thin client

Hi,

We've got a small .net application launcher which is run each time a user
connects to our terminal services server instead of the standard shell. We
found that it takes a variable amount of time of this application to start.
Sometimes it's more or less instant, other times it can be over 15 seconds.

My initial thought was that the .Net Framework may not have been loaded, but
we have a another .Net application running on the server continuously.

Does anyone have any suggestions about reducing this variability?

Many thanks,

Jason

--
Informatics Manager, Critical Care
Central Manchester Healthcare Trust
May 4 '06 #1
7 1313
Hello,

When the application is starting, is there any code to be run? for example,
in the a form_load method to connect to a database? The dely may occur when
these code are executing.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 5 '06 #2
Hi Luke,

The initial applet is based on the updater application block, and simply
starts another vb.net application in the most current directory, which is
determined from an XML key in the applet's .config file. There is no user
interface to this applet.

The second applet reads some settings from an ini file to launch MS Access
XP pointing to the appropriate database file. Again, there is no user
interface.

The delay appears to occur before the server starts loading MSAccess, and I
suspect it is around loading components of the .net framework. Any
suggestions would be greatly appriciated!

Jason

--
Informatics Manager, Critical Care
Central Manchester Healthcare Trust
"Luke Zhang [MSFT]" wrote:
Hello,

When the application is starting, is there any code to be run? for example,
in the a form_load method to connect to a database? The dely may occur when
these code are executing.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 5 '06 #3
As I know, the updater application block will first connect to the
deployment server (actually an IIS Server) to check if there is a new
version avaible. Is it possible that the delay occur when connecting to
this IIS server? For example, the IIS server is down? Normally, loading
..NET component won't take a long time.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 8 '06 #4
Hi Luke,

That won't be it. In this case, the applet simply starts the applet as
defined in the .config file. The communication with with IIS and subsequent
downloading is handled by a separately running service. That said,
considering it is only starting an applet, it's importing a lot of libraries,
some of which must be redundant:-

Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Configuration
Imports System.Data
Imports System.Diagnostics
Imports System.Globalization
Imports System.Xml
Imports System.Reflection
Imports System.IO
Imports System.Threading
Imports System.Windows.Forms

It attempts to see if another copy is running. I imagine stripping this down
to one or two lines of code without concurrency checking and the libraries
should speed things up, but it still doesn't explain the variation in load
times.

Regards,

Jason

--
Informatics Manager, Critical Care
Central Manchester Healthcare Trust
"Luke Zhang [MSFT]" wrote:
As I know, the updater application block will first connect to the
deployment server (actually an IIS Server) to check if there is a new
version avaible. Is it possible that the delay occur when connecting to
this IIS server? For example, the IIS server is down? Normally, loading
.NET component won't take a long time.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 8 '06 #5
Hello,

All of below are libraries in .NET framework, I haven't heard that they
will cause a delay when they are loading:

Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Configuration
Imports System.Data
Imports System.Diagnostics
Imports System.Globalization
Imports System.Xml
Imports System.Reflection
Imports System.IO
Imports System.Threading
Imports System.Windows.Forms

Id you have VS.NET insatlled on the same server? Maybe you can execute the
project in VS.NET and check line by line to see what code cause the delay.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 10 '06 #6
Hi Luke,

The delay never really showed in VS.Net, and I'm rather loathe to install VS
on the server. I'll try dumping some of the libraries - maybe that will go
some way to reducing it.

Thanks,

Jason
--
Informatics Manager, Critical Care
Central Manchester Healthcare Trust
"Luke Zhang [MSFT]" wrote:
Hello,

All of below are libraries in .NET framework, I haven't heard that they
will cause a delay when they are loading:

Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Configuration
Imports System.Data
Imports System.Diagnostics
Imports System.Globalization
Imports System.Xml
Imports System.Reflection
Imports System.IO
Imports System.Threading
Imports System.Windows.Forms

Id you have VS.NET insatlled on the same server? Maybe you can execute the
project in VS.NET and check line by line to see what code cause the delay.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 10 '06 #7
Another way is to add some debug code in your application, for example, add
some code to record time in a Text file so that we can know the exact time
each module execute.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 10 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Glen | last post by:
As I understand it, when the first page of an application is accessed, all ASPX/ASCX/etc. files in the same folder are compiled using the JIT compiler. Is there a way to turn this feature off? ...
4
by: tsui | last post by:
Dear all Someone say that past is Client/Server application, and now is distributed application, but i don't understand these terms Is it Client/Server application is mean two tiers, and only one...
7
by: mfeingold | last post by:
I am working on a system, which among other things includes a server and a ..net control sitting in an html page and connected to the server. I ran into a couple of problems, you guys might have...
41
by: Miguel Dias Moura | last post by:
Hello, I am working on an ASP.NET / VB page and I created a variable "query": Sub Page_Load(sender As Object, e As System.EventArgs) Dim query as String = String.Empty ... query =...
10
by: Mark A. Sam | last post by:
Hello, I am using Visual Web Developer and decared a Public Variable in the Class section. I assigned a value in the load section, and on a button I set it up to increment, but it always...
2
by: WhatHappend | last post by:
I have converted a .Net 1.0 application to .Net 2.0 and the web service invocations have delay of around 10seconds on each intial access. After the first access subsequent access are fast (After a...
6
by: Simon Harvey | last post by:
Hi everyone, We have a need to make a Windows Forms (2.0) client application that will be installed on our clients site. The data that the application uses needs to be centrally available to a...
1
by: krishnakant Mane | last post by:
hello, I have read about zope and found it very good. but right now I am a bit confused about one project I have just procured. it is supposed to be a simple 3 tear application. the front end...
3
by: Sirix42 | last post by:
Hi there, when I use Firefox to run my application (this involves sending an IFRAME request to the servlet and handling the response), there is no delay in displaying the data after each response....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.