smallest units of versioning and deployment in the .NET application.
Assemblies are also the building blocks for programs such as Web
services, Windows services, serviced components, and .NET remoting
applications.
2. What’s the difference between private and shared assembly?
Private assembly is used inside an application only and does not have
to be identified by a strong name. Shared assembly can be used by
multiple applications and has to have a strong name.
3. What’s a strong name? A strong name includes the name of the
assembly, version number, culture identity, and a public key token.
4. How can you tell the application to look for assemblies at the
locations other than its own install? Use the
directive in the XML .config file for a given application.
should do the trick. Or you can add additional search paths in the
Properties box of the deployed application.
5. How can you debug failed assembly binds? Use the Assembly
Binding Log Viewer (fuslogvw.exe) to find out the paths searched.
6. Where are shared assemblies stored? Global assembly cache.
7. How can you create a strong name for a .NET assembly? With
the help of Strong Name tool (sn.exe).
8. Where’s global assembly cache located on the system? Usually
C:\winnt\assembly or C:\windows\assembly.
9. Can you have two files with the same file name in GAC? Yes,
remember that GAC is a very special folder, and while normally you
No comments:
Post a Comment