How to get exception details pushed to client when using WCF web service

11. February 2013

We can enable this setting by including the below code in webconfig of WCF web service . By adding the tag <serviceDebug includeExceptionDetailInFaults="true"/> we can get the details of the specific exception raised at server side into client side when Debugger is attached with client application .

<system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>

WCF

StackOverflowException thrown in C#

8. February 2013

I was getting a stackOverFlowException in my program , i found out that i have called my function in its own definition body , actually i had a similar name function in other class and i forgot to call that function with its own instance and hence this exception was thrown . 

C#

How to implement IValueConverter Interface and using it in xaml

7. February 2013

Nice msdn article for this topic :- http://msdn.microsoft.com/en-us/library/system.windows.data.ivalueconverter(v=vs.100).aspx

C#

How to assign a new thread for a multiple parameter function

25. January 2013

We can use Lambda expression in order to pass a multiple parameter function to a thread .

Thread MailThread = new Thread(() => StartSendMail(Email, VerificationCode));

Threading C# ,

How to check which port is open on Remote Machine

22. January 2013

These two links below explains how we can use a utility called Portqry to determine whether a specific port or range of ports opened on Remote Machine or not .

1. http://www.speedguide.net/faq_in_q.php?qid=117

2. http://www.petri.co.il/quickly_find_remote_open_ports.htm

Utility , ,

Check whether your Processor Support SLAT for running Windows Phone 8 Emulator

21. January 2013

This is a good post which explains thoroughly how to check whether your processor support SLAT . 

http://www.howtogeek.com/73318/how-to-check-if-your-cpu-supports-second-level-address-translation-slat/

Windows Phone 8 Dev , ,

Using Vmware 8.0 as Virtual Machine server

12. January 2013

Its a very nice blog which explains how to set a VMware containing machine to act as server for VMware 8.0 . 

http://esense.be/33/2012/04/16/the-virtual-machine-sharing-service-is-not-available-in-vmware-workstation-8/

Hosting multiple site over single IP address using IIS 7

2. December 2012

Its a great blog where you can learn how to host multiple sites on a single IP - http://weblogs.asp.net/istofix/archive/2009/08/18/hosting-multiple-websites-applications-on-iis-part-1.aspx

IIS

How to host your own Web Server using your Desktop Machine with Dynamic IP Address using http://www.no-ip.com/

30. November 2012

The simplest process i came across while searching for a way to host my own website on my own server without getting in hassles of choosing web hosting service was www.no-ip.com

All you have to do is register for the free service there and you will get an email with the steps to follow with a client software which you have to install on your machine. After that you will have to configure your ADSL Router ( if you are using it to access internet ) to forward port number 80 to the ip address of your machine which is going to be a web server . And you are done now the client software you installed will automatically update the IP in DNS server of no-ip.com and you can access your site with

<your site name >.no-ip.org

this kind of domain is given when you use free package and there is also an option to pay and use your own domain but i haven't checked that yet . So enjoy and Host your site with a dynamic IP !

no-ip.com

How to Compare Schema or Data of two Database Created in MS SQL SERVER 2008 using Visual Studio 2010

30. November 2012

During my work i encounter this problem of different versions of Database one on my local development machine and one on my web hosting server . Now to check whether they are same or not i searched a bit and found a way to do so . 

All you need is a Visual Studio 2010 ultimate / Premium - you can check here which version can do this thing http://msdn.microsoft.com/en-us/library/dd193250.aspx

Steps you have to go through - 

1. Open the VS 2010 and add both the databases in Server Explorer under Data Connections . 

2. Right click on the primary DB you want to compare to with the secondary one and click on Compare Schema/Compare Data which ever you want to do . 

3. Next a new popup window will open and it will ask you to set the primary database and secondary database . Click OK after selecting appropriately . 

4. A new Tab will open and your schema/data will be compared with all the description as in what is equal and what is not . 

 

MSSQL 2008