Should I bind navigation properties or entity ids in reusable components?
I am using Blazor with InteractiveServer at the applcation level and Radzen component library. I would like to create resuable components that fetch their own data for things like dropdowns. For example, I have a Request entity with the following…
Public Client Application MSAL.NET deployed to Azure App Service
I have developed a Web-Api application which does access 3rd party users mail. The application is obtaining access through MSAL.NET with a PublicClientApplicationBuilder sample of which is shown at the following link:…
Application getting logout frequently - ASP.NET session has expired or could not be found - Microsoft.ReportViewer.WebForms
Dear all, we are getting below error frequently from few days without any deployment on production environment, unable to find the solution. even after increasing session time out and tried various suggestions on internet still facing the same issue.…
Reading Emails from outlook in C#
Hi, hope you are well. Junior dev here. I am trying to figure out how to get my C# application to read emails from a certain address, if it matches then check if it has an attachment. IF it does extract the attachment and store it locally. I can not…
Looking for SQL Database advice for a cms
Hi I am looking for some advice on which sql database setup to use, I am building a multi tennent CMS, in the simplest form, it has 3 table structures 1 for file search, one for cms search and 1 for statistics. I can't use no sql becuase the costs are…
How to enable TCP protocol of SQL Server Express 2019 through C# code?
I have MS SQLExpress 2019 installed in Windows 11 desktop. I want to enable SQLExpress TCP protocol programmatically from Windows Application using c#. So, I have written following simple code. using…
configurar permisos para acceso a sharepoint
Necesitamos conocer qué permisos API y configuración general necesitamos para una autenticación moderna desde c#. Por código obtenemos un token, pero nos da error 401 de no autorización. El acceso es para leer y escribir en librerias sharepoint.
Azure batch immediately returning trigger to dependent task when resourcefilles are added
Hi, I am using Azure batch task dependencies feature and facing one issue. I have one parent task which needs some data to process. I have configured ResourceFiles for my parent task so that it can download the files to process. I have dependent (child)…
Unable to publish with fulltrustprocess and Multiple instances of UWP app
UWP experts , There are three components here. Main UWP app with multiple instances supported through package manifest - C# UWP FullTrustprocess that acts as the appserviceconnection server - C# .NET 8 WAPP Package that bundles UWP app and…
TSS.MSR / TSS.NET - How can I list persistent handles on a TPM2 device via C#?
If I am on Linux, with the tpm2-tools installed, I can run a tpm2_getcap handles-persistent command and get a list of persistent handles, like: 0x81000001 0x81010001 I want to do the same thing on Windows with an enabled TPM2. Ideally, I'd like to…
Invalid UserName in ASP.NET Core 6
I am working on an ASP.NET Core 6 MVC application that uses ASP.NET Core Identity. When I try to create a new user using the UserManager, I get this error: User name ' ' is invalid, can only contain letters or digits Username do not has any…
Azure.RequestFailedException: 'Cannot access source document location with the current permissions. Status: 200 (OK) ErrorCode: InvalidRequest
I have two containers in Azure storage, in order to do translations original and transcribed, they are containers, because I need to access it I have a method, to upload my document public async Task<Uri> UploadToAzureBlobStorage(string…
Serverless Throttling?
Hi. I have written a method using the guidance at https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/tutorial-dotnet-bulk-import. To shorten the code I have removed most logging. It looks something like this (questions follow): public async…
Can a custom windows service stop/start/restart itself? Created in Visual studio 2019 c#
Created a custom windows service in c# using visual studio 2019. I have created a custom winform application that communicates with the custom service using sockets. Since users don't have admin rights, its a pain to stop/start/restart the…
How to access camera preview frames with MediaCapture class in Unity?
Using the Windows MediaCapture class we can capture videos and images on the HoloLens 2. The class also offers preview capabilities (see here). However, I am not sure how to get the preview stream within Unity and then display it to the user. In the docs…
How to Remove Language Folders (cs, es, tr, etc.) and resources.dll Files from WPF Project Output in .NET 8?
Hello, I’m developing a WPF application using .NET 8. In the bin output folder, several language-specific folders (cs, es, tr, etc.) are being generated along with .resources.dll files inside them, such as: …
JSON for logging
Hello, I have the REST interface and would like to log the data, request, response. To make it clearer, correct JSON format. I notice this behavior. What would be a good solution for…
ASP.NET Core Web Site Publishing Problem from Subfolder
Hello, I am developing a website using Visual Studio with [ASP.NET] Core MVC (C#) .NET 8 and I have published my site. My project files are located in the httpdocs/frez folder of the server. But normally web files should be in the httpdocs folder. When I…
Cant able to get all properties of user by using Graph API in C# ?
Code Line => User user = await graphClient.Users[userObjectId].Request().GetAsync().ConfigureAwait(false); I can able to fetch Green highlighted one but other than that getting null in "user1" (code line) object. question => Is…
Need graph api call full code for pushing notification for particullar user in C# console app
Hello, I am not able to find the full code or latest code that will send notification to the user from c# console application.Need your help please. I have tried this link…