Dot Net Interview Questions

.NET Windows services development questions

  1. Explain Windows service.
    You often need programs that run continuously in the background. For example, an email server is expected to listen continuously on a network port for incoming email messages, a print spooler is expected to listen continuously to print requests, and so on.
  2. What’s the Unix name for a Windows service equivalent?
    Daemon.
  3. So basically a Windows service application is just another executable? What’s different about a Windows service as compared to a regular application?
    Windows services must support the interface of the Service Control Manager (SCM). A Windows service must be installed in the Windows service database before it can be launched.

.NET Windows services development questions II

  1. How do you handle Start, Pause, Continue and Stop calls from SCM within your application? By implementing OnStart, OnPause, OnContinue and OnStop methods.
  2. Describe the start-up process for a Windows service. Main() is executed to create an instance of a Web service, then Run() to launch it, then OnStart() from within the instance is executed.
  3. I want to write a Windows service that cannot be paused, only started and stopped. How do I accomplish that? Set CanPauseAndContinue attribute to false.
  4. What application do you use to install a Windows service? installutil.exe

Microsoft .NET Framework interview questions

# What are the contents of assembly?
In general, a static assembly can consist of four elements:

* The assembly manifest, which contains assembly metadata.
* Type metadata.
* Microsoft intermediate language (MSIL) code that implements the types.
* A set of resources.

Microsoft .NET Framework interview questions I

# What are the different authentication modes in the .NET environment?

<authentication mode=”Windows|Forms|Passport|None”>
<forms name=”name” loginUrl=”url”
protection=”All|None|Encryption|Validation”
timeout=”30″ path=”/” > requireSSL=“true|false”
slidingExpiration=“true|false”><
credentials passwordFormat=”Clear|SHA1|MD5″><
user name=”username” password=”password”/>
</credentials> </forms>
<passport redirectUrl=”internal”/>
</authentication>

/li>
# What is the use of trace utility

# What is different between User Control and Web Control and Custom Control?

Microsoft .NET Framework interview questions II

# What is .NET Framework?

# Is .NET a runtime service or a development platform?
Answer: It’s both and actually a lot more. Microsoft .NET is a company-wide initiative. It includes a new way of delivering software and services to businesses and consumers. A part of Microsoft.NET is the .NET Frameworks. The frameworks is the first part of the MS.NET initiate to ship and it was given out to attendees at the PDC in July. The .NET frameworks consists of two parts: the .NET common language runtime and the .NET class library. These two components are packaged together into the .NET Frameworks SDK which will be available for free download from Microsoft’s MSDN web site later this month. In addition, the SDK also includes command-line compilers for C#, C++, JScript, and VB. You use these compilers to build applications and components. These components require the runtime to execute so this is a development platform. When Visual Studio.NET ships, it will include the .NET SDK and a GUI editor, wizards, tools, and a slew of other things. However, Visual Studio.NET is NOT required to build .NET applications.

Pages (13): « First ... « 5 6 7 [8] 9 10 11 » ... Last »