Microsoft Q&A

.NET

13,004 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,004 questions with .NET-related tags

Sort by: Updated
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

Creating similar screen in ASP.NET

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,199 questions
asked 2023-02-03T14:08:07.0766667+00:00
Bill Johnson 1 Reputation point
commented 2023-02-03T14:17:41.0066667+00:00
cristopheB 476 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 …

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
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,199 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
edited a comment 2023-02-03T14:07:03.99+00:00
Kuler Master 141 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,575 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
606 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
3 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,575 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.
606 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
edited an answer 2023-02-03T13:56:41.01+00:00
Reza Aghaei 3,436 Reputation points Microsoft MVP
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…

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-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,575 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,814 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,575 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,575 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
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
answered 2023-02-03T12:53:32.14+00:00
AgaveJoe 17,131 Reputation points
1 answer

Timespan.FromHours(24) not working after publish application on Azure app service

Hi i hi have one small simple application which logs the information. So I have one basic application which is using System.Threading.Timer and setup timer to run my function once a day and create logs. Ex. _timer = new Timer(callbackAsync, null,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
621 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
318 questions
asked 2023-01-30T05:41:27.6566667+00:00
Rohan 0 Reputation points
answered 2023-02-03T12:48:38.19+00:00
Pritesh Patel 0 Reputation points
1 answer

asp.net setup doubts

Hello We Have developed one small web application which has aspx page and cs file c# as a code behind. We use database as sql express 2008 R2 Microsoft SQL Server Express Edition with Advanced Services ( sql server management studio …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,199 questions
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,546 questions
asked 2023-02-03T11:07:51.19+00:00
RAVI 256 Reputation points
answered 2023-02-03T12:45:50.6966667+00:00
Olaf Helper 25,806 Reputation points
0 answers

Add-Migration CreateIdentitySchema (2)

The tutorial below deals with authentication. One context is created when the project is first created at projectname.data.ApplicationDbContext; a second context is created later in the tutorial when scaffolding identity at…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
606 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,575 questions
asked 2023-02-03T12:35:37.3533333+00:00
Dean Everhart 401 Reputation points
1 answer

IEnum object True for All

Hi friends, I wonder if there is a way to use TrueForAll for IEnumerable<OrderDetail>? I am trying to check if all of the status = 1 or not. How can I check if all statuses in details are 1 or not? Thank you. var details =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,575 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-03T04:39:43.0233333+00:00
Cenk 666 Reputation points
answered 2023-02-03T11:52:16.87+00:00
Karen Payne MVP 29,236 Reputation points Microsoft MVP
0 answers

c# asp.net send form mail

string adSoyad = txtAdSoyad.Text; string konu = "Koçaslanlar Web Konu başlığı"; string epostaAdresi = txtMail.Text; string mesaji = txtMessage.Text; string ipAdresi =…

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
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,199 questions
asked 2023-02-03T11:30:34.83+00:00
kadir koçaslan 0 Reputation points
0 answers

How to add activity source to tracer provider dynamically for a single service?

In the blog here, https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing-instrumentation-walkthroughs , Its mentioned in the best practices for ActivitySource to consider creating a new one for each library rather than using a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,575 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
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,199 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
957 questions
asked 2023-02-03T11:25:14.44+00:00
Ravi Patel 0 Reputation points
1 answer

Access the odbc server outside the system

I have a application that is running locally on odbc server in my system localhost. How do i access it outside the system and over there internet.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
621 questions
asked 2023-01-12T05:08:52.09+00:00
ankit goel 401 Reputation points
commented 2023-02-03T11:18:06.9733333+00:00
ankit goel 401 Reputation points
1 answer

I changed the startup form but not applied in visual studio 2022

Hi, I changed the startup form but not applied in visual studio 2022, also any other changes I make doesn't take place although there is no errors in the error list, please help

.NET
.NET
Microsoft Technologies based on the .NET software framework.
621 questions
asked 2023-02-03T07:11:56.92+00:00
Hossam 0 Reputation points
answered 2023-02-03T11:17:32.13+00:00
Hossam 0 Reputation points
0 answers

How to access menu control reference from Master page - home_master.Master

Hello, I have a master page known as home_master.Master which has Menu Control. Now I want to handle Menu control dynamically through another aspx page (Non Master Page) which is located in Sub-folder i.e Admin. My intent is to create a Content…

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
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
asked 2023-02-03T05:58:36.1466667+00:00
Anoop Mathur 0 Reputation points
commented 2023-02-03T10:12:26.13+00:00
Anoop Mathur 0 Reputation points