I was working on some code that used Entity Framework and an ASP.NET WebAPI as the interface for accessing the data. With my experience so far, when I publish my WebAPI and then access it, the result is a JSON formatted file that I can open or save via a message popup similar to that […]
Read More →Archive for January, 2015
ASP.NET WebAPI results in a 405 Method Not Allowed HTTP response
I was working on an IoT project where my device was calling a WebAPI. I had two methods, one had the signature shown in Listing 1 and the other in Listing 2. UPDATE 6-JUN-2016, check here for some exception handling tips. Listing 1, GET employees [Route(“api/TC/{custId}”)] public IQueryable<EmployeeDTO> GetEmployees(string custId) { var db = […]
Read More →Helloworld WebJob on Microsoft Azure – Web App
I watched this Channel9 Video here and decided to reproduce it in writing. The steps required to create this sample HelloWorld WebJob for hosting with a Web App are: Create a Web Site and Console Application Include the Console App into the Web Site Deploy the Web Site to a Web App Execute the WebJob […]
Read More →Creating a Wi-Fi connection to my Lumia 640XL, with the Gadgeteer
My first Gadgeteer project I wrote about here used an Ethernet connection. However, this limited the mobility of my device and therefore wanted to configure the device to connect to a Wi-Fi network. I must mention that another coolness factor with this Wi-Fi project was I used the Wi-Fi internet sharing capability on my Microsoft […]
Read More →Troubleshoot a Web API Self Host performance problem
If you have not tried creating a Self-Hosted Web API, you might give it a shot, here is a good, getting started example. Once it gets into production, if you are looking for ways to troubleshoot a slow performing self-hosted Web API, searching for a W3WP process to take a memory dump of or applying […]
Read More →Passing Client IP to a server in the Web Farm using Application Request Router
When you setup a Web Farm using Application Request Router (ARR) the value for the c-ip written to the IIS log is the IP address of the ARR server and not the client or user IP address. Click on the Server Farm from within the IIS management console, then click on the Proxy link. As […]
Read More →Connection Timeout (Timeout Expired) on Azure Web App Site / Azure SQL
I not only support Azure Web Apps, formerly Azure Websites, but I use it too. I had a site that was getting the exception shown in Figure 1. The error was “Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in […]
Read More →Making changes to the applicationHost.config on Azure App Service
There are a few other resources about this here and here, but as experiences and changes happen, documenting and sharing different perspectives help move projects and people forward. Additionally, there is no better way to learn than by doing and no better way to remember than by documenting or writing it down. Here is an […]
Read More →Create an IoT Device Using the Gadgeteer with Azure Blob Storage
Please have a read of my article I wrote about an IoT device project I created. It was published in this month’s MSDN Magazine. Figure 1, MSDN Magazine Here is a picture of the actual Gadgeteer device. Figure 2, IoT Device
Read More →Application Request Routing (ARR) – self referencing itself 400 or 502.3
IMO the Application Request Routing server should be on a server which is not hosting the webFarm itself. The only reason I can think of wanting to do this is to save costs on resources, both hardware and support. I look at the documentation here and do not see any mention of this kind of […]
Read More →