Skip to content

Issues Updating 1.4.0 to 2.3.0 #669

@jamsoft

Description

@jamsoft

Describe the bug

I have updated the nuget packages to the latest version. All was working with 1.4.0. I have migrated the configuration as per the documentation.

Now when I compile, I get a very confusing compiler error:

Mvc.g.cs(59,62): Error CS1061 : 'HttpContextBase' does not contain a definition for 'GetRequestServices' and no accessible extension method 'GetRequestServices' accepting a first argument of type 'HttpContextBase' could be found (are you missing a using directive or an assembly reference?)

To Reproduce

I think it's too specific to my case to even attempt this.

Further technical details

Please include the following if applicable:

ASP.NET Framework Application:

  • MVC5
  • .NET Framework Version: 4.8.1
  • IIS Version: Express
  • Windows Version: 11

ASP.NET Core Application:

  • Targeted .NET version: 10.0
  • .NET SDK version: 10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍Label added to new issues which need Triage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions