Author Tim StanleyTim Stanley

Building an Azure Dev Test Lab - Why Azure

Jan 10, 2023 EST

This is part of a series on Building An Azure Dev Test Lab.

What is Azure and why use it?More...

Migrating to .Net7

Nov 17, 2022 EST

On November 8, 2022, Microsoft released .Net 7.  After getting Visual Studio Professional 17.4 installed, updating to .Net 7 was fairly painless. More...

Building an Azure Dev Test Lab Series

Sep 17, 2022 EST

Microsoft has a very large quantity of documentation on Azure. But most of those articles are focused on new large-scale production scenarios or migrating existing production scenarios to Azure. For a software development firm that is looking only to leverage Azure for software development and testing, and not expose public web services to the internet, where does one start?

The Microsoft documentation that I've read leads one to believe that it's a simple as just creating an Azure VM or an Azure Web service and you're done. The reality is there is much more infrastructure required to do that. This series attempts to put together a roadmap or summary of some solutions aimed solely toward software development for Enterprise services and applications. You may find it helpful for preparing your Azure migration or if you have some services in Azure extending it.More...

Migrating To .Net6 and Azure

Sep 02, 2022 EST

In 2022, I decided to make a significant update the the code base and hosting platform used by this site.  I decided to migrate to .Net 6 and host it on Azure.More...

2010 Era Blog Platform Retired

Sep 01, 2022 EST

This site (tim-stanley.com) was first started in February 2006. It first went publicly live October 8, 2007.  The engine used to power this site was used from 2006 to 2022. The main technology really hadn't been modified since 2010. Not bad for a sixteen year run.

In 2022, this site was updated, but this is a summary of the underlying technology that powered this site for sixteen years.More...

Use HostingEnvironment.MapPath

Jun 25, 2010 EST

When running a service under IIS, the HttpContext.Current object is not available, so HttpContext.Current.Server.MapPath will fail.

fileName = HttpContext.Current.Server.MapPath(fileName);

The solution is to use Hosting.HostingEnvironment.MapPath instead.

fileName = System.Web.Hosting.HostingEnvironment.MapPath(fileName);

Custom Controls In ASP.NET

Feb 26, 2010 EST

ASP.net has that neat little feature where all the controls can start with <asp:.  It makes it easy to code.  I had numerous custom controls and I always had to register the control on each page to use it.  Scott Guthrie had a great tip on how to register the controls in the web.config file so that it doesn’t have to be done in each page.More...