Posted by: ripalmsoni | March 29, 2007

.Net Framework 1.1 Interview Questions

1. What is an assembly?

Ans. Assemblies are the smallest units of versioning and deployment in .Net application.Assemblies are also building blocks for programs such as Web Services,Windows Services,Service Components and .Net Remoting Applications.

Here are some general Concepts of an Assembly.

  • An Assembly is a logical unit of code
  • Assembly physically exist as DLLs or EXEs
  • One assembly can contain one or more files
  • The constituent files can include any file types like image files, text files etc. along with DLLs or EXEs
  • When you compile your source code by default the exe/dll generated is actually an assembly
  • Unless your code is bundled as assembly it can not be used in any other application
  • When you talk about version of a component you are actually talking about version of the assembly to which the component belongs.
  • Every assembly file contains information about itself. This information is called as Assembly Manifest.
  • For more information about an Assembly please visit http://msdn2.microsoft.com/en-us/library/hk5f40ct.aspx

    2.What is Satellite assembly?

    Ans. A .NET Framework assembly containing resources specific to a given language. Using satellite assemblies, you can place the resources for different languages in different assemblies, and the correct assembly is loaded into memory only if the user elects to view the application in that language.

    3.What is MSIL?

    Ans. Microsoft Intermediate Language (MSIL) is a platform independent language that gets compiled into platform dependent executable file or dynamic link library.It means .NET Compiler can generate code written using any supported languages and finally convert it to the machine code depending on the target machine.

    4.What is CLR?

    Ans. CLR is Common Language Runtime that provides multi-language execution environment for .NET.It executes the MSIL code to the native machine code.It helps us to use classes which is created in another .NET language.For eg. You can use a class created using vb in c#.

    5.What is CTS?

    Ans. CTS is the .NET Framework specification for defining, declaring, and managing types in .NET languages for the Common Language Runtime (CLR). All .NET components must comply with the CTS specification.

    Read More…

    Posted by: ripalmsoni | March 16, 2007

    Print PDF file in .net

    I found this question at many places that how to print pdf file in .net in which you have only the full path of that pdf file

    here is you solution in vb.net

    Dim psi As New ProcessStartInfo
    psi.UseShellExecute = True
    psi.Verb = “print”
    psi.WindowStyle = ProcessWindowStyle.Hidden
    psi.FileName = sReport
    Process.Start(psi)

    Read More…

    Posted by: ripalmsoni | March 16, 2007

    How to use login control in .net

    As a web developer we know that most of the time our application is having a login as well as the forget password kind of requirement.

    Now, using visual studio 2005 it’s very easy to design a login page because the inbuilt login tab has been added into the toolbox of VS 2005 editor, which has different types of control related to login functional.

    Fig 1.1: New tab for login

    Read More…

    « Newer Posts

    Categories