How does the lifecycle of Windows services differ from Standard EXE?

How does the lifecycle of Windows services differ from Standard EXE?
Windows services lifecycle is managed by “Service Control Manager” which is responsible for starting and stopping the service and the applications do not have a user interface or produce any visual output, but “Standard executable” doesn’t require Control Manager and is directly related to the [...]

Why is catch(Exception) almost always a bad idea?

Why is catch(Exception) almost always a bad idea?

Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.
What is the difference [...]

What are PDBs? Where must they be located for debugging to work?

What are PDBs? Where must they be located for debugging to work?
Answer1:
To debug precompiled components such as business objects and code-behind modules, you need to generate debug symbols. To do this, compile the components with the debug flags by using either Visual Studio .NET or a command line compiler such as Csc.exe (for Microsoft Visual [...]

What is the difference between boxing and unboxing ?

What is the difference between boxing and unboxing ?
Boxing allows us to convert value types to reference types. Basically, the runtime creates a temporary reference-type box for the object on heap.
Eg:
int i=20;
object o=i;
Describe the difference between a Thread and a Process?
Answer1:
Thread – is used to execute more than one program at a time.
process – executes [...]

What are the disadvantages of viewstate/what are the benefits?

What are the disadvantages of viewstate/what are the benefits?
Answer1:
Disadvantage of viewstate is that additional data is sent to the browser. The benefits are that you do not have to manually manage refreshing the page fields after a submit, (when re-displaying the same page).
Answer2:
Automatic view-state management is a feature of server controls that enables them to [...]

What is the transport protocol you use to call a Web service?

What is the transport protocol you use to call a Web service?
Answer1:
SOAP. Transport Protocols: It is essential for the acceptance of Web Services that they are based on established Internet infrastructure. This in fact imposes the usage of of the HTTP, SMTP and FTP protocols based on the TCP/IP family of transports. Messaging Protocol: The [...]

What type of code (server or client) is found in a Code-Behind class?

What type of code (server or client) is found in a Code-Behind class?
C#
Should validation (did the user enter a real date) occur server-side or client-side? Why?
Client-side validation because there is no need to request a server side date when you could obtain a date from the client machine.
What does the “EnableViewState” property do? Why would [...]

How many languages .NET is supporting now?

How many languages .NET is supporting now?
When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. 44 languages are supported.
How is .NET able to support multiple languages?
A language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language [...]