Windows XP Browser not opening Microsoft or Antivirus Sites


If you are using windows xp and you face the problem that whenever you open microsoft or some specific antivirus site, the browser just doesn’t open it. Well, thats probably because of the windows cd that you used or downloaded is pirated and they do not want you to go into that sites.

There is a solution for this problem, but its not permanent. To be able to browse those sites, just go to services and restart the service named ‘DNS Client’ and voila! you are in.

Actually when your system boots, DNS Client is called automatically with some parameters to stop you from browsing those sites. Restarting it resets them and you are free to visit any site.

Now, if you are smarter than more of us, then use an auto executable batch to run after each boot, but make sure it is the last batch ran.

WCF Web Service – Enabling JSON – Solution 1


The main reason I am posting this really simple post only because, even though it is simple, it wasted a lot of time for me. There are several ways to enable JSON request and response for WCF web service. But the easiest I think is this one

1. Just select AJAX Enabled Web Service from the add new item window if you are using Visual Studio ( I used VS2010). By default this will talk to the clients with JSON. There you go.

2. But, If you really want to know whats the difference between AJAX Enabled Web Service and WCF Web Service, open the new added AJAX Enabled Web Service. Just over the class declaration you will notice a line that says –

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]

The second line is the main reason. It enabled the service to allow JSON type messaging from a client.

Now, I know this is not the only solution, you can also enable JSON response/request in a WCF Service, but I have not really tested that case, will post as soon I am done…

If this is found helpful, don’t forget to leave a comment, thanks.