ASP.NET MVC 4 and web API in Azure - HTTP resource not found

Using Visual Studio 2012, I created a simple Windows Azure project (cloud project) for which there is an ASP.NET MVC 4 website. I have not changed anything to the template, and I'm just trying to deploy it using the Azure Website . I imported the “publishing profile” from Windows Azure Dashboard into my project and deployed (using Visual Studio).

At the very end of the deployment process, I get the following message: "could not open" http://mysite.azurewebsite.net. Exception: the class is not registered. "I can click" OK "in this dialog box. Any idea why I see this message?

When I look at the output window, I see that the deployment is complete. I use the URL of the web API and I get an “HTTP resource not found that matches the request URI” “http://mysite.azurewebsites.net/api/values.” What puzzles me is that I can access the same URL in my local environment.

What am I missing? Thanks!

+2
source share
3 answers

I could access using my Azure website using ASP.NET web API. If you use the default MVC web API template, refer to "http: // [yoursite] .azurewebsites.net / api / Values ​​/".

My environment is lower. - Visual Studio 2012 - ASP.NET MVC4

0
source

You do not need to create a cloud project to use Azure websites. You can simply create an MVC application and then use git deploy or even FTP to direct the site to Azure

0
source

Make sure you include the latest WindowsAzure-related assemblers in your project.

Microsoft.WindowsAzure.Diagnostics 2.0 (and not 1.8) Microsoft.WindowsAzure.ServiceRuntime 2.0 (and not 1.8) 
0
source

All Articles