开发模式切换到开发环境 [英] Development Mode Swapping to Development environment

查看:165
本文介绍了开发模式切换到开发环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发布到Azure时出现开发模式-交换到开发环境...错误消息.我可以发布到IIS并运行整个Core Web App(包括窗体),而不会出现错误,但是当我发布到Azure时,仅显示纯HTML页面 在应用程序工作中,单击带有表单/数据库链接的任何页面都将返回开发模式错误.我已经将所有ASPNETCORE设置调整为开发",并将Web.Config文件添加到了项目根目录,但是没有任何解决方案可以解决此问题. 它也可以在Google Cloud中复制.有任何建议吗?

I am getting the Development Mode - Swapping to Development environment...error message when I publish to Azure. I can publish to IIS and run the entire Core Web App (forms included) without error but when I publish to Azure only the plain HTML pages in the app work, clicking on any pages with forms / db links returns the Development Mode error. I've adjusted all the ASPNETCORE settings to Development and added a Web.Config file with the same to the project root directory but nothing resolves this problem. It duplicates in Google Cloud too. Any suggestions?

推荐答案

为澄清您的说法,您已导航到Web应用程序的应用程序设置"刀片并定义了

To clarify your statement, you have navigated to the 'application settings' blade of your web app and defined 

键:价值:发展

作为变量,对吗?


这篇关于开发模式切换到开发环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆