Latest answer: Windows services are based on the class that is
inherited from System.ServiceProcess.ServiceBase class. Methods from this class
are overridden to provide the functionality as per the user’s
requirement................
Read
answer
Latest answer: a. Running: Normal operation occurs during this
stage.
b. Paused: The service cannot perform anything beyond till the paused state is
changed..............
Read
answer
Latest answer: Win32OwnProcess, Win32ShareProcess.
Win32OwnProcess: It is a Win32 process that can be started by the Service
Controller. This type of Win32 service runs in a process by
itself..............
Read answer
Latest answer: Steps to create a windows service: a. Create
windows service project b. Set the properties as per you want your service to
work. c. Write the processing for OnStart and OnStop..............
Read
answer
Latest answer: It is done by overriding the functions of Base
class........
Read answer
Latest answer: The installer allows the registration of a
service on the system and let the Service Control Manager know that the service
already exists on the system.........
Read answer
Latest answer: Steps to attach a debugger to the application:
a. Start the service needed to be debugged. b. In Visual Studio IDE, select
Debug menu and click on Processes...............
Read answer
Latest answer: COM+ is the core service in all the services of
window DNA architecture. COM+ allows various components of window DNA t work
together to form a robust.........
Read
answer
Latest answer: JIT Activation: In this case, an object gets
activated on calling a method and it gets deactivated when the call returns
back.........
Read answer
Latest answer: A serviced component is a class that is inside
all the CLS-complaint languages.........
Read answer
Latest answer: XmlDocument doc=new XmlDocument();
Doc.Loadxml(@“c:\abc.xml”);.............
Read answer
Latest answer: XmlTextReader xmlReader = new
XmlTextReader(@"c:\abc.xml");
while(xmlReader.Read())................
Read answer
Latest answer: XmlTextWriter writer = new
XmlTextWriter(@"c:\abc.xml", null);
//Write the root element
writer.WriteStartElement("root");...............
Read
answer
Latest answer: public void DoRead()
{
XPathNavigator myNavigator;
XPathDocument
myDocument;................
Read answer
Latest answer: XML Web Service is a unit of code that can be
accessed independent of platforms and systems. They are used to interchange
data between different systems in different machines for
interoperability.........
Read answer
Latest answer: XML Web services directories: It provides a
central location for all service providers in order to publish information
about their available XML Web services. These directories could also be in XML
format which are programmatically accessible.........
Read answer
Latest answer: a. Using xcopy or Publish wizard copy the file
to the destination server.
b. Make the destination directory a virtual directory in IIS..............
Read answer
Latest answer: Asmx file: This is the main service file.
Config: The configuration for the web service application..........
Read answer
Latest answer: It defines a document format that enables
discovery of the web services available on the web server.........
Read answer
Latest answer: The .disco file contains links to resources that
define the specific XML web service. This allows discovery of the web
service.........
Read
answer
Latest answer: a. Add a web reference to the application
b. Choose from a list of available web services.......
Read answer
Latest answer: You have to use TransactionOption property of
the WebMethod attribute.........
Read answer
Latest answer: No-impact applications: Applications are
isolated preventing conflicts. Private components by default: Components are
copied to the application folder and hence only that application can use
them..........
Read
answer
Latest answer: Merge Module projects enable creation and
deployment of code that can be shared by multiple applications.........
Read answer
Latest answer: AssemblyVersion/AssemblyFileVersion
Format:
[MajorVersion].[MinorVersion].[BuildVersion].[RevisionVersion]................
Read answer
Latest answer: An enumeration is a special type of collection
in the .NET Framework that can contain lots of named constants.........
Read answer
Latest answer: The Stream class gives a view of various types
of input and output. Streams involve three fundamental operations:........
Read answer
Latest answer: FileStream: is to read from, write to, open, and
close files on a file system. FileStream objects support random access to files
using the Seek method.........
Read answer
Latest answer: Compression streams write to another stream. The
compression streams take in data like any other stream. But then it writes it
in compressed format to another stream..........
Read answer
Latest answer: Whenever any of the methods of String class is
used to modify the string, a new object is created and memory is allocated to
that object.........
Read
answer
Latest answer: Catch block gets called only when an exception
occurs or is explicitly thrown but we need to release our resources in either
case (task failure or success)..............
Read answer
Latest answer: Interface contains only the declaration for its
abstract members (events, methods, properties). Any implementation must be
placed in class that implements them..........
Read answer
Latest answer: IComparable, IDisposable, IConvertible,
ICloneable, IEquatable, IFormattable
IComparable: It is implemented by types for ordering and sorting. The
implementation types must implement one single method i.e. CompareTo.........
Read answer
public static object CreateMethod(Type generic, Type innerType, params object[]
args)
{
System.Type type = generic.MakeGenericType(new
System.Type[] { innerType });
return Activator.CreateInstance(type,
args);..............
Latest answer: Type forwarding is a technique to move types
from one assembly to another without the clients needing to recompile the
assemblies.................
Read answer
Latest answer: It is an xml based serialization technique which
is used to serialize and deserialize objects and data across
networks.................
Read answer
Latest answer: Serialization allows persisting objects. XML
serializations stores objects in form of XML which has become a storage
standard.........
Read answer
Latest answer: Use the namespace
“System.Xml.Serialization”.........
Read
answer
Latest answer: XmlSerializer srl = new
XmlSerializer(typeof(Class1));........
Read
answer
Latest answer: In Debug mode, You can use the development
environment's integrated debugging functions.........
Read answer
Latest answer: Code access security is a mechanism to help
protect computer systems from malicious code........
Read
answer
Latest answer: Permission is a rule to enforce restriction on a
piece of managed code.........
Read answer
Latest answer: Code group is a logical grouping of code that
follows some given conditions for membership.........
Read answer
|