ASP.Net API running on Windows Azure websites
===

I have an MVC project in Visual Studio 2012 RC which hosts an MVC web site and an ASP.NET API.  I use routes to delegate the request to the correct controller.

On my local development machine both the website and api work fine.  However when I push the change to Azure websites the website works, but the ASP.NET web api returns HTTP 500 errors.

The base site is: http://salaahtime.azurewebsites.net
One of the web site pages is http://salaahtime.azurewebsites.net/website/login

An example use of the API is http://salaahtime.azurewebsites.net/api/salaahtime/testestablishment/2012/1

However this returns HTTP 500.

I have

 - Updated my project to use .net 4.0.  By default it is set to .net 4.5 which does not work with Azure websites
- Removed Entity Framework 5.0 reference which only works with .net 4.5

Any ideas why the api would not work in Azure websites?