• News & Events

    Keep up with the latest and greatest news, events and knowledge from the Magnetism team.

Jared Johnson Blog





  • 17 May

    Preventing Windows Azure Subscriptions from being disabled due to reaching spending limit


    Last month we had our Sitefinity site on Azure go completely down. On checking the Azure management portal, we found that not only was the subscription disabled but our deployment had been deleted!

    Preventing Windows Azure Subscriptions from being disabled due to reaching spending limit

    It turns out that the spending limit had not been disabled on the subscription we were using, so once we went over that limit instead of charging to the attached credit card it disabled the subscription. Unfortunately when a subscription is disabled all hosted services under that subscription are deleted, meaning our site was down for about an hour while they were re-uploading (other components under the ...

    Read full post
  • 10 May

    Enabling HTTP compression in a Sitefinity website running on Windows Azure


    Sitefinity websites can contain a large amount of JavaScript files, possibly up to a megabyte. Thus enabling HTTP compression can significantly increase the performance of your website.

     Enabling HTTP compression in a Sitefinity website running on Windows Azure 

    YSlow stats of a Sitefinity page with a lot of JavaScript.

    To enable HTTP compression first add this under system.webServer in the web.config

    <urlCompression
          doDynamicCompression="true"
          dynamicCompressionBeforeCache="true" />
           <httpCompression
                 cacheControlHeader="max-age=86400"
              noCompressionForHttp10="false"
              noCompressionForProxies="false"
              sendCacheHeaders="true"
              minFileSizeForComp="1" />

    Then this in the ServiceDefinition.csdef file under the Webrole

    <Startup>
           ...
    Read full post
  • 24 Apr

    Telerik RadCaptcha in Windows Azure using Windows Azure Caching


    After migrating a Sitefinity site that was using Telerik’s RadCaptcha to Azure, I noticed that occasionally the captcha just displayed a grey box. This was because by default the captcha image is stored in the server cache, but with multiple instances in Azure the server the browser is connected to could be switched out at any time to a server that doesn’t have the image in its cache.

     Telerik RadCaptcha in Windows Azure using Windows Azure Caching

    To fix this the RadCaptcha can be configured to store the image in the session instead. To set this change the ImageStorageLocation property to “Session”  ie ImageStorageLocation=”Session” in the XAML for ...

    Read full post