Category "c++sharp"

ASP NET Core 6 MVC Slow page loading

I am trying to upgrade an old ASP .NET project from Framework 4.5 to Core .NET 6. Going well so far, but I noticed the page loading was way longer than before.

Random minvalue cannot be greater than maxvalue

I am trying to make a console based application in which the program will subtract two random numbers from a range provided by the user but when i enter the val

DataSet Parent-Child Nested Relation in Blazor

Is DataSet Parent-Child nested relation available in blazor? if yes, how to apply or use it? Thanks.

Reading a XML file using C# not working for some xml files

I need to read following xml file. I've used XML and LINQ but neither of them show any values.I can't find any mistakes on the code. I've followed This example

When I try to print the copy string on console then instead of string they show me some "Element (id = 5131abe8-3c52-4e18-8eb6-3abedb48e19d)"

IWebElement link = driver.FindElement(By.XPath("/html[1]/body[1]/div[3]/div[1]/div[1]/div[1]/div[2]/div[1]/button[1]")); link.Click(); S

How to elevate my winform privileges (at runtime) to admin on button press

I am developing an application that should not require elevated privileges unless the user wants to change a network adapter's IP address. I would like to allow

Writing multithreaded code to generate incremental index

I want to write a code in following scenario : we want to design an invoice generator.this invoice generator also generates an incremental invoice no .Also note

C sharp code terminates without exception

I have this code: public static bool Run(IntPtr handle, IntPtr imethodName, IntPtr iobject, IntPtr itransaction, IntPtr imethod ) { try { Stri

How to use default interface methods in specific class?

public interface IPrinter { public void Print() { Console.WriteLine("Printing..."); } } public interface IScanner { public void Scan()

Best way to call and access powershell script in ASP.NET Core project

I have a PowerShell script which I have to call in an ASP.NET Core Web API solution. What is the best way to use the PowerShell script in an ASP.NET Cre Web API

How to get dropdownlistFor selected value in controller in form of string in MVC

enter image description here Instead of "A+" i need that value which is selected by user from dropdown list.

Asp.net 4.8 WebForms authorization using Owin OpenId Connect Authentication (app.UseOpenIdConnectAuthentication)

I am encountering an infinite redirect loop between login.microsoftonline.com and my application. My project is implementing authentication and authorization in

UnauthorizedAccessException when accessing a Windows file share from .NET Core app

I have an application written in .NET 5 ( soon to be .NET 6 ) that allows users to access files stored on a bunch of different user defined Windows network shar

Suggestion on NavMesh 2D generation at runtime with infinite procedural generation [duplicate]

Let me start off by saying I began my jounrey of programming within the last year and Unity about the same time. I have come a long way since

How do I set the default c# file in my Visual Studio Code c# Project?

I am new to using Visual Studio Code. I have always used Visual Studio IDE in Windows. I am trying to run a simple Hello World Program on Mac with VS Code. I ra

Why is this public address different for an ethereum signature?

I have a signature created using metamask and the personal_sign RPC method. Now I want to verify this signature in my C# backend. In order to do so I have found

Why is this public address different for an ethereum signature?

I have a signature created using metamask and the personal_sign RPC method. Now I want to verify this signature in my C# backend. In order to do so I have found

C# MariaDB Update Function working in DataStore but not updating in .NET Application

My initial issue is that my database does not update when I call on this specific code. I am not sure if it is C# itself or the update query that I am calling.

How can I create a file that only my application can modify it?

How can I create a file that only my application can modify? I need it because I have an app that creates a .txt file where user information is stored and I don

ImportPSModule RequiredVersion is ignored

I'm trying to import a specific version of a PowerShell module. I have to do it from .NET. However, the RequiredVersion is simply ignored. Even if I use a non-e