Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I migrate .NetCore 2.2 to .NetCore 3.1 I got below error

DefaultHttpRequest - Microsoft.AspNetCore.Http.Internal - .NetCore 2.2

DefaultHttpRequest - Not found in .NetCore 3.1

What I have tried:

I have migrated .NetCore 2.2 to .NetCore 3.1
Posted
Updated 29-Jan-20 7:43am
v2

Read: Breaking changes, version 2.2 to 3.1 - .NET Core | Microsoft Docs[^]

Various classes have been moved around or replaced as .Net Core, ASP.NET Core, and EF Core matures.
 
Share this answer
 
Comments
Mohammad Nawaz 29-Jan-20 13:36pm    
@Dave Kreskowiak, Please help me to solve this issue as i am unable to do that, i have already check docs you have provided but doesn't "DefaultHttpRequest"
Dave Kreskowiak 29-Jan-20 15:58pm    
I couldn't tell you. I don't have any examples to work with nor the time to generate one. But since they recommended replacing DefaultHttpContext with HttpContext, I would first try the same thing with HttpRequest.
 
Share this answer
 
v2
Comments
Mohammad Nawaz 29-Jan-20 13:50pm    
It is for DefaultHttpContext but my class is DefaultHttpRequest
Richard MacCutchan 30-Jan-20 4:50am    
Sorry, I misread the question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900