Skip to main content

Questions tagged [asp.net-core-6.0]

ASP.NET Core 6 is the 6th version of Microsoft’s ASP.NET Core web application framework, built on top of .NET 6. Only Use this tag for questions specifically about the ASP.NET Core 6 release or ASP.NET Core 6’s formal specification. Always include the general [asp.net-core] tag.

asp.net-core-6.0
0 votes
1 answer
31 views

Cannot add Blazor Web Assembly project to ASP.NET Core 6 application

I need to add Blazor Web Assembly project to an ASP.NET Core 6 application. I did as described in this article How to integrate Blazor application Removed builder.RootComponents.Add<App>("#...
max's user avatar
  • 35
0 votes
1 answer
26 views

API cannot see Website middleware assignments to HTTPRequest

I am trying to understand why the API cannot see what assignments I am making in the middleware of the Website. public async Task InvokeAsync(HttpContext httpContext) { try { ...
cyimxtck's user avatar
-2 votes
1 answer
25 views

Swagger implementation for ASP.NET Core 6.0 Web API [closed]

I have created an ASP.NET Core 6.0 MVC (not API) project with one API controller only. It's working when we go to the url directly in a browser, but Swagger is not working. Please let me know how can ...
Abhijeet Patil's user avatar
0 votes
1 answer
53 views

System.InvalidCastException: Can't cast database type timestamp without time zone to DateOnly

I get this error message when using EF Core to query data: System.InvalidCastException: Can't cast database type timestamp without time zone to DateOnly This is a sample code that causes an error ...
Lan Lin's user avatar
  • 13
0 votes
0 answers
36 views

Visual Studio C# (.NET Core 6): Text and UI Elements Pixelated, Not Smooth (ugly)

I have been experiencing this issue for a long time and have tried everything I could think of to resolve it. In Visual Studio C# (.NET Core 6), the text and UI elements are consistently pixelated and ...
feelless's user avatar
0 votes
0 answers
29 views

ASP.NET Core 6 Web API : password popup on new server

We are moving to a new Windows Server 2022 and when using Swagger, some users are experiencing a popup window asking for username and password when trying to run an operation. Others are able to run ...
Webbert's user avatar
  • 63
0 votes
2 answers
53 views

Unable to access the registration page in ASP.NETCore

Account folder in project and Register.cs modelProgram.cs codeThis is the user registration controller code on the site that returns the registration view, but when it runs and clicks on the ...
AliHANiF's user avatar
0 votes
0 answers
34 views

Two assets found targeting the same path with incompatible asset kinds

I have a site with ASP.NET Core 6, and I encountered this error when the project was running. I tried to change the XAML code in .NET SDK assets, but it didn't allow to change. If your suggestions can ...
AliHANiF's user avatar
0 votes
1 answer
29 views

ASP.NET Core 6 MVC : view model not found when rendering view in external library

I have an ASP.NET Core 6 MVC application which is loading in controllers and views from an external project. The project assemblies are dynamically loaded in rather than by project reference. I am ...
gouldos's user avatar
  • 1,055
-1 votes
1 answer
52 views

SQLite throws exception during connection opening when SingleFile is true

I am trying to pack my app in a single file, but I keep getting this exception that kills my exe: Value cannot be null. (Parameter 'path1') System.Private.CoreLib at System.IO.Path.Combine(String ...
Razorphyn's user avatar
  • 1,312
0 votes
0 answers
53 views

EF Core Adding Unwanted Default Value to String Property

I'm encountering an issue with Entity Framework Core (using Pomelo for MySQL) in my .NET Core 6 application. When I update or recreate the database, a specific field (OperationCode) in my XXX table is ...
ZihamZuhair's user avatar
0 votes
0 answers
31 views

ASP.NET Core 6 sending data from view to controller

I'm using ASP.NET Core 6, and I'm wondering if I can send data from one HTML view to the same controller but to two different methods using a single submit button? I'm using a single ASP form, and so ...
Sasa Dedic's user avatar
0 votes
0 answers
85 views

Serialize enum to JSON using the value of the EnumMember attribute in ASP.NET

I have an enum like this: using System.ComponentModel; using System.Runtime.Serialization; using Newtonsoft.Json; using My.Custom.Namespace.Converters; [TypeConverter(typeof(CustomEnumConverter<...
Zdeněk's user avatar
  • 43
0 votes
2 answers
66 views

Remove id in url in .net core

How do I omit the Id from the URL? Change from this URL: https://localhost:7002/Product/109 to this instead ====> https://localhost:7002/Product/productName My controller is: [Route("/...
soheila's user avatar
  • 15
0 votes
1 answer
105 views

ASP.NET Core 6.0 form validation error: "The fieldNameHere field is required." even though no such field exists

I am creating an ASP.NET Core 6.0 web application. My validation for my form is not working, and when I output the ModelState errors, I see this: Key: Email, Error: The Email field is required. Key: ...
DeUlo's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
78