Questions tagged [.net-6.0]
For questions about Microsoft's .NET application development framework that are specific to version 6.0+ of the framework. Use only If your question are version-specific
.net-6.0
5,916
questions
1
vote
0
answers
58
views
Executing PowerShell scripts from C# .NET 6 web app using RunImpersonated not working - Scripts still execute as IIS APPPOOL\APP
My app needs to execute PowerShell scripts to create and manage AD accounts. My current setup uses HangFire to launch background jobs, PowerShell execution being one of them. I have an ...
0
votes
0
answers
26
views
EF Core discriminator generates incorrect FK migration
I have inherited a database where the structure is like this:
Table:
CREATE TABLE `address` (
`addressId` int NOT NULL AUTO_INCREMENT,
`addressType` int NOT NULL,
`instanceId` int NOT NULL,
`...
0
votes
0
answers
30
views
Fortify flaging .Net6 API returning File from internal server vulnerable to XSS attack
using (HttpClient client = new HttpClient())
{
string FindDocumentURL = string.Concat(internal server URL builder);
response = await client.GetAsync(FindDocumentURL);
if (response....
0
votes
1
answer
43
views
Trouble posting contents of file input to controller action using jquery in ASP.Net Core 6.0
I am attempting to post a file to a controller action in order to save it, and have run into two different problems, when using $.post to post the data as shown here:
$("#setting-form").on(&...
0
votes
0
answers
66
views
.NET 6 upgrade to .NET 8 using OIDC is now throwing error: "An invalid request URI was provided."
I have a fairly standard .NET 6 app that is using cookies for DefaultScheme and OIDC for the challenge scheme. I didn't change the registrations for either, I simply upgraded from .NET 6 to .NET 8.
I'...
2
votes
0
answers
39
views
Bulk Processing of data in ASP.NET Core Web API with Angular
I'm using Angular 15 and an ASP.NET Core Web API. I have a use case where I need to process 1000s of records which involve querying from LDAP and updating into a database.
This whole process might ...
1
vote
0
answers
49
views
I upgraded a C# project from .NET 4.8 to NET Core 6.0 and the serial port class has changed. using System.IO.Ports and System.IO isn't working
I upgraded a C# project from .NET 4.8 to .NET Core 6.0. The SerialPort class isn't working now. I am getting an error:
CS1069 - the type name SerialPort could not be found in the namespace "...
0
votes
1
answer
62
views
C# WPF dependent value is not updating
I'm working on a C# .NET 6.0 project with WPF, and I have the following scenario:
I have two textboxes in my WPF application:
<StackPanel>
<Label>Fee Percentage:</Label>
<...
0
votes
1
answer
81
views
Could not load Krabsetw in C# .NET 6.0
I am using C# with the .NET 6.0 framework in Windows 10 and trying to use the NuGet Microsoft.O365.Security.Native.ETW package, corresponding to the Microsoft Krabsetw library, which allows the use of ...
0
votes
0
answers
92
views
How to handle expired JWT tokens without exceptions in .NET Core?
I'm working on JWT token generation and validation in .NET Core. Here is the code I use to generate my token:
string GenerateToken()
{
var securityKey = new SymmetricSecurityKey(Encoding.UTF8....
0
votes
0
answers
23
views
Return DistinguishedName using ComputerPrincipal from ActiveDirectory
I want to get the DistinguishedName using ComputerPrincipal from the Active Directory only for the user that is signed in.
With the code below the searchResultOrgUnit returns me all PC's that are ...
0
votes
0
answers
96
views
Is Bulk Push Notification available for New HTTP v1 APIs after migrating from legacy FCM APIs to HTTP v1 for .Net core 6 application [duplicate]
My application is in .Net core 6, C#.
I have migrated Existing FCM legacy APIs to New HTTP v1 APIs.
But I have a question, Is Bulk Push notification is possible for this New APIs?
For existing APIs, I ...
2
votes
0
answers
81
views
How do authorize with Identity Server and Azure Active Directory?
It is necessary to make authorization through these systems. Leave the login and password through the Server Identity page, and the process itself through AAD.
I did so. The token from AAD is returned ...
0
votes
0
answers
26
views
Missing information in AWS-Xray
I have .net 6 web api running in a aws lambda. I have enabled the x-ray tracing in lambda and also made code changes in api
AWSSDKHandler.RegisterXRayForAllServices();
var app = builder.Build();
app....
0
votes
0
answers
20
views
How to set CompanionFile attribute for auto-harvested files in WiX toolset?
I am working on a project where I need to handle version downgrades of System.IO.Compression.Native.dll in an MSI installer. This issue was discussed on GitHub, where it was suggested to use the ...