473,387 Members | 1,573 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,387 software developers and data experts.

.NET Load time after OS reboot?

I have created a distributed app, with a Windows Forms Client and a Business
Web Service.

The Smart Client is partly a href/exe (The exe is loaded as a href/exe, the
exe contains a Smart Assembly block that loads the rest of the app).

If I place a MessageBox as the first thing in my exe, it takes up to a
minute to get to that point (first thing in my .NET code). If the computer
has just booted. Does the .NET framework need to load the first time the OS
uses a .NET application? If so - is there anyway to force a preload at
bootup????
The OS is Windows 2000, im trying to get the customer to test my app on a XP
client.
Nov 22 '05 #1
2 1508
> If I place a MessageBox as the first thing in my exe, it takes up to a
minute to get to that point (first thing in my .NET code). If the computer
has just booted. Does the .NET framework need to load the first time the OS uses a .NET application? If so - is there anyway to force a preload at
bootup????

A minute is somehow long, but as far as I know the .NET is not preloaded
when the OS starts.
It loads the very first time a .NET program is executed.

One probal solution I can think of is to load a small .NET program in the
startup folder that loads the .NET framework.
Nov 22 '05 #2
Thanks for Olaf's quick response!

Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you place a MessageBox as the
first thing in your exe, the app starts up very slowly. If there is any
misunderstanding, please feel free to let me know.

I think what you suppose is correct that .NET assembly loads the first time
a .NET program is executed. Do you mean that if you don't put the
MessageBox at startup, everything works fine? If so, could you post some of
your startup code here, and explain how the app starts more detail?

I suppose that you app is hosted in IE and starts up when a link is clicked
from a web page. If so, this might be true, because the .NET CLR requires
to check smart client for security issues. It might takes a lot of time.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #3

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

Similar topics

2
by: ElbekVejrup | last post by:
I have created a distributed app, with a Windows Forms Client and a Business Web Service. The Smart Client is partly a href/exe (The exe is loaded as a href/exe, the exe contains a Smart...
1
by: ritchie | last post by:
I have a fairly complex asp.net page containing a number of usercontrols. It takes 6-8 seconds to load first time up with data. Subsequent loads of another record in the page only takes 1-2...
5
by: Ken Barrett | last post by:
I apologize in advance for cross-posting, but I have noted that others have experienced similar issues and was hoping that someone could help. Briefly, I am working on an ASP.NET content...
2
by: Daniel Bass | last post by:
Scenario (Hardware) ---------------------- I've got an engineering source server with Win 2k on it. We use it for all the source files for our projects etc... Let's call it "Engineering" for...
1
by: pbj | last post by:
sometime last night, with my website project saved, but still open, my computer chose to reboot itself. this morning, after a short burst of creative vocabulary, i logged back in and restarted...
19
by: Alex Madon | last post by:
Hello, I am testing a web application (using the DBX PHP function to call a Postgresql backend). I have 375Mb RAM on my test home box. I ran ab (apache benchmark) to test the behaviour of the...
0
by: lissbpp | last post by:
Hello, Working in .Net 2.0 using NGen to speed up both my warm and cold startup load times. NGen works beautifully for my application; however, it seams that the native image cache is not...
2
by: semedao | last post by:
Hi All, I developed Outlook add-in with VS 2005 , everything work fine , until the machine reboot unnormally , when I opened the solution again many projects was not there ! (I have more then...
5
by: Just D. | last post by:
All! Does anybody know how to fix the issue? Machine was working perfectly with WinXPPro and IE6 and all latest service packs, maybe just excluding WinWord from the Enterprise Office 2003, the...
3
by: cj | last post by:
My program shuts itself down and reboots the pc it's running on at 2:00am twice a week and has been doing so without fail for over a year. But twice in the past month it's been found running in the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.