Skip to content

Runtime error with System.Net.Http.Formatting 5.2.3 #50

@chriseldredge

Description

@chriseldredge

It appears that WebApi added an overload to WriteToStreamAsync that accepts a CancellationToken parameter. JsonpMediaTypeFormatter does not implement this overload, so the following error is thrown at runtime when attempting to serialize a response:

The media type formatter of type 'JsonpMediaTypeFormatter' does not support writing because it does not implement the WriteToStreamAsync method.

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