Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
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

Closed

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,
image

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?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Needs TriageNeeds to be triaged for assignmentType: BugSomething isn't workingstaleThe issue hasn't been updated in a long time and will be automatically closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions