ASP.Net Core 2.2 Tutorial issue
Posted: Thu Jun 04, 2020 7:03 pm
Visual Studio 2019 Version 16.5.1
GDPicture.NET.14 version is 3.1.0.68
I am following the tutorial for Core .Net 2.2 here. But I am running into an issue with the controller for the API, specifically the LoadFromFileMultipart() method. The IDE gives me this compile time error:
Argument 1: cannot convert from 'Microsoft.AspNetCore.Http.HttpRequest' to 'System.Net.Http.HttpRequestMessage'
I created the project as ASP.NET Core Web Application targeting .NET Framework and Core 2.2 - after creation I change the .NET Framework to "net47".
I added the references in Step 1, Step 2, and Step 3 - I did not need to add additional Razor nuget packages.
The licensing and configuration was pretty straight forward and easily added. The api controller is what is giving me an issue.
I have compared my code to that of the .Net Core Code Sample (aspnetcore-mvc_razor_app), other than the sample code using a preview version of .NET Core 3.0, the code matches but the sample code does not produce the error above.
Could someone please help - I cannot get any farther with my own project.
GDPicture.NET.14 version is 3.1.0.68
I am following the tutorial for Core .Net 2.2 here. But I am running into an issue with the controller for the API, specifically the LoadFromFileMultipart() method. The IDE gives me this compile time error:
Argument 1: cannot convert from 'Microsoft.AspNetCore.Http.HttpRequest' to 'System.Net.Http.HttpRequestMessage'
I created the project as ASP.NET Core Web Application targeting .NET Framework and Core 2.2 - after creation I change the .NET Framework to "net47".
I added the references in Step 1, Step 2, and Step 3 - I did not need to add additional Razor nuget packages.
The licensing and configuration was pretty straight forward and easily added. The api controller is what is giving me an issue.
I have compared my code to that of the .Net Core Code Sample (aspnetcore-mvc_razor_app), other than the sample code using a preview version of .NET Core 3.0, the code matches but the sample code does not produce the error above.
Could someone please help - I cannot get any farther with my own project.