Category "c++sharp"

Cloudflare Workers with Webassembly

i managed today to get cloudflare workers working with my c# wasm. My question is, how safe this is if i want to serve a api on workers with webassembly? I want

Foreign Key word display blank when the app is run

I have built a Book app in ASP.NET Core razor pages CRUD using Entity Framework. However, when I run the app and view it on https://localhost:44370/, the Foreig

Replacing {text} in .txt or array with different text

Consider having the following strings in a .txt file 127.0.0.1 127.0.0.2 127.0.0.3 Or in an array: {"127.0.0.1","127.0.0.2","127.0.0.3"} And consider having t

Microsoft Graph API Pagination is not working for getting all users from Azure AD

We are using Microsoft Graph API Beta version to retrieve all users from the Azure AD using below code. API returns only 100 users in the response and to use pa

Kerberos error when connecting to Oracle database in .NET Core

I have an application created using .NET Core 3.1 which needs to connect to an Oracle database, the connection code is very straightforward and I'm connecting u

Equivalent to Solution Folders in VS Code

In Visual Studio, one can create "Solution Folders" to group different .NET projects into a virtual folder. Is there any equivalent solution for VS Code? I've

Restart c# console app after executing succesfull

How to automatically restart c# console application after a succesfull run? My program should be running continuously. And i should be like a loop but not in th

Adding Global Using Directive in blazor

The type or namespace name 'XXX' does not exist in the namespace 'MyClassLibrary.Models' (are you missing an assembly reference?). The error refer to this Blaz

C# How to set Property with two arguments

I need to setup a Property with two arguments, for example, to append text in a log file. Example: public string LogText(string text, bool Overwrite) { get

How to solved gRPC exeption with this Status(StatusCode="Unimplemented", Detail="Service is unimplemented.")?

I implemente gRPC in my .net core 3.1 projects. Although it works in my local, does not work on server. I try to implement every things that is necessary in my

I need to update a Blazor page to update whenever the query string changes

I have a Blazor component named NavBar.razor that displays a Radzen navigation menu with a list of tags. When the user clicks a tag (RadzenPanelMenuItem), the c

Entity Framework .Include() with condition not working

SCENARIO If I split the Entity Framework linq query to evaluate an IQueryable first and after try to include some properties, the value of AccessGroupAccessPoin

CORS Error while calling .Net WebAPI from Axios

I have a login form from where I am calling the .Net API from react using Axios axios .post( 'https://localhost:5001/login', { email: 'abc@gmail

Equivalent to ControllerBase's `IsLocalUrl` in Blazor

So I normally have an endpoint in a controllerbase where I check if a given url is local or not with Url.IsLocalUrl(returnUrl), but I can't find an equivalent t

ASP.NET Core MVC - posting to a different action name does not bind the values

I'm using a regular html form instead of @html.BeginForm and I have these 2 form tags in my Create.cshtml view file. I was experimenting with routing, but my po

Scroll Chat Window in Microsoft Teams

I am trying to make an application that would allow me to copy a chat(archive) from "Microsoft Teams". I used SPY++ to get window handles and then I used WIN32

Process terminated. Couldn't find a valid ICU package installed on the system in Asp.Net Core 3 - ubuntu

I am trying to run a Asp.Net Core 3 application in Ubuntu 19.10 thru terminal using dotnet run command but it does not seem to work. I get this error. Process

Json file was not found in Android

I am developing a game for mobile and can't create a normal save system because when playing on the phone the error is logged: Could not find the file. I use th

FunctionsStartup vs IWebJobsStartup, problems reading HttpHeaders on the request

I am building a .NET Core 3.1 Azure Functions application on my local and am trying to configure a startup class. When I implement a class to inherit from Funct

Map nested object with Automapper in C#

I use the latest version of AutoMapper 10.1.1 in my .NET Core project. I have a simple database for learning new words in a language I want to learn. I have the