This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
Azure bot app hosting startup assembly exception #3861
Labels
Needs Triage
Needs to be triaged for assignment
stale
The issue hasn't been updated in a long time and will be automatically closed.
Type: Bug
Something isn't working
What project is affected?
My team is working on a POC project that involves Azure bot, and ACS services. Here is my bot details,
![image](https://user-images.githubusercontent.com/98924387/158256246-b6c0c5c8-9506-45f0-8baa-110b17c37381.png)
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 ---
Any screenshots or additional context?
The text was updated successfully, but these errors were encountered: