Questions tagged [.net-6.0]

If you have queries regarding Microsoft's .NET application development framework that pertain specifically to version 6.0 or later, feel free to reach out. This is the place for version-specific inquiries only.

Learn the way to extract an array from the appsettings.json file using .Net 6

I recently came across this amazing Stack Overflow thread about accessing the appsettings.json file in a .Net 6 console application. Interestingly, my own JSON file contains multiple arrays: "logFilePaths": [ "\\server1\c$\folderA\ ...

The Angular 13 interceptor is not capturing a 403 error as expected

When it comes to running a .NET 6 API, the Angular 13 application is encountering an issue with intercepting a 403 error. Strangely enough, the 401 error is being handled properly. The problem lies in the fact that the 403 error does not trigger the (err: ...

Is it possible to implement dependency injection within a .css document?

I have a C# .NET 6 application. Some of the web pages (Razor Pages) in the app use dependency injection to inject configuration into the Razor Pages (.cshtml files), allowing certain config elements to be displayed in the user interface. My query is, can ...