[英]Publishing an Asp.Net Mvc,Web Api Application to Windows Azure
I published my Asp.Net Mvc5 application to Windows Azure by following below described procedure. 我按照以下说明的过程将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
3. Then I specified Settings here is settings screenshot
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.
But When i browse the url i get following error. 但是,当我浏览网址时,出现以下错误。
Kindly tell me what step i am missing However I have proper setting in App_Start Route Config which is my Home Controller and its Index Action. 请告诉我我缺少什么步骤,但是我在App_Start Route Config中进行了适当的设置,这是我的家庭控制器及其索引动作。
Thanks in Advance 提前致谢
Did you try to publish it direct into azure ? 您是否尝试将其直接发布为天蓝色?
Its been quite a while when I published my last asp application to azure but if I remember right I published it direct to the staging environment via visual studio. 当我将我的最后一个ASP应用程序发布到Azure时已经有一段时间了,但是如果我没记错的话,我会通过Visual Studio将它直接发布到暂存环境。 May you can try it this way.
愿你可以这样尝试。 I don't know if there is a difference.. but that way worked for me ...
我不知道是否有区别..但是这种方式对我有用...
If you use external resource ensure that they are in your package.. -> Deployment Type 如果您使用外部资源,请确保它们在您的软件包中。->部署类型
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.