Pages

Wednesday, December 10, 2008

ASP.Net Interview Questions - Part 6

Qs. What is shared and private assembly ?
Answer Shared assemblies are accessed by more than one application and they are stored in GAC. private assemblies are accessed
by only one application and they are stored in application directory and one of its subdirectory.

Qs. What is strong name and which tool is used for this ?
Answer If you want to design an assembly which is used by more than one application then that assembly should be assigned
a strong name. sn.exe is used to generate a strong name.(Note:Once the strongname is given to an assembly it no longer remians private)
Answer Strong Name is to be assigned to shared assembly. when more then one application is going to use that dll/assembly,
that assembly has to assign a strong name and has to be place in GAC(Global Assembly Cache).

Qs. Difference between and
Answer u can declare ur database connection in connection string and u can declare all ur application settings in appsettings like ur service url etc.
In you can store any key and value pairs where as in the you can have only the name and connectionstring attribute.
is used before connection string we use it to set the applicstion setting so that program run successfully,but
is used to make the or establish the connection.

Qs. Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?
Answer Side-by-side execution is the ability to run multiple versions of an application or component on the same computer.
You can have multiple versions of the common language runtime, and multiple versions of applications and components that use a version of the runtime, on the same computer at the same time.
Since versioning is only applied to shared assemblies, and not to private assemblies, two application one using private assembly and one using shared assembly cannot be stated as side-by-side executables.

No comments: