Milan Nankov – Blog

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)

Response to Unsound documentary 2013/10/04

Just finished watching the trailer of Unsound – a documentary about the horrific state of the music industry. If you haven’t seen the trailer you can find it here.

I simply could not resist writing down how I feel about this topic. I write this from the perspective of a consumer, an enthusiast DJ, and all-around music lover.

While I do agree with some of the points that the presenters are making, I believe that the whole premise of the documentary is wrong. Music makers have to finally realize that the world is different now and they are the ones that have to adjust. People want to have instant access to the music that they love. I do not want to wait 2 week for a shipment so that I can enjoy some music. I want to be able to find and buy music as quickly as possible. I want to have options. I want to be able to choose the format and the quality of the music I purchase. I do not want to be forced to buy whole album if I only like one particular song. I believe that people want to buy music but the music industry is not offering the options that most people would like to have.

Mentioning Napster in 2013 is insanity. Napster was born 14 years ago… 14 years. I have a question for the people that have created and participated in this movie. Have you been living under a rock for the past 14 years? What did you do to help the consumer find and buy your music? Probably nothing.

We live in a global world now where many more bands and musicians are competing for attention. The ones that embrace new technologies, new ways of reaching out to customers, and understand that they are the ones that need to adjust will be the ones that survive. Look at Beatport and Juno Download. If it wasn’t for those sites I would be getting most of the music that I dj with illegally. Those sites help me find new artists and buy their music. They provide me with the options that I want. There are so many new ways to get support from your fans. Look at how many artists have been able to start working on new projects by using Pleadge Music. The digital age might have shut one door down but it has opened many more.

Gone are the days of the rock starts that can sell millions of records simply by showing on MTV. Guess what? I will be buying the new album of an unknown rock band that I have just found on SoundCloud.

I know that there are many issues with the current state of the digital age but the old days are not coming back.

What do you think?

Comments (1)
Tags: Categories: Music Ramblings