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

Wednesday, July 4, 2012

Unable to login to gtalk, but same userID pwd work when gmail is Accessed

Unable to login to gtalk, but same userID pwd work when gmail is Accessed ?

Some times we unable to login gtalk thus we can access gmail.
like below error will appears





Simply we have to change some setting in Google accounts.

once we enable 2-step verification is ON 
like below


click on EDIT (2-step verfication)
we will get one screen


Check the application available or not ... click on revoke

it that application not available name that application in below generate password
click on Generate password

you will get auto generated password

copy and paste in your password 
now u can able to login gtalk.

This error will raise... so we have to revoke all other application with directly integrate to google.....


All Country Telephone Codes

 Code    Country

1      US, CANADA
7      RUSSIAN FEDERATION
20    EGYPT
27    SOUTH AFRICA
30    GREECE
31    NETHERLANDS
32    BELGIUM
33    FRANCE
34    SPAIN
36    HUNGARY
39    ITALY
40    ROMANIA
41    LIECHTENSTEIN
41    SWITZERLAND
42    CZECH REPUBLIC
42    SLOVAK REPUBLIC (SLOVAKIA)
43    AUSTRIA
44    UNITED KINGDOM, CHANNEL ISLANDS
45    DENMARK
46    SWEDEN
47    NORWAY
48    POLAND
49    GERMANY
51    PERU
52    MEXICO
53    CUBA
54    ARGENTINA
55    BRAZIL
56    CHILE
57    COLOMBIA
58    VENEZUELA
60    MALAYSIA
61    AUSTRALIA
62    INDONESIA
63    PHILIPPINES
64    NEW ZEALAND
65    SINGAPORE
66    THAILAND
81    JAPAN
82    KOREA
84    VIETNAM
86    CHINA
90    TURKEY
91    INDIA
92    PAKISTAN
93    AFGHANISTAN
94    SRI LANKA
95    MYANMAR (BURMA)
353    IRELAND
373    MOLDOVA
880    BANGLADESH

Wednesday, June 27, 2012

Amithab Bachan not died

 Amithab bachan is  not died,

Its all Fake news don't trust

 

 

Amitabh Bachan Dies In Car Crash

     

THIS STORY IS STILL DEVELOPING...

(Local Team News 9) Amitabh Bachan died in a single vehicle crash on Route 80 between Morristown and Roswell. He was pronounced dead at the scene by paramedics responding to the vehicle accident and was identified by photo ID found on his body. Alcohol and drugs do not appear to have been a factor in this accident - June 27, 2012
Amitabh Bachan flipped vehicle Highway Safety Investigators have told reporters that Amitabh Bachan lost control while driving a friend's vehicle on Interstate 80 and rolled the vehicle several times killing him instantly.

The vehicle was believed to have been traveling at approximately 95 miles per hour in a 55mph zone at the time of the accident.

Witnesses have stated that Amitabh Bachan's car crossed the double lines several times prior to the accident and hit the center lane divider causing the vehicle to flip and roll.


Toxicology tests will be performed to determine whether he was driving under the influence, however initial findings indicate that durgs or alcohol did not contribute in any way to this accident as it was more likely to been caused by road conditions.

Memorial services for Amitabh Bachan have not yet been announced. The service is expected to be a closed casket funeral due to the severe head trauma.

Amazon.in


Don't Copy

Protected by Copyscape Online Plagiarism Checker

Pages

Offers