Content
Getting lots of Task Canceled Exception while calling .net API from .net 6 WebApp
System.Threading.Tasks.TaskCanceledException: at System.Net.Http.HttpClient.HandleFailure (System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at…


embedding a pdf file in my chrome browser
I am trying to embed a pdf file on my web page. In order to achieve this, I have the following code in my controller: public IActionResult Index() { string path = Path.Combine(_environment.WebRootPath, "packageFiles"); …


Identity Scaffolding Context class
Should the existing context class be chosen at projectname.data. or a second context class be created at projectname.areas.identity.data.WebApplication1Context. Confused about the wording in the tutorial: "create a new Data context class. Accept the…


How to create environments with appSettings?
In previous projects i could click the Configuration or Debug menu (in the top bar) and set a new Configuration. This was displayed when i expanded web.config and i could use this to change environments to use different database connection strings…


How to fix provider: SSL Provider, error: 0 - One or more of the parameters passed to the function was invalid.
We have updated TLS 1.1 to 1.2 on application server where ASP.NET web application is hosted on IIS. The application is built with .Net framework 4.7.2. But after installing cipher on the application server, application unable to connect the SQL database…


Create client credential for Azure AD's App registration
I created a new ASP.NET Core MVC 6.0 web application >> and i define it to use Azure AD for authentication, as follow:- then i were asked to create owned application, so i created one named "ad" as follow:- and inside my application's…
Knowlarity Super Receptionist API Integration to act upon a receiving call
Hello, I have a requirement wherein I need to perform certain action in my WEB application based on phone call receiving event that happens in a third party application. Our customer is using Knowlarity Super Receptionist calling API to receive customer…


Create Audio and Video Streaming with Xamarin Forms
Hi to all, I would like to create an audio and video call streaming between 2 apps, a simple one to one call with Xamarin Forms. I have seen this Azure streaming…


Creating similar screen in ASP.NET (Web forms)
Hi, I would like to create something similar to this in ASP.NET: Which is the best way to do it? Thanks


Max size of System.IO.MemoryStream
Im trying to fetch a .bak file of 3GB size and upload to my blob storage using the SSH.NET package. I get an System.IO.IOException: stream was too long error! I cant find the max size of handeled streams for the System.IO.MemoryStream anywhere. Do…


X509Certificate Client Authentication
Hello guys, I have the following code that was working perfectly fine for 3 years already. ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 …


C# TcpClient/TcpListener / Full Duplex Communication / Sample
Hello! I have already asked. There must be a good example of Socket, TcpClient, TcpListener that does the following. Duplex operation between client and server Automatic reconnection On 10 failed attempts, error message. Read until the root element…


xamarin android emulator android > 9 ? how to make ?
Hello all, I have vs 2022 entreprise installed on my computer all works fine with emulator below android 9 .. i can push my app , debug ans so on .. I've try to make an android 10 / 11 and so on but impossible to start it ,, Of course i have the sdk who…


Aes.Create() crashing on Windows Server 2022
Has anyone encounter problems with Aes.Create() throwing an exception "Exception has been thrown by the target of an invocation". I just migrated to a new server with Windows Server 2022 on it and all of a sudden I am getting this error…
Paginated List not displaying second page
The below works to display the first page containing 3 records of 6 of a paginated list but when you click on the "Next" button, it has the following result: [https://localhost:7045/PropertySet01?pageNumber=2 This localhost page can’t be…


[MacOS] Console Application - Issue recognizing the file Path
Dear community, I have this issue: I deployed a console application (C# - Visual Studio - Unix Executable File). As you will see in the following screenshots, the issue is that running by double-click or using the full path doesn't allow the Terminal to…


How to send adaptive card templates with Graph API ?
Hi. I am trying to send adaptive card to a chat with graph api and i am using .net core web api. I want to try with different adaptive card. This question…


In Samsung S22 on clicking the camera got rotated automatically in xamarin forms shell application
In Xamarin forms shell application when user adds takes photo or document clicks on camera the camera in Samsung S22 was rotated automatically. This is seen only in Samsung S22. As i tested in Samsung S20 Ultra as well i was working fine in…


How to query the device twin graph using the built-in `LastUpdatedOn` property from the BasicDigitalTwin?
The BasicDigitalTwin holds a built-in property LastUpdatedOn. As a developer, I want to run a query to find all the stale or fresh twins, example: SELECT * FROM DIGITALTWINS WHERE LastUpdatedOn > '{yesterday}' This query is syntactically correct but…


Unable to find Azure App service after deploy
After deploying my app and creating an app service through Visual Studio 2022 I am unable to find and delete my App Service. it is connected through the publish profile, which is the only location where I can access my app service: going into Azure, my…

