首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Angular 7和IIS 7:切换到开发环境时出错

Angular 7和IIS 7:切换到开发环境时出错
EN

Stack Overflow用户
提问于 2019-07-24 18:17:17
回答 1查看 133关注 0票数 0

我的解决方案NET Core2.2中有一个Angular 7文件夹。当我在调试模式下运行Visual Studio 2017和IIS Express时,我可以查看网站并正确调用后端的代码API。因此,我选择了在launchSettings.json中设置的配置文件来发布发布,并在启动IIS后将"bin\ Release \netcoreapp2.2\ Publish“的内容复制到我的Windows Server文件夹中,例如http://localhost:8085/页面,错误如下:

代码语言:javascript
复制
Development Mode Swapping to the Development environment displays detailed information about the error that occurred.

The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.

我在web.config中设置:

代码语言:javascript
复制
environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production"

这怎么可能呢?提前感谢

EN

回答 1

Stack Overflow用户

发布于 2019-07-24 18:26:27

错误表明我们的应用程序有问题,错误页面上没有显示潜在的原因。如果您将.NET核心应用程序错误记录在文件中,请在那里查找详细的错误,它应该准确地告诉您我们的应用程序失败的原因。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57180555

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档