Skip to content

'ISystemWebAdapterBuilder' does not contain a definition for 'AddJsonSessionKeySerializer' (1.0.0-rc.1.22477.1) #226

@br3nt

Description

@br3nt

Describe the bug

For Microsoft.AspNetCore.SystemWebAdapters.CoreServices version 1.0.0-rc.1.22477.1.

Following along with Configuration Changes section of Migrating from ASP.NET to ASP.NET Core (Part 4), the following error message is presented:

'ISystemWebAdapterBuilder' does not contain a definition for 'AddJsonSessionKeySerializer' and no accessible extension method 'AddJsonSessionKeySerializer' accepting a first argument of type 'ISystemWebAdapterBuilder' could be found (are you missing a using directive or an assembly reference?)

image

To Reproduce

Use the Migration Project feature to create a new .Net core project based of existing .NET Framework project.

Copy the blog post example into Program.cs.

Error message appears.

Exceptions (if any)

Just the error message.

Further technical details

Please include the following if applicable:

ASP.NET Framework Application:

  • Technologies and versions used (i.e. MVC/WebForms/etc): MVC
  • .NET Framework Version: 4.8

ASP.NET Core Application:

  • Microsoft.AspNetCore.SystemWebAdapters.CoreServices version: 1.0.0-rc.1.22477.1
  • Targeted .NET version: net6.0
  • .NET SDK version: as per migration tool

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