How to dynamically change the port listened by Webserver in. NET when the Webserver is running
I created a NET 8 Console Application to create a WebServer and make it a Windows Service, in Program.cs, the code implementation is as follows var webOptions = new WebApplicationOptions() { Args = args, ContentRootPath =…
ManagedIdentityApplication.AcquireTokenForManagedIdentity("api://AzureADTokenExchange") giving error in local machine.
Hi, I am implementing the "Federated Identity Credential" along with User Managed identity in .net core 3.1 web api. Getting the error code: "managed_identity_unreachable_network" with error message "A socket operation was…
In Blazor Web App Server authentication Azure missing iss claims
Hello, I followed this guide to create a Blazor Web App (server) with azure athentication https://learn.microsoft.com/it-it/entra/identity-platform/tutorial-blazor-server and it works. here the authentication…
CORS configuration does not work as expected
Hello! I am going through the course module "Create a full stack application by using React and minimal API for ASP.NET Core" and this unit describes steps to enable CORS in response to allow client app request data from API -…
Error when uploading CSV files to Azure blob storage using ManagedIdentity with C# and GraphQLAPI. "Total size of resourceFiles is using 147% of available space after processing."
Hello All, I have created a console app using C# where I try to fetch the data from GraphQLAPI and store the data in csv files. post that it would be uploaded to the Azure blob storage using ManagedIdentity. This complete code work fine in my local VS…
How to get the bindable data from View MAUI
I have a code snippet below where I dynamically add data to StackLayout. For Xamarin Forms using BindingContext, I could access the data bound to the view. But this is not possible in.net MAUI. Is there any documentation for the same? public class MyData…
How can i bind Sumsub mobile android sdk to net maui?
Hi, i try create the binding project with sumsub mobile android sdk, but i didn't have methods of SDK But not have methods build and launch.... his is official android sdk initializing Can you explain what I am doing wrong? and is possible to use…
Solution: Custom SignalR Endpoints (Hubs) in a Blazor Server Application using Azure B2C When Deployed to Azure
Posting this in case I need it myself... Issue: Using custom SignalR endpoints (for example a /chat hub) with Authentication in a Blazor Server application that uses Azure B2C will not work when deployed. It will work fine on your local machine (using…
sending an email with attachment in .net core console application
I need to send an email with attachment in .net core console application. The part of sending an email is working. The attachment part is not working. I have this code: public void sendEmail(List<string> toList) { string from =…
How to resolve SignalR Hub connection issue from Client side Javascript code
I have web application developed in .NET 5.0. This web application calls Web APIs to fetch information from SQL DB. Web and API applications are two separate applications hosted in Azure. I want to push some real time data every 2 minutes to all clients…
Certificate Revocation List
Hi All, We have a WPF application built on .Net Framework v4.8. This application acts as an HTTPs client. We are currently performing the certificate check using 'RemoteCertificateValidationCallback' method (except CRL). We now need to perform CRL…
How can I get MSBuild to restore any needed NuGet packages
I've looked at a ton of articles on this including here and here. None provide a solution that I can get to work. I have everything turned on for automatically doing this in VisualStudio. But on our build machine we build the .sln files using…
App is not displaying in IOS physical device in Debug and Release mode in .net 8 maui
Hi everyone, I need some help regarding App icon and app not showing in IOS physical device while debugging or in release mode in Visual Studio. The app icon is set properly in both info.plist and .csproj file. Recently we migrated to Dot-Net 8. In .NET…
Blazor Server: It is possible get Current Loged User In DbContext
Hello, I build blazor server multi tenant application and I wants to use HasQueryFilter in entity framework DbContext for predefined filter with TenantId. But I cannot get Current Loged User in DbContext. I inject to DB Context…
Displaying Fast Data
C# -> WPF -> .NET 6 Windows 10 64-bit, Visual Studio Community 2022 v17.9.2 I am writing a program in which I want to see the current from a 3-phase brushless DC Motor. Each phase will be displayed in a different colour to differentiate them. I…
How to get the position of NotifyIcon at runtime?
Hi, I want to retrieve the location and size of notifyIcon whenever it be clicked. The purpose is to set the application UI above the notifyIcon like the below photo. Please show me how I can do this with C#. Thank you!
Maui ios publish : Path's format not supported
Hello, I am encountering an issu when i am publishing, creating the archive of my maui application, i have the given error 16:02:09:546 Cannot create an IOS archive 'MT.TimeClean.Client.ForNative'. Process cannot be executed on XMA…
Could you suggest anti-tampering solution for .NET MAUI mobile application ?
Hi all, Our team is facing with a challenge that applying anti-tampering solution for our .NET MAUI mobile application on both Android and IOS. We tried checksum bytes from assembly but it's not work on Android (IOS is normal working). Also, we tried…
Encountering 'WebSocketException (0x80004005): The server returned status code '404' when status code '101' was expected' when signalr client starts a hub connection.
We have a .net core signalr client trying to establish a connection to signalr hub web application and a signalr service. The client successfully connects to the hub and signalr service, but fails when attempting to start the websocket transport to the…
WebAuthenticator
We want to integrate a payment application, but some payment gateway do not support native WebView. Therefore, we need to navigate to a browser for the payment process and then return to our app upon completion. However, WebAuthenticator shows a login…