Featured Dot Net Questions

Difference between Windows Service and Web Service
What is the difference between a Windows Service Application and a Web Service Application? Please don't hand in the definition from some text book... I'm looking for the functional difference.
Latest Answer: Web service is used to transfer the data over a network like internet using WSDL ( web service descriptive language) by using a protocol like SOAP(Simple Object Access Protocol) .Windows service is a long running program.windows ...

RE: Difference between Windows Service and Web Service
Points to consider:
1)Windows service is not a web based whereas the webservice is webbased
2)Windows service will start as windows will start whereas the webservice is located at remote location on the server,
3)Windows service can be seen in the windows administrative tools>>Services
4)Finally we can say that Windows services are used locally on the pc and the Web services are used on internet based web applications.

RE: Difference between Windows Service and Web Service
Basically a windows service will be created to handle the message from Message Queue..It will fulfil the functionalities like File System Watcher and other continious process in a windows Client/server.

Whereas the web service is used as a service for hadling the request from the different type of client. UI could be biult on any Language. Complete business logic, validation and Database operation would be available in web servie. So whenever a client access the web service via HTTP it will take the appropriate action.


RE: Difference between Windows Service and Web Service

Web service is used to transfer the data over a network like internet using WSDL ( web service descriptive language) by using a protocol like SOAP(Simple Object Access Protocol) .

Windows service is a long running program.
windows service run in the background of operating system .
They can be started manually or the programm can be set start automatically when the operating system starts.
They do not need any user intervention.

What are the limitations of XML serialization?

Latest Answer: XML serialization has some limitations. It converts public property values and fields, but does not encode type information. Also it does not encode private properties and fields, which requires binary serialization. Any class to be serialized to XML ...


Explain how the page is executed in ASP.NET ?
Latest Answer: An ASP.Net page consists of, at a minimum, a single .aspx file and can contain other files associated also with the page. The .aspx file is called the content file as it has the visual content of the page.When a browser requests a .aspx file from ...

What is Fixed statement in C#?

Latest Answer: The "fixed" statement prevents the garbage collector from relocating a movable variable.Eg:fixed ( int* p = &pt.x ){Â Â Â *p = 1; } ...


What is the difference between datagrid and gridview?
Latest Answer: Datagrid can be used in web also, the major differences are regarding the sorting, inserting which has been stated already.DataGrid can also be used in windows applications, but in earlier versions where datagrids were the only source i.e. ASP.NET 1.1, ...


Name the methods that are used to communicate with Web Services.

Latest Answer: Use the call object and call invoke() or invoke one way() ...

What is the difference between string class and stringbuilder class?

Latest Answer: String is immutable where as stringbuilder is mutable. That means: The value in a string can not be modified once it has been created. When you modify a string in your code, it actually creates a new string with the modified value and the string object ...


Difference between System.Reflection and System.Assembly?
Latest Answer: The System.Reflection namespace contains classes and interfaces that provide a managed view of loaded types, methods, and fields, with the ability to dynamically create and invoke types.System.Assembly contains the information about the assembly ...


What is a jitter and how many types of jitters are there?
Latest Answer: JIT is just in time complier.it categorized into three:1 Standard JIT : prefered in webApp-----on diamand2 Pre JIT : only one time------only use for window App3 Economic JIT : use in mobile App ...


What is delayed signing? How can we do a delayed signing for a dll which has to be shared?
Delay signing allows you to place a shared assembly in the GAC by signing the assembly with just the public key. This allows the assembly to be signed with the private key at a later stage, when the development process is complete and the component or assembly is ready to be deployed. This process enables developers to work with shared assemblies as if they were strongly named, and it secures the private key of the signature from being accessed at different stages of development



RE: What is delayed signing? How can we do a delayed s...

Delay signing is the process of adding strong name to the assembly at the later stage of development.
Signing an assembly means adding a strong name to the assembly.
As the strong name is added at the later stage due to security reasons it is called as delayed signing.

It is done by using the Namespace System.Reflection
This Namespace has got two attributes.
Assemblykeyfileattribute
AssemblyDelaySignAttribute


Tell me about ASP.Net Web Matrix?
This is a free ASP.NET development environment from Microsoft. As well as a GUI development environment, the download includes a simple web server that can be used instead of IIS to host ASP.NET apps. This opens up ASP.NET development to users of Windows XP Home Edition, which cannot run IIS.


What is Base Class Library?

base class library is collection of various classes from .net frame work, from which all base classes like System.object, System.collection, and Ado.net objects are derived.

all .net compatible languages use this library to build an application.

BaseClassLibrary + CLR results in .Net frame work.


Basic objects of Dot net environment?2. If you perform arithmatic operation on null value a. 0b.
1. Basic objects of Dot net environment?2. If you perform arithmatic operation on null value a. 0b. nullc. can't be determinedd. compilation error3. In c# keyword .net map to which .net data type.a. System.Int16b. System.Int32c. System.Int64d. System.Int1284. In sql-server give example for binary data type and non-binary data type5. page init, page load, page pre render, page unload - is this order correct otherwise give correct order.6. To redirect the page- should not round trip the page7.Expansion


Is .Net Platform independent ?

As you all know that in .net there are different compilers like for c#-csc,vb-vbc etc after your code is complied it will convert to MSIL code which is independent this MSIL code will goes to CLR & this CLR is platform dependent i.e for unix platform you should have unix type of CLR ,for windows like the same so we can say that .net code is platform independent.

Is .Net Platform independent ?
.NET is not platform independent .. to run .NET applications one needs to install .NET Framework .. and currently .NET Framework is supported by windows only .. till .NET Framework is not released for other OS officially .. till then .NET cannot be considered to be platform independent ..

There are certain 3rd party tools such as MONO to run ASP.NET on linux .. but that doesn't make .NET Platform independent.

No comments: