Category ".net-6.0"

WorkerConfig for runtime: dotnet-isolated not found

Created a .NET 6.0 Isolated Function (with HTTP Trigger) in Visual Studio 2022. But when running/debug this function locally, get following error: Microsoft.Azu

How to manage nuget packages globally for all projects in a solution using Visual Studio 2022?

I have a solution created in .NET 6.0 using Visual Studio 2022 which has many projects. Each project has so many nuget package references in the .csproj file as

TypeLoadException Method 'IsValid' in type in Pomelo.EntityFrameworkCore.MySql.Update does not have an implementation

When I use Pomelo.EntityFrameworkCore.MySql in combination with Microsoft.AspNetCore.Identity I am getting that error. Are my dependencies wrong ? Similar issue

How to start my Worker Service on the hour

I have this worker service kicking off jobs but hourly it checks for jobs. How can I get it to check on the hour rather at the run time hourly? public class Wor

DbContext error when scaffolding Identity in Blazor Server app

I'm learning Blazor Server and have an app with an existing DbContext (EF/MSSQL) for CRUD operations. Now I'd like to implement Identity and for that I'm follow

Azure function .net 6 return error 500 after deploy

I've migrated a project from .net core 3.1 to .net 6.0. I've resolved/updated all nugets and my functions runs well on local environments (I've tested on two pc

Same type-name exists in both Aero and Aero2

I am updating several projects from .net framework 4.7.2 to .net6, using the excellent upgrade-assistant tool. Sometimes I get this error: Error CS0433 The ty

404 error after scaffolding identity library of an ASP.NET Core 6 MVC project

I am using .NET 6. Every time I scaffold Identity, the application stops working. My Startup class is like this: using BulkBook.Data.Data; using BulkBook.Data.R

Why is it valid to pass static types in and out of interface methods in C#?

I noticed that the following code seems to compile just fine, when I would've expected multiple errors: public interface ITest { Math Foo(MathF x, ref Conso

submit large form data with post action return 400 error in .NET 6

I'm using .NET 6 to post a form with large form data (about 200Mb), and there is no any file. this's kind of my form in front-end: @using (Html.BeginForm(FormMe

How to use IOptions pattern in Program.cs in .NET6, before builder.build()?

Using the options pattern in .NET6, I can get access to some config values as follows: builder.Services.Configure<ApiConfiguration>( builder.Configura

Can I use EnvDTE and VisualStudio.SDK in a .Net 6 project?

With VisualStudio 2019, I used to be able to use EnvDTE80 that comes with VS2019 installation. It worked fine within my .Net 3.1 project. Then I upgraded my pro

Publish error: Found multiple publish output files with the same relative path

When I publish my ABP project I get the following error: C:\Program Files\dotnet\sdk\6.0.100-rc.1.21458.32\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Conflict

How to configure NewtonsoftJson with MinimalApi in .NET 6.0

I have net6.0 project with minimal api and I would like to use NetwtonsoftJson instead of built in System.Text.Json library for serialization and deserializatio

(.Net Core) How to test connection to db at startup?

.Net 6.0, EF, Asp.Net Core I'm trying to interrupt my web server's startup if the connection to the db could not be established. I'm thinking that the natural p

UI thread slow to respond to Progress updaters on async Task method using VS2022 & Net6.0

I’ve run into a performance obstacle and I’m uncertain of the cause, all of this is running under VS2022 & Net6.0. As this is my 1st time using

how to replace double in an array with index and value given by user and shifting each element to the right and dropping the last element

I have a problem on replacing the value as I'm not sure which function to use or how to use it. The question: Create and populate an array of 5 doubles. Ask the

.NET 6 problem: Bearer error="invalid_token" error_description="The signature is invalid" in SwaggerUI

I am currently trying to make authenticator when a specific user logs in and gets the weathercontroller information. It says that the jwt token is invalid. So I

Serialize response from post async .NET 6

I am trying to modify the response when serialized. TimeJoined is returned as a string in format hh:mm (GMT +_) and I want to modify as a 24h format, in the ins

Azure function error : BinaryFormatter serialization and deserialization are disabled within this application

i have existing azure function in .netCore 3.1, Trying to upgrade it to .net6.0. after upgrade getting error 'BinaryFormatter serialization and deserialization