Skip to content

Exception Thrown: System.ArgumentNullException when Running the WebSocketExample #2

@joshglenn

Description

@joshglenn

Hi! I was just checking out your WebSocketExample repo. Looks like a great job!

When trying to run the WebSocketExample project, this line triggers a System.ArgumentNullException exception:

if (context.Request.AcceptTypes.Contains("text/html"))

At that point context.request.AcceptTypes is null

Here is the locals window at that point in time:

Screen Shot 2020-04-21 at 11 06 06 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions