Using Group Policy Editor to enable or disable desktop backgrounds

System administrators are known to be hard heads when it comes to corporate computer personalization. Locking down desktop backgrounds is one of the most common tasks that administrators perform. If you have elevated privileges on your computer there is an easy way to get around this. Open the Group Policy Editor, by typing gpedit.msc in Run …

Read More Using Group Policy Editor to enable or disable desktop backgrounds

HTTP GETs with HttpWebRequest,WebClient and HTTPClient

The .NET framework offers you three different classes to consume REST API’s. HttpWebRequest,WebClient, HttpClient. A lot of developers get confused trying to determine which class is the best to use. (Thus the numerous questions on Stack overflow)   In order to understand the differences between the 3 classes let’s walk through a simple example of validating …

Read More HTTP GETs with HttpWebRequest,WebClient and HTTPClient

VS Extension of the day : CodeMaid

Working with poorly written long code files can be a pain. It’s especially painfully when you’re either attempting to track down a bug or introduce a new feature. In comes CodeMaid! Let’s be practical. CodeMaid will not automatiacally fix bugs for you, neither will it write features for you. It will however, help you navigate through your …

Read More VS Extension of the day : CodeMaid

Bulk upload into SQL Server using SQLBulkCopy – Part 2

In Part 1 of this series, we looked at the basics of how the SQLBulkCopy class works. It’s time to setup our situation drill & dig into some real code. Situation Drill: You’ve just been hired as the lead developer on a short-term project for a mulitnational retail cooperation. Your manager wants a reporting application …

Read More Bulk upload into SQL Server using SQLBulkCopy – Part 2

Bulk upload into SQL Server using SQLBulkCopy – Part 1

Uploading large files can be made easier with the help of SQLBulkCopy. SQLBulkcopy is a simple and easy to use tool for transferring complicated or simple data from one data store to another.  This article will look primarily at the two main ways (via Datatable & IDataReader) of uploading a large data source into SQLServer. How …

Read More Bulk upload into SQL Server using SQLBulkCopy – Part 1

How to fix “The VPN Client Driver has Encountered an Error” in windows 8

Disclaimer : Do this at you own risk. Be sure to back up your registry before attempting this on your system. Due to compatibility problems, users may experiences errors when trying to establish a connection with the Cisco AnyConnect client on Windows 8. Upon trying to connect, they may get an error such as “The …

Read More How to fix “The VPN Client Driver has Encountered an Error” in windows 8

IIS 7 taking over 400 error message from Web API

Recently I’ve run into a problem on one of our staging servers, where the custom error result from an API endpoint  returns IIS error pages instead of the custom error content generated in code (In this case a Json object). Overview So essentially our front end application accepts an SMS number and POSTS the accepted …

Read More IIS 7 taking over 400 error message from Web API

Reading web.config key settings in HTML markup

In order for html pages to recognize settings from our web.config we’ll need to tell IIS to treat .html files as dynamic pages This can be done by the following: ….<system.web> <compilation …> <buildProviders> <add extension=”.html” type=”System.Web.Compilation.PageBuildProvider” /> </buildProviders> …. and ….<system.webServer> <handlers> <remove name=”WebServiceHandlerFactory-Integrated” /> <add name=”PageHandlerFactory-Integrated-HTML” path=”*.html” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.UI.PageHandlerFactory” resourceType=”Unspecified” preCondition=”integratedMode” /> </handlers>…. You can …

Read More Reading web.config key settings in HTML markup