Monday 19 November 2012

Preparation for Exam 70-503

Preparation for Exam 70-503

 Microsoft .NET Framework 3.5 – Windows Communication Foundation Application Development


In the last week I had given MCTS paper 70-503 for WCF. I cleared this exam with good score.
I am giving some inputs for how to prepare for exam
The exam consists of 43 questions and is scheduled for 140 min. You'll not find any exam simulator for this exam at this time as far as I know, so if you wish to prepare for the exam just get some hands on experience and study the books.

After finishing the exam, I got the idea how to score good in that exam - ABC: Address, binding and contract. If you have solid understanding in these three pillars of WCF – you will surely score well. 


These are the topic where you should have solid understanding before sitting for the exam –
1.           WCF service and client configuration – not using service configuration tool provided in windows sdk , rather thorough Xml.
2.           Security related configuration – Authentication and Authorization support in WCF thorough xml configuration.
3.           Service Instance – Single ,PerCall , PerSession and Thread-safety of the instance.
4.           Session and Transaction.
5.           Duplex channel.  WsDualHttpBinding.
6.           Serialization.
7.           Instrumentation of WCF service instance.
8.           Interoperability with ASMX.
9.           Creating Services
10.       Exposing and Deploying Services
11.       Instrumenting and Administering Services
12.       Consuming Services
13.       Securing Services
14.       Managing the Service Life Cycle 

I have so many dumps for 70-503 Exam... But first study from Microsoft Study material then give the exam

if you want a study material mail me

Books Reference links

Happy Programming ! !

If you have any query mail me to     


Sujeet Bhujbal


Friday 16 November 2012

How to get Hard Disk Drive Serial Number

Hi Friends,

Last week I was working on one window application. In this application we have to get serial number of Hard Disk Drive.

Following code describes how to get serial number of Hard Disk Drive.

You need to add a reference to System.Management.dll to your project.

  private string GetHDDSerialNumber()
  string harddiskno = "";
  ArrayList hdCollection = new ArrayList();
  ManagementObjectSearcher search = new ManagementObjectSearcher("SELECT * FROM   Win32_PhysicalMedia");
  int i = 0;
  foreach(ManagementObject wmi_HD in search.Get())
        // get the hard drive from collection
        HardDrive hd = (HardDrive)hdCollection[i];

        // get the hardware serial no.
        if (wmi_HD["SerialNumber"] == null)
                harddiskno = "No Disk Found";
                harddiskno = wmi_HD["SerialNumber"].ToString();

  return  harddiskno ;


In the above code

Happy Programming ! !
If you have any query mail me to     

Sujeet Bhujbal



Introduction to XAML in WPF/Silverlight

Introduction to XAML in WPF/Silverlight

XAML stands for Extensible Application Markup Language. Its a simple language based on XML to create and initialize .NET objects with hierarchical relations. Altough it was originally invented for WPF it can by used to create any kind of object trees.

Today XAML is used to create user interfaces in WPF, Silverlight, declare workflows in WF and for electronic paper in the XPS standard.

All classes in WPF have parameter less constructors and make excessive usage of properties. That is done to make it perfectly fit for XML languages like XAML.

XAML vs. Code

As an example we build a simple StackPanel with a textblock and a button in XAML and compare it to the same code in C#.


    <TextBlock Margin=”20″>Welcome to the World of XAML</TextBlock>
    <Button Margin=”10″ HorizontalAlignment=”Right”>OK</Button>

The same expressed in C# will look like this:

// Create the StackPanel

StackPanel stackPanel = new StackPanel();
this.Content = stackPanel;
// Create the TextBlock
TextBlock textBlock = new TextBlock();
textBlock.Margin = new Thickness(10);
textBlock.Text = “Welcome to the World of XAML”;
// Create the Button
Button button = new Button();
button.Margin= new Thickness(20);
button.Content = “OK”;

 As you can see is the XAML version much shorter and clearer to read. And that’s the power of XAMLs expressiveness

Advantages of XAML

All you can do in XAML can also be done in code. XAML ist just another way to create and initialize objects. You can use WPF without using XAML. It’s up to you if you want to declare it in XAML or write it in code. Declare your UI in XAML has some advantages:
  • XAML code is short and clear to read
  • Separation of designer code and logic
  • Graphical design tools like Expression Blend require XAML as source.
  • The separation of XAML and UI logic allows it to clearly separate the roles of designer and developer.

Happy Programming ! !

If you have any query mail me to     


Sujeet Bhujbal