I have a strange problem for which I can't find a solution.

Currently we have a development Server (running a normal Azure Virtual Machine) and a production Server running a Web Role in Azure Cloud Services.

For the Web Role we need to add the "RoleEntrPoint" class.

But as soon this class is present, the Web Api on a normal VM on development server with IIS 8 returns a "404" for all routes.

This problem is similar to: http://jake.ginnivan.net/web-api-problem-404s-for-everything/ (As a side note, opposed to the blog post I'm not using EntityFramework. We just added the RoleEntryPoint class and copy local for Microsoft.WindowsAzure.ServiceRuntime is true)

But I can't find a solution or catch any errors thrown.

Do you have any ideas on this?

Related posts

Recent Viewed