Author Archives: chadit

How to Fix “No ‘Access-Control-Allow-Origin’ header” in ASP.NET WebAPI

I am not 100% sure what Google did to Chromium in Update 42.  However after that update landed I started to get reports of our Angularjs application started to have problems communicating with our ASP.NET WebAPI.  We started getting errors … Continue reading

Posted in ASP.NET, C#, Web | Tagged | Leave a comment

Remove the Microsoft GitProvider from Visual Studio 2013

If you are like me and use a different git tool that operates outside Visual Studio or as an extension or your frankly tired of the performance hit that this provider causes.  Of course the default solution of setting source … Continue reading

Posted in Source Control, Visual Studio | Tagged , , | 4 Comments

Order the controllers in ASP.NET WebAPI Help

Recently I started a new API project for my company.  With this project I decided to give the Help files generator that Microsoft created a try.  Overall it looks like it will meet the needs of the project.  Today however … Continue reading

Posted in ASP.NET, C# | Tagged | 4 Comments

Windows 8 How to add Open PowerShell Here to Context menu

I use git-tfs and poshgit on windows.  So when I need to do a check-in I need to open PowerShell, navigate to the location of the project and so on and so forth.  That can get tedious at times, similarly … Continue reading

Posted in Windows | Tagged , | Leave a comment

Split a PCM Stereo into multiple mono files by channel

For this you can read and write the data streams as you like, to keep things simple I am using NAudio.  This should negate the need to write custom stream readers/writers to get channel/header information.  First thing we need to … Continue reading

Posted in C# | Tagged | Leave a comment

BugAid is now OzCode and improved

Back in September 2012 I wrote an article BugAid – C# Visual Studio Debugging made easier . BugAid’s co-founder Omer Reviv has joined forces with CodeValue to produce OzCode.  Base product wise it does everything BugAid did before (read the … Continue reading

Posted in Debug | Tagged , | Leave a comment

Move the folder location of Windows Live Writer

For blogging there are a slew of tools and when you find one that works well for you, you tend to stick with it.  For me that tool was Windows Live Writer which is included as part of the windows … Continue reading

Posted in social | Tagged | Leave a comment

How to Unit Test a Private/Protected Method with MSTEST

Note: these steps work for both private and protected methods Search online or post this question on Stack Overflow and guess what you will get in response most of the time.   Don’t do it, I repeat Do not unit test … Continue reading

Posted in C# | Tagged | Leave a comment

Older Web applications and the challenge of IE 10+

As the market share of Internet Explorer 10 increases along with the looming release of Internet Explorer 11 a growing number of web developers are realizing that Microsoft in their great wisdom (I am not against it, just wish there … Continue reading

Posted in Browser, Web | Tagged | 2 Comments

Battle of the INotifyPropertyChanged techniques

Recently at a conference I was given the opportunity to talk about Aspect Orientated programming with PostSharp.  In my demo I showed off the difference between creating an INotifyPropertyChanged class manually, using boilerplate code generated by Resharper, and using smart … Continue reading

Posted in C#, PostSharp | Tagged , , | 1 Comment