632 questions
0
votes
1
answer
76
views
Update .NET Core from 2.2 to 3.0 - Endpoint Routing not working
Application is an ASP.NET Core 3.0 MVC web app with razor pages and some controller functions. After updating to 3.0, the razor pages work fine, but I'm not able to access my MVC endpoints. When I ...
0
votes
1
answer
727
views
Downgrade .NET 6 API to .NET Core 3
I cannot create a .NET Core 3 application using Visual Studio 2022. It is only showing .NET 6 and 7.
I want to publish this API on IIS server, which does not support .NET 6.
I tried to change the ...
1
vote
1
answer
85
views
A WebApi error occurred InvalidOperationException: Incomplete protobuf payload received; got 0 of 30727 bytes
Good morning.
I have a WebApi "GetByList" method written in NetCore 3.1 and C #.
[HttpPost]
[Route("Data/GetByList")]
public async Task<TagResultList> GetByList([FromBody] ...
0
votes
2
answers
760
views
NET Core 3.0: Custom URL ports not working
I've recently updated a project from netcoreapp 2.2 to 3.0. When I debug the project locally it is running on the default ports 5000 and 5001.
I have specified specific urls in both UseUrls and the ...
0
votes
0
answers
947
views
Activator.CreateInstance(type, args) replaces null with default value for non-nullable constructor parameter
Why does this code compile and run when param2 is non-nullable? I can't find anything in the docs saying that a default value is used when null is passed to a non-nullable constructor parameter via ...
1
vote
0
answers
252
views
Why .net core 3.1 projects can be created without installing the 3.1 SDK?
run the command "dotnet --list-sdk" in cmd window, the following msg shows,
5.0.404 [C:\Program Files\dotnet\sdk]
6.0.101 [C:\Program Files\dotnet\sdk]
which means .net core 3.1 sdk not ...
0
votes
0
answers
49
views
Authorized specific Roles when false then couldnt redirect issue
I develop .NET CORE 3.0 Web Application. The Application is has a multilayer as a project in a single solution. Login page in a UI layer. But this controller code in another layer, this controller has ...
0
votes
1
answer
445
views
How to identify dependency chain endpoints.MapControllers is erroring on
I have an API solution that's erroring out on Startup when MapControllers is called.
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
The error ...
7
votes
2
answers
4k
views
Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzer threw an exception of type 'System.NullReferenceException'
I'm updating a package to .NET 5.0 from .Net Core 2.1. I've updated all the assemblies to the latest versions but am getting the error below from the Analyzer package:
This error occurs due to the ...
0
votes
1
answer
978
views
Error with GraphQL.Types.EnumerationGraphType
I'm trying to create class with enum and I have an error.
public class MarsWheather {
public Season MarsSeason { get; set; }
}
public enum Season {
winter,
spring,
summer,
autumn
}...
0
votes
1
answer
2k
views
Unable to resolve dependency HttpClient in net.core 3.0
I'm trying to use IHttpClientFactory. I've read the article https://learn.microsoft.com/en-us/aspnet/core/fundamentals/http-requests?view=aspnetcore-3.0
Startup.cs
public void ConfigureServices(...
0
votes
1
answer
127
views
Syncfusion charts not displaying after pushed to production
The code has been moved to production and the issue appears. Not able to load the pages with charts in it. Getting a fatal error on trying the same. The error received is, Class constructor Orl cannot ...
0
votes
1
answer
799
views
Signed In Principal but User.Identity.IsAuthenticated is False and HttpContext.AuthenticateAsync is False
I have logged in manually to a .NET Core 3 Web API app as seen in the controller action below. No matter what I try, I can't seem to get the .NET framework to recognize that the application user is ...
0
votes
1
answer
6k
views
The specified invariant name 'MySql.Data.MySqlClient' wasn't found in the list of registered .NET Data Providers
I have a C# Library developed using .Net Standard 2.1 and this library is called in a test console application built on .Net Core 3.0. But at run time, the GetFactory is throwing an exception.
...
-1
votes
1
answer
3k
views
"INVALID_OPERATION" error with GraphQL.Net library in .NET Core 3.0
I have a problem with GraphQL.Net library. I've used "GraphQL" Version="3.2.0", "GraphQL.Server.Ui.Playground" Version="4.4.0" and TargetFramework = netcoreapp3....