Publishing Just Your JavaScript Folder With Visual Studio

image.png

Who would have guessed.  With Visual Studio you can right click on any folder in your web project and say publish.  You can see me doing that right here below. For years, I’ve struggled with how to just get certain files to an IIS web site.  The things that I have used (that all have issues) are: Robocopy (only works if you can have a vpn network drive) rsync (causes permissions problems and various other nasties) ftp (has trouble syncing and the root folder is never where you want it Now, I can skip all that assuming I’m using visual studio (which I usually am). I get the nice success window quickly as follows And that is all there is to it. … Continue Reading

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-55361cdd95123539334268/]   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

Follow

Get every new post delivered to your Inbox

Join other followers: