.net-6.0 Questions
4
I'm trying to send an email from my .Net 6 application from my office365 email account using following configuration following this
"EmailConfiguration": {
"From": "XXXXXX...
Hemphill asked 10/12, 2023 at 12:46
3
Im trying to get E2E/UI testing (selenium, playwright) to work with my unit testing framework.
The basic idea it to use MSTest and the WebApplicationFactory to spin up a "real server" fro...
10
Solved
I have a DbContext named FileManagerContext in my DOTNET 6 API:
public class FileManagerContext : DbContext {
public FileManagerContext(DbContextOptions<FileManagerContext> options) : base(o...
Braunstein asked 2/2, 2022 at 15:30
10
Solved
The program '[25472]' has exited with code 2147516553 (0x80008089).
I have closed and re-opened visual studio.
I have restarted my computer.
I have shut down my computer.
I deleted bin and obj....
Appressed asked 21/4, 2023 at 20:1
2
Solved
I am trying to add a blob service client for dependency injection.
I'm using the latest version of Microsoft.Extensions.Azure, however my service collection does not contain the extension method of...
4
I have a shared .NET Standard library that was originally being referenced by a .NET 4.8 MVC 4 project. There is a lot of code in this shared library that uses the ConfigurationManager, like:
var s...
7
Solved
I created an appsettings file for a MAUI app and loading it in the IConfiguration using .Host.ConfigureAppConfiguration on the builder from a MauiApp.CreateBuilder(); I can access the file in Windo...
3
I've built a .NET Core 6 application that runs without issue on my local Windows 11 machine. I've deployed it to an Ubuntu 20.04 server and I receive an error that it cannot load the libSkiaSharp s...
4
When working with dates, I have been using DateTime2 type in SQL Server to store C# DateTime.
.NET 6 has introduced new structs such as DateOnly and TimeOnly. I assume these should be mapped to Dat...
Xylol asked 8/2, 2022 at 7:39
3
I am using Asp.net 6 web API in my project and I am confused about understanding routing functions. Previously when we build API we use to use following middleware
app.UseRouting()
...Other middle...
Woodworking asked 29/4, 2022 at 20:57
4
I have some experience with Azure Functions but I am new to isolated worker process and v4.
I get this warning/error message:
No job functions found. Try making your job classes and methods public...
Featurelength asked 20/12, 2023 at 16:43
4
Solved
I'm getting "; expected" error in my .razor file and in _razor.g.cs file,
In previous blazor versions I was finding these g.cs files in the solution folder, now I can't find them there, a...
Senegambia asked 18/2, 2022 at 19:23
2
Solved
I have a .NET 6 WPF project and cannot figure out what changed as the ProductVersion of my assembly suddenly contains a git commit hash.
My project file always looked like this, where I also update...
1
I have a Blazor Webassembly, .NET hosted application. On the server we host it on, the base path of the app will be mydomain.com/coolapp. Therefore, to try to get the app to render correctly on the...
Bibliotheca asked 14/2, 2022 at 14:42
10
I have uploaded a .NET6 project as a zip to AWS Lambda, via Visual Studio --> Publish to AWS Lambda however when I test the lambda, I receive this error:
Error: .NET binaries for Lambda function...
Hypoxanthine asked 20/7, 2022 at 10:29
2
Solved
I'm using MudBlazor and implemented a MudSelect component following the documentation.
However, I'm trying to get the selected value from the MudSelect when a selection has been made but unsure whi...
5
Solved
I want to generate Swagger.Json file on build and use it in API gateway to configure the endpoints.
I have tried following steps but its not working.
Create a tool manifest:
dotnet new tool-manifes...
Smedley asked 8/9, 2022 at 21:34
9
Solved
I opened my Visual Studio 2022 project this morning and cannot get it to run any more due to the following error:
CS9057 The analyzer assembly 'C:\Program
Files\dotnet\sdk\8.0.100-preview.6.23330....
Kappenne asked 21/7, 2023 at 20:6
9
Solved
I spent 2 hours trying to figure out what's wrong with my pipeline for Azure Functions .NET6 (on Windows).
Error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0. Either target ...
Murry asked 26/10, 2021 at 21:13
3
Solved
With the release of the .TagWithCallSite() method in EF Core 6.0 I was wondering if there is a way to apply this globally on every query run via a DbContext in some way?
It would be much better to ...
Gurney asked 10/1, 2022 at 19:56
4
Solved
I am following a simple tutorial on .NET 6 and it should work really simple, but apparently I get the exception. The sample code is the following:
public async Task<ServiceResponse<List<Ge...
Myrtia asked 25/11, 2022 at 14:35
7
Solved
How to configure AutoMapper in ASP.Net Core 6
I have a project which is written in .Net 3.1 so we had Startup.cs class.
I am migrating it to .net core 6
now when I put the following configuration i...
Hue asked 22/2, 2022 at 5:3
2
Solved
In my C# code running .NET 6 (Azure Function) I am sending an HttpRequestMessage using HttpClient. It doesn't work but it should work, so I want to get the raw request that I am sending, including ...
Sugihara asked 25/4, 2022 at 14:34
3
I use .net 6 and when I use Add an ASP.NET Core MVC controller with views, using Entity Framework Core(I do this in Area). I get an error.
I searched a lot but did not find any
error:
DBContext:
...
Halfback asked 5/4, 2022 at 20:21
4
Solved
I need to access ClaimsPrincipal within the service layer of a Net Core 6 app.
I could always just builder.Services.AddTransient<IHttpContextAccessor, HttpContextAccessor>(); in the Startup.c...
Republic asked 21/1, 2023 at 16:8
1 Next >
© 2022 - 2024 — McMap. All rights reserved.