Azure bot app hosting startup assembly exception #3861
Description
What project is affected?
My team is working on a POC project that involves Azure bot, and ACS services. Here is my bot details,
What language is this in?
net core 3.1 C#
What happens?
Once i deploy the bot code to an appService, I see the hosting startup exception randomly. At times, after sometime , the goes away and app starts working automatically without any action from my end.
What are the steps to reproduce this issue?
random
What were you expecting to happen?
Can you share any logs, error output, etc.?
ategory: Microsoft.AspNetCore.Hosting.Diagnostics
EventId: 11
Hosting startup assembly exception
Exception:
System.InvalidOperationException: Startup assembly Microsoft.AspNetCore.AzureAppServices.HostingStartup failed to execute. See the inner exception for more details.
---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.AzureAppServices.HostingStartup, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.AspNetCore.AzureAppServices.HostingStartup, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly assemblyContext, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.ExecuteHostingStartups()
--- End of inner exception stack trace ---