Tuesday, November 12, 2013

Top 10 Healthy food for weight loss

1.Eggs
2.Dark Chocoloate
3. Cucumber
4.Green Tea
5.Apples
6.Tomoto
7.Green chilli
8.Garlic
9.Olive oil
10.Oat Meal

Friday, April 19, 2013

Serialization

Serialization is process converting a object from its present form(not to form of transport)  to transport form with in the network.

Three Types of Serializations are available in .net
1. SOAP Serialization
2.XML Serialization
3.Binary Serialization

Sunday, March 24, 2013

Fault Contract in WCF

Fault Contract in WCF :

For Handling Exception in WCF , we need to use fault contract
here sample example of fault contract



ex :

In Interface (IService.cs)

using System;
using System.Collection.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Net.Security;


Public interface IService1
{
[OperactionContract]
[FaultContractAttribute(typeof(CustomException), Action="Custom Exception")]
string SampleMethod(string message);
}

[DataContractAttribute]
Public class CustomeException
{
private string report;
public CustomException(string message)
{
this.report=message;
}
[DataMemberAttribute]
Public string Message
{
get{return this.report;}
set{this.report =value;}
}

}

In Service.cs

using System;
using System.Collection.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Net.Security;

Public class Service1: IService1
{

  public string SampleMethod(string msg)
 {
   try
      {
          string strNumber =string.Empty;
          int? num3 =null;
         strNumber=num3.ToString();
         num3=Convert.ToInt16(strNumber);
      }
     catch(Exception ex)
       {
        msg=ex.Message;
        throw new FaultException<CustomException> (new CustomException("SampleMethod : Error Occured -" +msg));

       }
return "The Service successfully returned : " +msg;
 }


In Client Class


 private void GetAdd()
    {
        string msg = string.Empty;
        try
        {
            msg = "hello";
            ServiceReference1.Service1Client proxy = new ServiceReference1.Service1Client();
            string name = proxy.SampleMethod(msg);
        }
        catch (FaultException<ServiceReference1.CustomException> ex)
        {
            string message = ex.Detail.Message;
            Response.Write(message);
        }
    }





Thursday, February 7, 2013

Dotnet Questions and Answers for experience Software Engineers

1. Can brief about your self ?
Ans: Tell about your dotnet projects will small introduction of your profile(name,college..etc0
       try to speak about on Career oriented achievements 
2. Can you tell me Roles and Responsiblities
Ans : Explain about your roles(work)
          they will expect documentation exp
         and  experience  with USA/UK Clients (Calls and Mails)
3.Database related Queries


-- Here my idea is not placing boring interview questions
-- the interview process

Amazon.in


Don't Copy

Protected by Copyscape Online Plagiarism Checker

Pages

Offers