473,320 Members | 2,117 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,320 software developers and data experts.

PreCaching Dot Net Framework Load


Is there a way to preload the MS compondents of the Dot Net Framework V1.1
Before user login ?

We have a few programs that are created under VB Dot Net that run at user
login. On the older machines it takes quite a while for the Framework to
load (all code native Dot Net, no 3rd Party) with the rest of the system,
and makes it appear to hang.

Is there a service or a way of preloading the Framework to make it appear
faster ?

With Thanks

Jason
Jul 21 '05 #1
3 2162
Jason Garland (Secure Access Pty Ltd) wrote:
Is there a way to preload the MS compondents of the Dot Net Framework V1.1
Before user login ?

We have a few programs that are created under VB Dot Net that run at user
login. On the older machines it takes quite a while for the Framework to
load (all code native Dot Net, no 3rd Party) with the rest of the system,
and makes it appear to hang.

Is there a service or a way of preloading the Framework to make it appear
faster ?

With Thanks

Jason


Hi Jason -

Have a look at Ngen.exe (Native Image Generator). From MSDN:
The Native Image Generator creates a native image from a managed assembly
and installs it into the native image cache on the local computer. The
native image cache is a reserved area of the global assembly cache. Once you
create a native image for an assembly, the runtime automatically uses that
native image each time it runs the assembly. You do not have to perform any
additional procedures to cause the runtime to use a native image. Running
Ngen.exe on an assembly allows the assembly to load and execute faster,
because it restores code and data structures from the native image cache
rather than generating them dynamically.

More info here: http://tinyurl.com/2or38

--
chris
Jul 21 '05 #2
On Fri, 30 Jan 2004 08:30:01 -0500, chris <ne********@boxfrog.com> wrote:
Jason Garland (Secure Access Pty Ltd) wrote:

Hi Jason -

Have a look at Ngen.exe (Native Image Generator). From MSDN:
The Native Image Generator creates a native image from a managed
assembly and installs it into the native image cache on the local
computer. The native image cache is a reserved area of the global
assembly cache. Once you create a native image for an assembly, the
runtime automatically uses that native image each time it runs the
assembly. You do not have to perform any additional procedures to cause
the runtime to use a native image. Running Ngen.exe on an assembly
allows the assembly to load and execute faster, because it restores code
and data structures from the native image cache rather than generating
them dynamically.

More info here: http://tinyurl.com/2or38


In most cases, results of Ngen's work are unrunnable (critical error at
startup, etc.), I'm afraid you can only write your own preloader, but I
haven't seen anybody went so far.... :)
--
.... blood, sugar, sex, magic ...
CIA = Caught In Action programmer
Jul 21 '05 #3
Maniaque |CIA| <cape[a]fromru[dot]com> wrote in message news:<op**************@msnews.microsoft.com>...
On Fri, 30 Jan 2004 08:30:01 -0500, chris <ne********@boxfrog.com> wrote:
Jason Garland (Secure Access Pty Ltd) wrote:

Hi Jason -

Have a look at Ngen.exe (Native Image Generator). From MSDN:
The Native Image Generator creates a native image from a managed


In most cases, results of Ngen's work are unrunnable (critical error at
startup, etc.), I'm afraid you can only write your own preloader, but I
haven't seen anybody went so far.... :)


Could you cite your source please?

--
chris
Jul 21 '05 #4

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

Similar topics

28
by: Admin | last post by:
I am doing some research for a Python framework to build web applications. I have discarted Zope because from what I've read, the learning curve is too steep, and it takes more time to build...
2
by: feman | last post by:
I'm trying to install the dotnet framework 1.1 on a Windows 2000 Pro, SP 4 box. I've downloaded dotnetfx.exe and am installing from c:\temp. This is the error message that I get: Error 1606....
3
by: Cheung, Jeffrey Jing-Yen | last post by:
Hi all, I need some help with debugging a "deadlock" in a production environment. I've managed to get a crash dump and have tried to analyzed it via WinDbg and SOS. Unfortunately, I am not...
3
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Is there a way to preload the MS compondents of the Dot Net Framework V1.1 Before user login ? We have a few programs that are created under VB Dot Net that run at user login. On the older...
4
by: TS | last post by:
i want to be able to load a dll from the bin folder, but want a mechanism that will work without directly specifying \bin, even with changes that come with vs 2005. i know i can use...
4
by: blackdog | last post by:
I load to *.aspx into web server, but my web only recognize Microsoft ..NET Framework Version:1.1.xxxxx It could not recognize Framework Version:2.0. Currently I have Microsoft Visual Studio...
3
by: Buddy Home | last post by:
Hello, We have a system that is written in Framework 1.0 and runs under Framework 1.0. It uses the CLR Workstation to load the application. Framework 1.0 would require us to write unmanaged code...
5
by: bmckenna | last post by:
Hi there, I recently built a relatively simple application in VB.net using VS Studio 2008(the front end is attached to an Access database). Everything seems to run smoothly on my machine and on...
5
by: =?Utf-8?B?bWFzaXg=?= | last post by:
We have an issue with load time in several installations of our application. We've located the information regarding KB 936707 and ensured that the application config file contains the runtime...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.