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.

Microsoft .NET

What is Microsoft .NET?

Microsoft .NET is the Microsoft strategy for connecting systems, information, and devices through Web services so people can collaborate and communicate more effectively. .NET technology is integrated throughout Microsoft products, providing the capability to quickly build, deploy, manage, and use connected, security-enhanced solutions through the use of Web services.

What are Web Services?


Web services are small, reusable applications that help computers from many different operating system platforms work together by exchanging messages. Web services are based on industry protocols that include XML (Extensible Markup Language), SOAP (Simple Object Access Protocol), and WSDL (Web Services Description Language). These protocols help computers work together across platforms and programming languages.

From a business perspective, Web services are used to reenable information technology so that it can change, move, and adapt like other aspects of a business. They not only connect systems, they can help connect people with the information they need, within the software applications they are used to using, and wherever they happen to be.

Microsoft offers a complete range of software that helps organizations and individuals benefit from Web service-based connectivity. These include theMicrosoft Visual Studio .NET 2003 developer tools, the Windows Server System that hosts Web services, and familiar desktop applications such as the Microsoft Office System that "consume" Web services.

What are the Benefits of .NET?

.NET technologies use Web services to help enhance the computing experience with highly integrated communications and information. Because .NET includes the core technologies for building Web services, it benefits everyone: individual users, organizations, and developers.


.NET benefits organizations by helping them get the most out of their existing technology investments while creating new ways to implement powerful, cost-effective information technology that will meet future needs. .NET technologies and Web services can be used to integrate even the most disparate computing environments. .NET frees organizations from the confines of proprietary technology, providing the flexibility and scalability that can help organizations connect their existing IT systems and build a foundation for the next wave of computer technology. .NET and Web services can help organizations lower operating costs by helping connect systems; increase sales by helping employees access the right information when and where they need it; integrate services and applications with customers and partners; and lower the costs of information technology with tools that help developers quickly create new solutions to address business issues.


.NET benefits individuals by helping provide a more personal and integrated computing experience. .NET-enabled computing is centered on the user–not on the features of the software or hardware. The user's experience becomes very customizable and provides integrated data and customized interactions that work well with a wide range of computing hardware, such as Pocket PCs, Smartphones, laptops, and other devices. The .NET-based experience enhances the mobile computing experience so user's can get their information regardless of their location. For example, it can take place on a desktop computer, in the car on a Smartphone, or at the store on a Pocket PC.


.NET benefits developers by providing a tightly integrated set of tools for building and integrating Web services. Visual Studio .NET and the .NET Framework provide comprehensive development platforms that offer the best, fastest, and most cost-effective way to build Web services. With Visual Studio .NET and the .NET Framework, developers can take advantage of a programming model designed from the ground up for creating Web services in a highly productive, multilanguage environment. With scalable, high-performance execution, the .NET tools allow developers to use existing skills to create a wide range of solutions that work across a broad array of computing devices. .NET also provides a foundation for building Service Oriented Architectures (SOA).

What are Service Oriented Architectures (SOA)?

SOA describes an information technology architecture that enables distributed computing environments with many different types of computing platforms and applications. Web services are one of the technologies that help make SOAs possible. As a concept, SOA has been around since the 1980s, but many early IT technologies failed to achieve the goal of linking different types of applications and systems. By making early investments with .NET, Microsoft has helped provide the building blocks that today are putting many enterprise customers on the path to successfully implementing SOAs. With SOAs, companies can benefit from the unimpeded flow of information that is the hallmark of connected systems.

What are Web Services Enhancements for Microsoft .NET (WSE)?

WSE is an add-on to Microsoft Visual Studio .NET and the Microsoft .NET Framework that helps developers build greater security features into Web services using the latest Web services protocol specifications and standards. With WSE 2.0 developers can create security-enhanced connected systems that help improve business processes within–and beyond–corporate trust boundaries and create new revenue-generating opportunities.

What is a Smart Client?

Smart clients are client applications that consume Web services and reside on user hardware such as desktop PCs, laptops, Pocket PCs, and Smartphones. They are easily deployed and managed and provide an adaptive, responsive, and rich interactive experience by taking advantage of the computing resources on the device and intelligently connecting to distributed data sources.

What is .NET Passport?

.NET Passport is a Web-based service that is designed to make signing in to Web sites fast and easy. Passport enables participating sites to authenticate a user with a single set of sign-in credentials, alleviating the need for users to remember numerous passwords and user names.

What are the Current Microsoft Products and Technologies That Use .NET?


Microsoft .NET provides everything that is needed to develop and deploy a Web service-based IT architecture: servers to host Web services; development tools to create Web services; applications to use them; and a network of more than 35,000 Microsoft partners to help organizations deploy and manage them. .NET technologies are supported throughout the family of Microsoft products, including the Windows Server System, the Windows XP desktop operating system, and the Microsoft Office System. And .NET technologies will play an even larger role in future versions of Microsoft products.

Who is Using .NET?


Organizations worldwide are implementing .NET technologies and Web services to create connected businesses and to help individuals communicate and collaborate more effectively. For example, Honeywell, GlaxoSmithKline, Sony, Dollar Rent A Car, Farmers Insurance, and the United States Postal Service are just a few of the well-known names that are using .NET. To read more about .NET technology in use today, visit the Microsoft .NET Case Study site.

How Do I Find a Microsoft Partner to Help Me Connect My Organization Using .NET?

Microsoft Certified Partners are independent companies that can provide you with the highest levels of technical expertise, strategic thinking, and hands-on skills. Microsoft Certified Partners encompass a broad range of expertise and vendor affiliations. Their real-world perspective can help you prioritize and effectively deliver your technology solutions.