.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What is message queuing in .NET

Posted By :Ashutosh Jha     Posted Date :July 30, 2014    Points :40   Category :.NET Framework 
Messaging Queuing is a general purpose method for integrating enterprise applications. Messaging is available on several platforms including Microsoft, IBM and platforms that implement Java.

We can send message from one system to another system using message queuing.

In .NET you can program MSMQ through the System.Messaging namespace

You can also find related Interview Question to What is message queuing in .NET  below: 

Which method would you call to send an e-mail message and wait for the transmission to complete before proceeding?

  
Select from following answers:

1.MailMessage.Send
2.SmtpClient.Send
3.SmtpClient.SendAsync
4.MailMessage.SendAsync

Correct Answer is:

SmtpClient.Send (More...)

What is Transport and Message Reliability?

  
Transport reliability (such as the one offered by TCP) offers point-to-point guaranteed delivery at the network packet level, as well as guarantees the order of the packets. Transport reliability is not resilient to dropping network connections and a variety of other communication problems.

Message reliability deals with reliability at the message level independent of how many packets are required to deliver the message. Message reliability provides for end-to-end guaranteed delivery and order of messages, regardless of how many intermediaries are involved, and how many network hops are required to deliver the message from the client to the service.
(More...)

Why this Error comes during compilation of our ASP page ?

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineOnly' beyond machine.config.

  
This happens because ,

In our web.config file we might have declared a section that is not configurable on our shared web hosting platform. So when we get this error we have to remove that part which is not supported in the web.config file. (More...)

Message reliability

  
Message reliability deals with reliability at the message level independent of how many packets are required to deliver the message. Message reliability provides for end-to-end guaranteed delivery and order of messages, regardless of how many intermediaries are involved, and how many network hops are required to deliver the message from the client to the service. (More...)

You added a SharePoint Web part to page, and now, when you go to the page, get an error message. To get the page working again, what need to do?

  
Go to the page with the error and add

?Contents=1

to the end of the page's URL. If the URL already has a "?" then add this instead to the end of the URL:

&Contents=1

You will now see a list of all of the Web Parts on the page and can now delete the offending Web Part.

Here is an example for a site URL that ends in aspx:
http://.../default.aspx?Contents=1 (More...)

What is the lifecycle of a Message in BizTalk server

  
A message is received through a receive location defined in a given receive port. This message is processed by the pipeline associated with the receive location, and if there are any inbound maps associated with the receive port they are executed. The resulting message is then published to the MessageBox database. The MessageBox evaluates active subscriptions and routes the message to those orchestrations, and send ports with matching subscriptions. Orchestrations may process the message and publish messages through the MessageBox to a send port where it is pushed out to its final destination. (More...)

What is Transport and Message Reliability?

  
Transport reliability (such as the one offered by TCP) offers point-to-point guaranteed delivery at the network packet level, as well as guarantees the order of the packets. Transport reliability is not resilient to dropping network connections and a variety of other communication problems.

Message reliability deals with reliability at the message level independent of how many packets are required to deliver the message. Message reliability provides for end-to-end guaranteed delivery and order of messages, regardless of how many intermediaries are involved, and how many network hops are required to deliver the message from the client to the service.
(More...)

Which is the default Message Exchange Pattern (MEP) ?

  
Below are 6 type of MEP

1)Datagram
2)Request-response
3)Duplex
4)Datagram with sessions
5)Request-response with sessions
6)Duplex with sessions

Request-response is the default MEP because it supports both an operation in which one or more parameters are passed to the operation and a return and one or more out values that the operation passes back to the caller.
(More...)

Can we have a message contract as input parameter and data contract as returned parameter in a single operation contract?

  
No, Input and return parameter should be same as Message contract if we want to use message contract in a operation contract. (More...)

Can you show me an example in how to write a Message Contract in WCF ?

  
[MessageContract]

public class EmployeeDetails

{

[MessageHeader]

public int ID;



[MessageBodyMember]

public string First_Name;



[MessageBodyMember]

public string Last_Name;

}


Message contract can be applied to type using MessageContract attribute as shown above. We can add custom header and custom body by using MessageHeader and MessageBodyMember attribute respectively.

(More...)

In WCF, while using one way contract, suppose a client invokes a method and the server while executing it, encounters an error. Will the error message propagate to the client or will the client ever know that there was an error on the server side ?

  
No, one-way operations cannot return values and any exception thrown on the service side will not make its way to the client. The client will never know whether there was an error or not ! (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend