ASP.NET MVC托管到Azure
我是ASP.NET MVC应用程序的新手,当我托管Microsoft Azure App Service应用程序时,我遇到了问题。
我已经在Azure上托管了该应用程序罚款,并且可以加载索引文件罚款,但是一旦输入登录详细信息,它就会给我一个错误404:验证消息(请参阅附加的屏幕截图)。
我做到了但是请注意,当我在本地计算机上运行索引页面时,应用程序运行良好,但是当我选择其他任何页面并在本地计算机上运行该应用程序时,我会收到与上述相同的错误。
有人可以协助并帮助我找出一种在Azure上托管该应用程序的方法,以便首先选择索引页面并打开索引页面?
NB。在RouteConfig文件中,控制器设置为“ HOME”,操作设置为“索引”
I am fairly new to ASP.NET MVC Application and I have encountered a problem when I'm hosting the application to Microsoft Azure App Service.
I have hosted the application fine on Azure and it loads the index file fine but as soon as I enter my log-in details, it gives me an error 404: Verify message(Please see screenshots attached).
Error message received after trying to log in screenshot
I did however notice that when I run the index page on my local machine locally, the application runs fine but when I select any other page and run the application locally on my local machine, I receive the same error as above.
Can someone please assist and help me figure out a way to host the application on Azure so that the index page is selected first and opens the index page?
NB. in the routeconfig file, the controller is set to "Home" and action is set to "Index"
Screenshot 1 of HomeController
Screenshot 2 of HomeController
Screenshot 3 of HomeController
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论