我已经开始开发一个新的应用程序,首先使用带有身份和EntityFrameworkCore代码的.netcore 3 Angular模板。我已经在应用程序本身上取得了很多进步,但是我不知道如何在Azure中运行它。我从应用程序服务复制了发布配置文件,并使用它进行了部署,但是它给了我500.30的错误。如果检查日志,则会得到以下问题引用的错误:IdentityServer4 not working in production。我创建了一个certificate.pfx,将其包含在我的项目中,并在我的appsettings中引用了它(就像在那个问题中一样)。现在,我得到了这个无用的错误块:
<Event>
<System>
<Provider Name="HttpPlatformHandler"/>
<EventID>2000</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2019-12-06T18:59:06Z"/>
<EventRecordID>1255681234</EventRecordID>
<Channel>Application</Channel>
<Computer>RD0003FFAEDAB7</Computer>
<Security/>
</System>
<EventData>
<Data>Change in global configuration [TID 8880] [PID 8692]</Data>
</EventData>
</Event>
<Event>
<System>
<Provider Name="HttpPlatformHandler"/>
<EventID>2000</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2019-12-06T18:59:06Z"/>
<EventRecordID>1255681281</EventRecordID>
<Channel>Application</Channel>
<Computer>RD0003FFAEDAB7</Computer>
<Security/>
</System>
<EventData>
<Data>Global configuration changed. Change path: MACHINE/WEBROOT/APPHOST/APPNAME, ApplicationManager: 0000018DB1F47170 [TID 8880] [PID 8692]</Data>
</EventData>
</Event>
<Event>
<System>
<Provider Name="HttpPlatformHandler"/>
<EventID>2000</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2019-12-06T18:59:06Z"/>
<EventRecordID>1255681343</EventRecordID>
<Channel>Application</Channel>
<Computer>RD0003FFAEDAB7</Computer>
<Security/>
</System>
<EventData>
<Data>Recycling application MACHINE/WEBROOT/APPHOST/APPNAME [TID 8880] [PID 8692]</Data>
</EventData>
</Event>
<Event>
<System>
<Provider Name="IIS AspNetCore Module V2"/>
<EventID>1032</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2019-12-06T18:59:52Z"/>
<EventRecordID>1255727296</EventRecordID>
<Channel>Application</Channel>
<Computer>RD0003FFAEDAB7</Computer>
<Security/>
</System>
<EventData>
<Data>Application 'D:\home\site\wwwroot\' started successfully.</Data>
<Data>Process Id: 8692.</Data>
<Data>File Version: 13.0.19309.1. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 22dedcb2f0de59022e0383e1f05c9caffc708522</Data>
</EventData>
</Event>
我尝试以win-x86,win-x64为目标进行部署,并且将部署模式设置为独立且依赖于框架。
在Azure门户中,我已将Stack设置为.NET Core,平台设置为64位。
是否有任何文档可引导您完成部署此新版本的.net的过程,包括如何为IdentityServer设置证书?