Microsoft Q&A

.NET

13,008 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,008 questions with .NET-related tags

Sort by: Updated
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
621 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
148 questions
asked 2023-02-03T07:29:13.5766667+00:00
Faijal Vahora 0 Reputation points
edited an answer 2023-02-03T15:36:48.84+00:00
AgaveJoe 17,131 Reputation points
1 answer One of the answers was accepted by the question author.

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"); …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,577 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
607 questions
asked 2023-02-03T04:57:40.42+00:00
Anjali Agarwal 101 Reputation points
accepted 2023-02-03T15:25:16.3233333+00:00
Anjali Agarwal 101 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,577 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
607 questions
asked 2023-02-03T14:25:12.16+00:00
Dean Everhart 401 Reputation points
answered 2023-02-03T15:16:25.41+00:00
AgaveJoe 17,131 Reputation points
2 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,577 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,989 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
607 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
621 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
484 questions
asked 2023-02-03T09:02:57.8733333+00:00
Mr Edge 121 Reputation points
commented 2023-02-03T15:13:25.68+00:00
Karen Payne MVP 29,236 Reputation points Microsoft MVP
0 answers

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…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
8,547 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,200 questions
asked 2023-02-03T15:13:20.1966667+00:00
Milind Panchal 0 Reputation points
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,577 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,696 questions
asked 2023-02-03T15:04:51.97+00:00
john john 681 Reputation points
0 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
621 questions
Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,321 questions
asked 2023-02-02T18:51:04.3666667+00:00
Mayuri Barve 1 Reputation point
commented 2023-02-03T14:48:09.9433333+00:00
ajkuma 13,471 Reputation points Microsoft Employee
0 answers

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,815 questions
asked 2023-02-03T14:37:16.5833333+00:00
vanKraster 146 Reputation points
edited the question 2023-02-03T14:43:02.09+00:00
vanKraster 146 Reputation points
2 answers

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

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,200 questions
asked 2023-02-03T14:08:07.0766667+00:00
Bill Johnson 1 Reputation point
edited an answer 2023-02-03T14:42:58.8033333+00:00
AgaveJoe 17,131 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,577 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,406 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,601 questions
asked 2023-02-02T10:46:56.6733333+00:00
August Asheim Birkeland 20 Reputation points
commented 2023-02-03T14:39:58.67+00:00
August Asheim Birkeland 20 Reputation points
0 answers

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#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,989 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,200 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
407 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
238 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,207 questions
asked 2023-02-02T14:44:17.87+00:00
Kuler Master 141 Reputation points
commented 2023-02-03T14:38:46.7066667+00:00
AgaveJoe 17,131 Reputation points
1 answer

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…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,989 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
621 questions
asked 2023-02-01T17:23:47.48+00:00
Markus Freitag 2,961 Reputation points
commented 2023-02-03T14:38:18.8166667+00:00
Markus Freitag 2,961 Reputation points
1 answer

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,815 questions
asked 2023-01-26T09:28:50.3866667+00:00
cristopheB 476 Reputation points
answered 2023-02-03T14:24:54.09+00:00
cristopheB 476 Reputation points
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
621 questions
asked 2023-01-24T15:11:46.67+00:00
Matt 0 Reputation points
answered 2023-02-03T14:17:49.98+00:00
Matt 0 Reputation points
1 answer One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,577 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
607 questions
asked 2023-01-18T22:23:08.27+00:00
Dean Everhart 401 Reputation points
accepted 2023-02-03T14:06:21.98+00:00
Dean Everhart 401 Reputation points
1 answer

[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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
621 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,989 questions
asked 2023-02-03T13:15:24.28+00:00
Juan Gomez 0 Reputation points
answered 2023-02-03T13:48:44.3133333+00:00
Viorel 82,746 Reputation points
1 answer One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,577 questions
Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
735 questions
Microsoft Graph Teamwork API
asked 2023-02-03T07:46:38.57+00:00
BERKAY ŞAHİN 0 Reputation points
edited a comment 2023-02-03T13:42:55.9533333+00:00
BERKAY ŞAHİN 0 Reputation points
0 answers

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,815 questions
asked 2023-02-03T13:29:18.8233333+00:00
Devireddy, Bhargav 0 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,577 questions
Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
122 questions
asked 2023-02-02T22:50:47.77+00:00
Uriel Kluk 21 Reputation points
answered 2023-02-03T13:23:50.0266667+00:00
Matthijs van der Veer 3,651 Reputation points Microsoft MVP
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,577 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
318 questions
asked 2023-02-03T10:53:54.1666667+00:00
Stian Håve 0 Reputation points
commented 2023-02-03T13:14:27.9966667+00:00
JasonPan - MSFT 1,146 Reputation points Microsoft Employee