dotnet / dotnet/systemweb-adapters

Issues Updating 1.4.0 to 2.3.0

Open
#669 2 comments 0 reactions 0 assignees View on GitHub
Needs: Triage :mag:
Dominant language
C#
Stars
384
Forks
76
Avg merge
2h 24m
Merged PRs (30d)
1

Description

### 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](https://learn.microsoft.com/en-us/aspnet/core/migration/fx-to-core/inc/remote-app-setup?view=aspnetcore-10.0&source=recommendations&pivots=manual).

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.