Name Collisions with Asp.Net Webapi and How to Avoid

I love the simplicity of using ASP.NET WebAPI for building simple web rest services.  No special calls to create JSON, simple REST conventions implemented with the methods GET,POST,PUT and DELETE and very straight forward interfaces. The thing that annoys me is the naming convention.  In my case, I’ve create a folder /rest on my web server and I put all my WebAPI controllers there.  An example of a controller looks as follows: [crayon-54f2cc391c87c776513155/]   The problems comes up when you decide you want to have a different FAQ controller for different parts of the web site.  The obvious solution is to drop the REST services into sub directories.  Unfortunately, since the class name above does not … Continue Reading

Visual Studio 2015 Nasty Scroll Problem

It just happened to me again.  I accidentally moved a file in my Visual Studio solution that I had not intention of moving.  I think I’ve narrowed down what my user error is that causes this but still, I know this happens to a lot of people besides me so I thought I’d file a connect bug with the hopes that Microsoft fixes it. Here is the URL of the connect bug.  Please go and vote for it! https://connect.microsoft.com/VisualStudio/feedback/details/1110209 Here is what I actually posted: I'm labeling this as a bug because it happens so often and often with large consequences.  Today, I finally spend some time and nailed down what actually causes it. Here is the scenario: 1.  Go to scroll bar of Solution … Continue Reading

Debugging SendGrid’s Parsing Incoming Messages

image.png

SendGrid has a nice feature available to it’s Silver Level Subscribers and above (currently $79/month) that let’s you have incoming message to a domain parsed and forwarded through a web service.  This is great if it works but if it does not debugging is tricky because the web service is running on your production server. Here are some steps to debug the service. Go to the URL:  http://requestb.in/ and then use the URL given to you as the email forwarding URL inside of the SendGrid Control panel. Then, send an email to your domain you want to parse (siliconvalley-codecamp.net in my case). Head back to the requestdb.in page and look at the request. Copy the headers into the fiddler compose request page, then the body … Continue Reading

Google Chrome Extension Clear Cache, My Pick!

image.png

I’ve been listening to the podcast recently Adventures in Angular and in particular the “Podcaster Picks” at the end of each podcast.  At first I thought this was pretty silly but have been surprised that many of the picks I did not know about and have been quite useful.  So, in the Holiday spirit of giving, here is my pick for the day. Clear Cache from Benjamoin Bojko Motivation For Needing this I’ve been doing a lot of JavaScript programming for the past couple years and Chrome Dev Tools is my debugger of choice.  It’s amazing easy to clear cache which is something I do quite often.  To be clear, all I have to do is:  1) Tools Pull down then 2) select “clear cache” and finally 3) select the URL in the browser … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: