Learning Curve…

Archive for the ‘Basic .NET Framework’ Category

Version information for an assembly consists of the following four values:

‘      Major Version

‘      Minor Version

‘      Build Number

‘      Revision

Tags:

NET Framework

A programming infrastructure created by Microsoft for building, deploying, and running applications and services that use .NET technologies, such as desktop applications and Web services.

The .NET Framework contains three major parts:

– The Common Language Runtime.

– The Framework Class Library (FCL) : The .NET Framework class library is a huge collection of 2,500 reusable classes, interfaces, and value types.

– ASP.NET

.NET depends on four Internet standards:

HTTP

XML

SOAP

UDDI

Question: Where’s global assembly cache located on the system?
Answer
: Usually C:\winnt\assembly or C:\windows\assembly.

Question: How can you debug failed assembly binds?
Answer
: Use the Assembly Binding Log Viewer (fuslogvw.exe) to find out the paths searched.

Question: How can you tell the application to look for assemblies at the locations other than its own install?
Answer: Use the directive in the XML .config file for a given application.

<probing privatePath=”c:\mylibs; bin\debug” />

should do the trick. Or you can add additional search paths in the Properties box of the deployed application.

Question: How do you specify a custom attribute for the entire assembly (rather than for a class)?
Answer:
Global attributes must appear after any top-level using clauses and before the first type or namespace declarations. An example of this is as follows:

using System;
[assembly : MyAttributeClass] class X {}

Note that in an IDE-created project, by convention, these attributes are placed in AssemblyInfo.cs.

 Question: What is purpose of Assembly Linker or define SDK Tool in .NET Framework?
Answer: In .NET whole the working should be with the helps of DLLs.So all of Visual Studio .Net compilers gernate assemblies or u can say dll.If we want to create an assembly with manifest of a module.We can also put this assembly in seprate file.This AL tol gernate a file with an assembly manifest from modules or resources fles.The syntax of using Al.exe is
                  al [sources] [options]
This tool helps in creating multi-file assembly outside Visual Studio .Net .This multi file can contain modules that are written in different language in one application.

What is a CLR?

Answer: Full form of CLR is Common Language Runtime and it forms the heart of the .NET framework. All Languages have runtime and it is the responsibility of the runtime to take care of the code execution of the program. For example, VC++ has MSCRT40.DLL, VB6 has MSVBVM60.DLL, and Java has Java Virtual Machine etc. Similarly, .NET has CLR. Following are the responsibilities of CLR

Garbage Collection: – CLR automatically manages memory thus eliminating memory leaks. When objects are not referred, GC automatically releases those memories thus providing efficient memory management.

Code Access Security: – CAS grants rights to program depending on the security configuration of the machine. Example the program has rights to edit or create a new file but the security configuration of machine does not allow the program to delete a file. CAS will take care that the code runs under the environment of machines security configuration.

Code Verification: – This ensures proper code execution and type safety while the code runs. It prevents the source code to perform illegal operation such as accessing invalid memory locations etc.

IL (Intermediate language)-to-native translators and optimizer’s:– CLR uses JIT, compiles the IL code to machine code, and then executes. CLR also determines depending on platform what is optimized way of running the IL code.

 


Author

Learning days (Calendar)

June 2017
M T W T F S S
« Jun    
 1234
567891011
12131415161718
19202122232425
2627282930  

Knowledge Bank (Archives)

I am on Twitter

Blog Stats

  • 498,681 hits

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 43 other followers

%d bloggers like this: