Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
br3nt opened this issue Oct 12, 2022 · 1 comment

Comments

@br3nt
Copy link
Contributor

br3nt commented Oct 12, 2022

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
@br3nt
Copy link
Contributor Author

br3nt commented Oct 12, 2022

It's meant to be AddJsonSessionSerializer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant