发布我的第一个Web应用程序后失败

问题描述:

开发模式

交换到开发环境将显示有关该更多详细信息发生错误。

Development Mode
Swapping to Development environment will display more detailed information about the error that occurred.

我已经谷歌了几个小时但没有运气,甚至添加了ASPNETCORE_ENVIRONMENT开发参数"应用程序设置(经典)"。并且还在"web deploy.pubxml"中添加了

以下设置。也没有运气。

PreserveCompilationContext true / PreserveCompilationContext

MvcRazorExcludeRefAssembliesFromPublish false / MvcRazorExcludeRefAssembliesFromPublish

MvcRazorCompileOnPublish true / MvcRazorCompileOnPublish

i have been google some hours but no luck, even added ASPNETCORE_ENVIRONMENT Development parameter in "Application settings (Classic)". and also
added below setting in "web deploy.pubxml" also no luck.
PreserveCompilationContext true /PreserveCompilationContext
MvcRazorExcludeRefAssembliesFromPublish false /MvcRazorExcludeRefAssembliesFromPublish
MvcRazorCompileOnPublish true /MvcRazorCompileOnPublish

有人可以帮忙吗?

这里是我的链接
http:// zebraline.azurewebsites.net/

我设法包含了enviromentVariable,这提示我另一个错误。 (请参阅图片附件)。

实际上我的实验非常简单,它只是创建一个新的aspnet应用程序,没有任何单一的更改,并使用VisualStudio将应用程序发布到azure的
,但它看起来不像我这么容易预期。


感谢有人可以帮助排序这个还包括未来版本中的那些修复,这可以使开发人员为azure部署提供更好的用户体验。

谢谢。

XJYian

您使用的.NETcore版本是什么?此外,解决方案是否在本地工作?

What is the .NETcore version you are using? Also, does the solution work locally?