What is .Net Framework.
It is a platform to develop application.
============================================================
Difference between Visual Studio and VS.NET
Visual Studio | Visual Studio .Net |
It is object based | It is object oriented |
Internet based application - Web Application - Web services - Internet enable application - Third party API - Peer to peer Application | All developing facilities in internet based application |
Poor error handling Exception/Error | Advance error handler and debugger |
Memory Management System Level Task | Memory Management Application Domain with help of GC (Garbage Collector) |
DLL HELL | VS .NET has solved DLL HELL Problem |
What is DLL Hell:
I have two applications, A and B installed, both of them installed on my PC.
Both of these applications use the same shared assembly SharedApp.dll.
Somehow, I have the latest version of SharedApp.dll installed on my PC.
The latest SharedApp.dll replaces the existing DLL, that App A was also using earlier.
Now App B works fine whereas App A doesn't work properly due to the newer SharedApp.dll.

Solution of Dll-Hell Problem
This problem of dynamic link library (.dll) is resolved through Versioning.
What is GAC(Global Assembly Cache):
The GAC implements the feature of shared library where different applications reuse the code placed in the files located in a common folder.
What is Assembly:
An assembly is a file that is automatically generated by the compiler upon successful compilation of every .NET application. It can be either a Dynamic Link Library or an executable file.
it is Unit of Deployment. like EXE or DLL.
==============================================================
What is Difference between EXE and DLL
Ans:
1.EXE is an extension used for executable files while DLL is the extension for a dynamic link library.
2.An EXE file can be run independently while a DLL is used by other applications.
3.An EXE file defines an entry point while a DLL does not.
4.A DLL file can be reused by other applications while an EXE cannot.
5.A DLL would share the same process and memory space of the calling application while an EXE creates its separate process and memory space.
Types of Assembly:
- private
- shared (Public assembly)
- sattelite Assembly
Private Assembly
Private assembly requires us to copy separately in all application folders where we want to use that assembly’s functionalities; without copying we cannot access the private assembly features and power. Private assembly means every time we have one, we exclusively copy into the BIN folder of each application folder.
2. Shared Assembly
Assemblies that can be used in more than one project are known to be a shared assembly. Shared assemblies are generally installed in the GAC. Assemblies that are installed in the GAC are made available to all the .Net applications on that machine.
However there are two more types of assemblies in .Net, Satellite Assembly and Shared Assembly.
Assemblies that can be used in more than one project are known to be a shared assembly. Shared assemblies are generally installed in the GAC. Assemblies that are installed in the GAC are made available to all the .Net applications on that machine.
However there are two more types of assemblies in .Net, Satellite Assembly and Shared Assembly.
Satellite Assembly
Satellite assemblies are used for deploying language and culture-specific resources for an application.
GAC:
GAC stands for Global Assembly Cache. It is a memory that is used to store the assemblies that are meant to be used by various applications.
No comments:
Post a Comment