Skip to content

app.UseTeams(false) fails to invoke custom controller in ASP.NET web application #110

@nmallick1

Description

@nmallick1

In an ASP.NET web applications using IWebHostBuilder, when you set app.UseTeams(routing:false) and create a new custom Controller to handle /api/messages, the custom controller is not invoked. Framework encounters following exception

The request matched multiple endpoints. Matches:

Microsoft.SREAgent.AuthenticationEndpoint.Controllers.CustomTeamsMessagesController.OnMessage (Microsoft.SREAgent.AuthenticationEndpoint)
Microsoft.Teams.Plugins.AspNetCore.Controllers.MessageController.OnMessage (Microsoft.Teams.Plugins.AspNetCore)

where CustomTeamsMessagesController is the new custom controller added to handle /api/messages in the project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions