我的解决方案NET Core2.2中有一个Angular 7文件夹。当我在调试模式下运行Visual Studio 2017和IIS Express时,我可以查看网站并正确调用后端的代码API。因此,我选择了在launchSettings.json中设置的配置文件来发布发布,并在启动IIS后将"bin\ Release \netcoreapp2.2\ Publish“的内容复制到我的Windows Server文件夹中,例如http://localhost:8085/页面,错误如下:
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中设置:
environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production"这怎么可能呢?提前感谢
发布于 2019-07-24 18:26:27
错误表明我们的应用程序有问题,错误页面上没有显示潜在的原因。如果您将.NET核心应用程序错误记录在文件中,请在那里查找详细的错误,它应该准确地告诉您我们的应用程序失败的原因。
https://stackoverflow.com/questions/57180555
复制相似问题