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

assembly loading

We have a C# remoting application that runs thru the web. Assemblies appear
to be loaded from the download cache. Is there any way to have them
automatically copied to the GAC and be loaded from there: for performance
reasons and to be applicable machine wide. We'd also like to be able to use
an installation package to pre-load all the dll's and don't see how an
installation program can pre-loaded them into the
download cache.
Thanks,
RickN
Nov 15 '05 #1
3 2474
Assemblies must be installed, not copied, to the GAC, and there is no way to
have the runtime automatically do this for you when an assembly is
downloaded from a website, nor would anyone want it to.

If you are using an installation program that you can run on your client
machine then you can install those assemblies into the GAC (not the download
cache) at installation time.

BTW: if the assembly needs to be machine wide then the GAC is the
appropriate place for it, but if performance is the reason then I would not
put it in the GAC. If all you need is for the assembly to be present when
the application program runs then putting it into the application base
directory is sufficient.
"RickN" <ri**@abasoftware.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
We have a C# remoting application that runs thru the web. Assemblies appear to be loaded from the download cache. Is there any way to have them
automatically copied to the GAC and be loaded from there: for performance
reasons and to be applicable machine wide. We'd also like to be able to use an installation package to pre-load all the dll's and don't see how an
installation program can pre-loaded them into the
download cache.
Thanks,
RickN

Nov 15 '05 #2
As I understand it, when a remoting application runs, it checks to see if it
has the most current version of the dll, if not it downloads it to the
download cache and then loads it from the download cache. So, as I
understand it, if it exist in the download cache, it isn't even going to
look in the application directory, as you suggest. I also understand that
files loaded from the cache must go thru a security check and files loaded
from the GAC, do not. Therefore, I don't understand why you say I would not
want to load from the GAC for performance reasons.
Please explain.
Thanks,
RickN

"Dave" <dl*********@wi.rr.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Assemblies must be installed, not copied, to the GAC, and there is no way to have the runtime automatically do this for you when an assembly is
downloaded from a website, nor would anyone want it to.

If you are using an installation program that you can run on your client
machine then you can install those assemblies into the GAC (not the download cache) at installation time.

BTW: if the assembly needs to be machine wide then the GAC is the
appropriate place for it, but if performance is the reason then I would not put it in the GAC. If all you need is for the assembly to be present when
the application program runs then putting it into the application base
directory is sufficient.
"RickN" <ri**@abasoftware.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
We have a C# remoting application that runs thru the web. Assemblies

appear
to be loaded from the download cache. Is there any way to have them
automatically copied to the GAC and be loaded from there: for performance reasons and to be applicable machine wide. We'd also like to be able to

use
an installation package to pre-load all the dll's and don't see how an
installation program can pre-loaded them into the
download cache.
Thanks,
RickN


Nov 15 '05 #3

"RickN" <ri**@abasoftware.com> wrote in message
news:OG*************@tk2msftngp13.phx.gbl...
As I understand it, when a remoting application runs, it checks to see if it has the most current version of the dll, if not it downloads it to the
download cache and then loads it from the download cache. So, as I
understand it, if it exist in the download cache, it isn't even going to
look in the application directory, as you suggest. I also understand that
files loaded from the cache must go thru a security check and files loaded
from the GAC, do not. Therefore, I don't understand why you say I would not want to load from the GAC for performance reasons.
Please explain.
Thanks,
RickN
You are mixing together a number of different topics. This article explains
some of the issues.

http://msdn.microsoft.com/msdnmag/is...tSmartClients/

I did not state that you would not want to load from the GAC for performance
reasons, what I said was that performance by itself is not a sufficient
reason to put assemblies into the GAC. Files loaded from the GAC go through
a security check that same as any other assembly; all assemblies use Code
Access Security, it's just that assemblies in the GAC typically are granted
more permissions then assemblies downloaded from a website.

You asked was about copying files to the GAC - you cannot copy files there,
the files must be installed, and files installed into the GAC must be signed
with a strongname. The GAC is not the same as the download cache. The
download cache can be located anywhere, is usually unique per logged-in
user, and has no strongname requirements. The download cache can be cleared,
deleted, etc.; it is just a temporary repository - the GAC is permanent.

Signing assemblies has an effect on how versioning works. You should read up
on this and plan accordingly.

You indicated that you could run an installation program; this implies that
you could install your application anywhere onto the client's machine at
that time, so you could create a directory for your application and put your
assemblies into that directory - this is what I meant when I referred to the
application base directory.


"Dave" <dl*********@wi.rr.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Assemblies must be installed, not copied, to the GAC, and there is no way
to
have the runtime automatically do this for you when an assembly is
downloaded from a website, nor would anyone want it to.

If you are using an installation program that you can run on your client
machine then you can install those assemblies into the GAC (not the

download
cache) at installation time.

BTW: if the assembly needs to be machine wide then the GAC is the
appropriate place for it, but if performance is the reason then I would

not
put it in the GAC. If all you need is for the assembly to be present when the application program runs then putting it into the application base
directory is sufficient.
"RickN" <ri**@abasoftware.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
We have a C# remoting application that runs thru the web. Assemblies

appear
to be loaded from the download cache. Is there any way to have them
automatically copied to the GAC and be loaded from there: for performance reasons and to be applicable machine wide. We'd also like to be able

to use
an installation package to pre-load all the dll's and don't see how an
installation program can pre-loaded them into the
download cache.
Thanks,
RickN



Nov 15 '05 #4

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

Similar topics

3
by: Atul Godbole | last post by:
Suppose an assembly "Main" is using class "A" from another Assembly "Dep" as follows : A a = new A(); a.MethodOne(); At what time is the call to MethodOne linked to the actual MSIL (method...
4
by: Mark | last post by:
I wan't to be able to deserialize a class from an assembly that is not in the application domain. To do that I must have the Type from the Assembly. How do you get a Type from an assembly that is...
1
by: Benjamin | last post by:
Hi, I'm currently writing a Web Services that interacts with a database. To allow me to use not just one database provider (for example, I could use MS Access, SQL Server or MySQL), the Web...
3
by: Atul Godbole | last post by:
Suppose an assembly "Main" is using class "A" from another Assembly "Dep" as follows : A a = new A(); a.MethodOne(); At what time is the call to MethodOne linked to the actual MSIL (method...
2
by: peter.drienovsky | last post by:
Hello, let me describe my problem: ENVIRONMENT: ..Net 2.0, MSVS 2005, c#, WinXP SYMPTOMS: If assembly 'AgentDesktop' IS NOT in the (loading) application folder,
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.