将Asp.Net Mvc,Web Api应用程序发布到Windows Azure

时间:2014-09-08 06:52:43

标签: c# azure asp.net-web-api asp.net-mvc-5

我通过以下描述的程序将我的Asp.Net Mvc5应用程序发布到Windows Azure。

1.  Right Click at project and select Publish
2.  I selected File System and have given it location and Published the application 
    Here is Screen Shot

enter image description here

3.  Then I specified Settings here is settings screenshot

enter image description here

4.  Then I published it and it got published to my local system without any errors.![enter image description here][3]


5.  I uploaded to Windows Azure via FileZilla using FTP.
    Uploading was also successfull.
  1. 但是当我浏览网址时,我得到以下错误。 enter image description here

    请告诉我我缺少哪一步但是我在App_Start Route Config中有适当的设置,这是我的家庭控制器及其索引操作。

  2. 先谢谢

1 个答案:

答案 0 :(得分:0)

您是否尝试将其直接发布到azure?

当我将我的最后一个asp应用程序发布到azure时已经有一段时间了,但是如果我没记错的话,我通过visual studio将它直接发布到了临时环境中。愿你这样试试吧。我不知道是否有区别......但那种方式对我有用......

如果您使用外部资源,请确保它们在您的包中.. - >部署类型