Milan Nankov – Blog

Azure Mobile Services – Configuring The OWIN Pipeline 2014/08/30

At some point you might need to plug into or configure the OWIN pipeline that is used by Azure Mobile Service. The purpose of this post is to demonstrate 3 ways to achive this. Let’s get started.

The 3 ways that we are going to look at today are:

  1. StartupOwinAppBuilder.Initialize()
  2. Using a custom IOwinAppBuilder
  3. Using a IOwinAppBuilderExtension

Read more…

Comments (0)

Azure Mobile Services – Drop or Create Database 2014/07/07

When you are initially building an app or you are simply experimenting you find yourself in a situation where the database schema is updated quite frequently. If you are familiar with Entity Framework Code First you know that you can use DropCreateDatabaseIfModelChanges or DropCreateDatabaseAlways initializers to help you with keeping your schema updated. When you are using Azure Mobile Services those initializers will not work because your mobile service does not have permissions to drop the database. If you try to use DropCreateDatabaseIfModelChanges or DropCreateDatabaseAlways you will get an error similar to this:

“This operation requires a connection to the ‘master’ database. Unable to create a connection to the ‘master’ database because the original database connection has been opened and credentials have been removed from the connection string…”

The latest set of updates to Azure Mobile Services introduced two new initializers (ClearDatabaseSchemaIfModelChanges and ClearDatabaseSchemaAlways) that resolve this issue. As their names suggest, those initializers will only modify the database objects within a particular schema instead of modifying the whole database. More information about the latest update can be found here. Keep in mind that those initializers are suitable for the early stages of app development where you do not have to preserve existing data.


Comments (0)

Check out one of our apps – Elite Interval Training for Windows Phone 2014/06/26

One of the in-house projects that I am working on @ New Venture Software in a fitness app called Elite Interval Training. The purpose of the app is to help you create, organize and execute your interval training workouts with ease. If you are into interval training you should definitely check this app out.


The app is currently available for Windows Phone only. We are also running a blog about interval training which you might find interesting – Elite Interval Training Blog.

Comments (0)
Categories: Technology

Using Less with Sublime 2 on Windows 2014/05/29


Less is awesome. If you haven’t tried it you can check it out here. I have been using it for some time now and it does really help you write more maintainable and extendable CSS.

I am also using Sublime Text 2 for most of my projects. Although Sublime comes with built-in package for compiling Less on Windows called dotless it might not be sufficient for your needs. Dotless is out of date and does not support the latest Less features. For example, if you try to compile Bootstrap 3.1 with it you will get errors.

The solution that follows allows you to work with the latest Less features using Noje.js for Windows. It is really easy.

Read more…

Comments (0)
Categories: Technology

IIS Basic Authentication and Web Applications – Resolving Error 404 2013/12/05

I was trying to set up a very basic form of authentication on Internet Information Services the other day and I stumbled upon a problem that I could not resolve for quite some time. As usual, when you are stuck on something as basic as this, the solution is trivial.


THE TASK – Protect a site with the most basic form of authentication (Basic Authentication on IIS) where the user is presented with a form where he enters a predefined username and a password.

THE PROBLEM – As soon as I turned basic authentication on, I started getting “HTTP Error 404.15 – Not Found”.

THE REVELATION – It turned out that my web application was overriding the authentication method which ultimately resulted in the aforementioned error. Be careful with that especially if you are deploying a test app which was built using one of the Visual Studio templates that usually have authentication built in.

THE SOLUTION – Since I was dealing with a MVC application, I just commented the method ConfigureAuth in Sartup.cs and the problem was resolved.


Realizing what caused me so much trouble was embarrassing at best but I hope that this post can help some other lost soul.


Comments (0)