Answered map.Routes and Azure

  • Friday, April 27, 2012 11:56 PM
     
      Has Code

    I was testing something locally and it worked fine. I then deployed a package to Azure.

    I built the package by right clicking and went to Package. Everything was fine. I setup two staging servers to test with.

    During my tests some of the routes didn't work.

                routes.MapRoute(
                    "GetExtension", // Route name
                    "GetExtension.js",
                    new { controller = "Extension", action = "GetExtension" });

    This works fine locally, but on Azure it thinks the view Views/Extension/GetExtension.cshtml doesn't exist. Any reason why this would break? I know views are packaged individually, but why would it not be included? How can I check if it isn't?

    Thank you!

All Replies

  • Saturday, April 28, 2012 5:51 PM
     
     Answered
    I just recreated the view it seemed to fix it. It wasn't packaging with Azure for some odd reason.
    • Marked As Answer by hyp3r Saturday, April 28, 2012 5:51 PM
    •