Hello
I'm using web services provided by a cassini derivate.
The web service calls are quite slowly because used assembly are not loaded as long as the provided classes are not used.
Is there any way to force that all assemblies on which my application depends are loaded into memory at the application start
Caution: The provided web services are in own AppDomains. If I may force preloading all assemblies will the assemblies of the provided web services also be loaded
Thanks a lot for helpful answers
Best regards
Hurz

Is it possible to force loading all assemblies before they are used?
Fritz Bilda
When .NET loads it delay loads the assemblies (just like delay-loading in C++) for speed purposes. As you hit a class and/or method the first time it will go through the JIT process as well. This isn't free but the cost is probably negliable compared to anything you are doing in your web service. And once it is done it is done.
The slowness in your app is probably the overhead of making a web service call. Web service calls are expensive because they go through the ASP.NET pipeline. Not much you can do there. I would recommend that you profile your app to see exactly where the time is being spent. It possibly could be a network, bandwidth or IIS issue.
Back to your original question however you could NGen the web service to produce a native image. I think it'll still delay-load but you won't have the overhead of JITting.
Michael Taylor - 10/28/05
Larantz
As TaylorMichaelL suggested, I recommend you to use a profiler to know exactly the cause of the delay in your application.