Using Visual Studio 2012 Web Publish For Staging On The Internet


  Let’s say you have a production code like and you want to have a test site on the internet that will not be seen by anyone unless they login (or maybe even login as an admin).  Using web.config (with Visual Studio 2012), transformations makes that very straight forward.  I know because I just did that.  I created a test site (say: and set up my publish to replace my normal anonymous authentication (allowing anonymous users) to one that denies anonymous users.  Just as an aside, the reason I did this was I notice that google was indexing some of those pages even though my robots.txt file says to deny access to all robots.  Apparently … Continue Reading

Need To Get Static JSON File with POST verb on IIS 7.5?

Normally, when we stick a JSON file up on an IIS web server, all we have to do to get to is is to set the Mime type.  One easy way to do it is to add to your web.config the following:   <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true" /> <staticContent> <mimeMap fileExtension=".json" mimeType="application/json" /> </staticContent> ...   This works great as long as the GET verb is used (or just enter the on the url like So, what if you "need” to use the POST keyword.  Say for example, you can not … Continue Reading

SqlAzure and a Best Practices way to deal with the Required Retries on Connections

Introduction If you’ve started using SqlAzure for your SqlServer with your Azure application, you’ve probably discovered that you get a reasonable number of connection failures.  The advice from the Azure team is add retry logic to all your connections to SqlAzure. There is a long discussion posted by the Azure team here. The key paragraph states the problem as follows: The Problem One of the things that SQL Azure does to deliver high availability is it sometimes closes connections. SQL Azure does some pretty cool stuff under the covers to minimize the impact, but this is a key difference in SQL Azure development vs. SQL Server development. Basically, what this means is that you must be able to deal with connections … Continue Reading


Get every new post delivered to your Inbox

Join other followers: