Once you have uploaded your SSL certificates to your Azure App Service and then configured the bindings (if you are using your own custom domains), there are two ways to force ALL requests to be redirected from HTTP to HTTPS. The ‘Developer way‘ and the ‘Easy, no code way‘! Continue reading “Azure App Service – Force redirect from HTTP to HTTPS the easy way!”
There are currently a few hurdles to getting the very useful AddThis.net version 5 extension going on BlogEngine.net version 2.5 or later. I have consolidated the steps here.
There are a few ways of getting an extension added to a BlogEngine.Net project. I decided to use the NuGet approach. If you haven’t got this Visual Studio extension installed yet…do it now! see my earlier blog How to easily add open source libraries to net projects using NuGet).
First Configure NuGet
- Right-click on your web project and select ‘Manage NuGet Packages…’
- This will display the NuGet Manager. Click on the ‘Settings’ button at the bottom left.
- This opens the Visual Studio Option dialog. Make sure that ‘Package Sources’ is selected in the tree on the left.
- Enter the following and click the ‘Add’ button and then ‘OK’ on the Options dialog to close and save the new settings.
- You should now see the new BlogEngine.Net extensions library list under the ‘Online’ section. If necessary close the NuGet Manager and re-open it from the projects shortcut menu again.
- Simply select the extension you like and click ‘Install’. Nice an easy!
Second – Fix the project!
You will now try and rebuild your project to find that a whole load of failures occur.
This is easily fixed.
You will need to add the following reference to /App_Code/Extensions/AddThis.cs and pretty much every file under /App_Code/Extensions/BookmarkButtons, but the errors panel will give you the list of issues.
Then rebuild and voila…hopefully no errors!
I have just come across one of the best Visual Studio extensions called NuGet (http://nuget.org/).
The easiest way to get going is to add it to Visual Studio using the ‘Extension Manager’ which you will find under the ‘Tools’ menu. It’s called ‘NuGet Package Manager’.
Once installed, it is simplicity itself to add a reference and download the binaries, dependencies and code for a useful library (such as MVVM Light or jQuery).
- Right-click on the references folder in your solution.
- Select ‘Manage NuGet Packages…’
- and voila…search for new libraries or check for updates. If NuGet finds any updates then you will get an alert when VS2010 starts.
Potential TFS connection Problem TF30063
There is one fly in this ointment that took me a little time to resolve. A bug in NuGet can force the connection to your TFS server to be dropped. The only way out is to restart Visual Studio. the solution to this turns out to be extremely trivial.
All you need to do is add your TFS server URL to the Intranet security group in Internet Explorer!
The credit for resolving this must go to the very brilliant effort by Miha Markic. See his blog about it at http://blog.rthand.com/post/2011/08/26/Fixing-combination-of-NuGet-and-Team-Foundation-in-workgroup-configuration-401-Unauthorized.aspx