Microsoft Q&A

.NET

21,922 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,922 questions with .NET-related tags

Sort by: Updated
1 answer

We have System.Configuration.ConfigurationManager 5.0.0 nuget package and Microsoft.Data.SqlClient 4.1.0 nuget package configured in an azure function to establish the connection with database. For that we are trying to run await sqlConnection.OpenAsync(

We have System.Configuration.ConfigurationManager 5.0.0 nuget package and Microsoft.Data.SqlClient 4.1.0 nuget package configured in an azure function to establish the connection with database. For that we are trying to run  await…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,735 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,794 questions
Azure SQL Database
asked 2023-12-07T12:30:15.85+00:00
Soubhagya Patra 0 Reputation points
commented 2023-12-11T14:47:52.53+00:00
MuthuKumaranMurugaachari-MSFT 18,426 Reputation points
0 answers

MAUI -Crud operations in XML

Hi, I'm using Maui app , I need to create/add/delete operations in XML. The node is Job id(idenatifier) , vault..... How I create the xml. How I add new node to xml. How I delete node from XML using Job id(idenatifier). Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,338 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,217 questions
asked 2023-12-11T14:39:40.7266667+00:00
דני שטרית 1,776 Reputation points
0 answers

Is it safe to create tokens in PageModel extensible classes and send codes to email? Are such classes processed on the server or in the client in browser?

Hi! I have a class that extends Microsoft.AspNetCore.Mvc.RazorPages.PageModule and has an extension .cshtml.cs and there are quite dangerous events happening there - the creation of tokens, the formation of verification codes, sending an email to the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,794 questions
asked 2023-12-11T12:34:38.32+00:00
Volk Volk 401 Reputation points
edited a comment 2023-12-11T14:37:37.4533333+00:00
Volk Volk 401 Reputation points
2 answers

Azure Functions App | Certificate Based API Calls

Hi I have a Azure Function App. I have a target system api call to be made from the function app. It needs to be a mTLS api call. Please guide me how to send a certificate in api call from function apps ? Where to store the certificate and how to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,794 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,338 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,735 questions
asked 2023-12-08T14:31:24.0066667+00:00
Abhay Chandramouli 941 Reputation points
commented 2023-12-11T14:24:26.0033333+00:00
MuthuKumaranMurugaachari-MSFT 18,426 Reputation points
1 answer

How to fix redirection with the use of sweetalert2 javascript in .NET MVC Identity?

After the user has logged in? The error message displays: No webpage was found for the web address: https://localhost:44338/Identity/Account/Index I tried this code in the OnPostAsync in login.cshtml.cs and also to my login.cshtml …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,338 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,066 questions
asked 2023-12-11T06:34:10.7966667+00:00
MiKhel Navarra 0 Reputation points
commented 2023-12-11T14:16:47.7866667+00:00
MiKhel Navarra 0 Reputation points
2 answers

Visual studio 2022 Installation error

Can someone help me? I am getting this warning when I try to install .NET development for visual studio 2022 : Couldn't install Microsoft.VisualStudio.Community.Shared.Msi

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,125 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,078 questions
asked 2022-11-19T19:35:11.68+00:00
lambarini 16 Reputation points
edited an answer 2023-12-11T14:04:25.9033333+00:00
Chandler Bing 0 Reputation points
0 answers

After migrating from IWebHostBuilder to IHostBuilder, the ASP.NET Core API is unable to access the 'applicationUrl' configuration from 'launchSettings.json'.

Hello, I recently transitioned my ASP.NET Core API from utilizing IWebHostBuilder to IHostBuilder as part of an upgrade to align with modern .NET practices. Post-migration, I'm facing a challenge: the API fails to launch correctly in both development…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,794 questions
asked 2023-12-08T14:36:23.1066667+00:00
Subir Das 0 Reputation points
edited a comment 2023-12-11T13:35:26.1333333+00:00
Subir Das 0 Reputation points
1 answer One of the answers was accepted by the question author.

Custom Line Control that can be Moved

I hope someone can help with my latest little project. My aim is to create a line CustomControl that has a Thumb at each end. My reason for utilising a Thumb is that I believe this would be the better solution to enable amendments to the line length and…

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.
9,511 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,564 questions
asked 2023-12-08T14:48:49.9833333+00:00
BigH61 541 Reputation points
accepted 2023-12-11T13:11:32.38+00:00
BigH61 541 Reputation points
0 answers

code snippet for BindableProperty

I am creating a BindableProperty snippet, so far, I have this. CodeSnippet Format="1.0.0"> <Header> <Title>BindableProperty</Title> <Shortcut>bp</Shortcut> <Description>This will create a…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,125 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,217 questions
asked 2023-12-06T17:09:40.53+00:00
Eduardo Gomez 2,916 Reputation points
commented 2023-12-11T12:48:16.74+00:00
Anna Xiu-MSFT 20,656 Reputation points Microsoft Vendor
7 answers

Load a file using FileUpload control inside modal popup when using ModalPopupExtender

No file is present when uploading ? <div class="Modalform" style="display:none;" id="mySidebar"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,731 questions
asked 2023-11-13T00:58:25.0233333+00:00
peter liles 496 Reputation points
commented 2023-12-11T12:46:27.37+00:00
peter liles 496 Reputation points
0 answers

How do I insert a value from the Localizer into an Error Message?

Hi! My question is simple, but a implementation should probably be so complicated - it is easier to me to fly to the moon and return. ) How do I insert a value from the Localizer into an Error Message? I have a Localizer in the class: IStringLocalizer…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,794 questions
asked 2023-12-11T11:51:46.7933333+00:00
Volk Volk 401 Reputation points
edited the question 2023-12-11T12:41:03.6866667+00:00
Volk Volk 401 Reputation points
2 answers

Signing WPF application for distribution

PLEASE Ignore this question and refer to my previous question https://learn.microsoft.com/en-us/answers/questions/1460328/signing-wpf-application-for-distribution =================================================== I have developed a WPF application that…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,125 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.
9,511 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,564 questions
asked 2023-12-10T17:30:12.3666667+00:00
Wally96333 41 Reputation points
answered 2023-12-11T12:29:47.81+00:00
Monika Mac 80 Reputation points
1 answer

MAUI WebView access geolocation

On my .NET MAUI project (Android) I'm using a WebView to access a webpage, which does ask for location permission. I've already added native location permission to my app, which does ask when I start it. But when the webpage tries to access the location,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,217 questions
asked 2023-12-10T17:36:51.0566667+00:00
Andy 0 Reputation points
commented 2023-12-11T12:06:45.56+00:00
Andy 0 Reputation points
0 answers

Splash Screen icon is not visible on first launch for Android12 in .Net MAUI Android application

Create a Sample .Net MAUI application Build and Deploy android Project On first launch, the .Net icon is not visible, only purple screen appears This same behavior is happening in our Android Project as well Attaching the image of Sample application…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,217 questions
asked 2023-12-08T07:28:27.6533333+00:00
Hussain, Sakina 0 Reputation points
commented 2023-12-11T11:29:09.2433333+00:00
Hussain, Sakina 0 Reputation points
6 answers

How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."

Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,794 questions
asked 2023-06-03T08:29:57.58+00:00
Vaishnavi P 20 Reputation points
answered 2023-12-11T11:00:56.1+00:00
Mehmet Cenk Yenikoylu 0 Reputation points
0 answers

EF Reverse Engineering can't handle " #" in column name.

I have a database that uses two different fields: string "Asset int "Asset #" After running EF Reverse Engineering on the existing database, it creates a model with: [Column("Asset")] public string Asset {…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
635 questions
asked 2023-12-11T05:44:34.2966667+00:00
Bill Duffy 0 Reputation points
commented 2023-12-11T10:45:01.8933333+00:00
Wenbin Geng 326 Reputation points Microsoft Vendor
1 answer

How to implement multi-level row grouping in .Net Core MVC?

I need to build a data grid with multi-level row grouping in .NET Core MVC for my current project, but I couldn't find any free resources online for this requirement. See the attached screenshot for reference. Can someone recommend any free resources or…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,794 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,066 questions
asked 2023-12-08T13:09:51.9533333+00:00
Inturi Raghu Babu 0 Reputation points
commented 2023-12-11T10:33:51.9833333+00:00
Inturi Raghu Babu 0 Reputation points
1 answer One of the answers was accepted by the question author.

Copy files/folder in two steps

Hi, I have maui app that user select files and/or folder from source drive I want to copy the selections into destination in two steps. 1.Step 1 :Move first to temp folder 2.Step 2 : from temp folder to destination. How is can be done ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,217 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,338 questions
asked 2023-12-07T07:47:54.9566667+00:00
דני שטרית 1,776 Reputation points
commented 2023-12-11T10:19:46.6+00:00
דני שטרית 1,776 Reputation points
0 answers

run winforms as webform on browser using vb net

Hi there Microsoft Developers and Community i would like to ask for this future if Microsoft wants to add on the new Generations of net could you guys create a ( webframeworks ) to run windforms on browser and mobile code the program similar…

Windows
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.
4,100 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.
661 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,741 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
11,168 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,412 questions
asked 2023-12-10T19:48:58.6133333+00:00
Vereato 0 Reputation points
commented 2023-12-11T09:57:52.1066667+00:00
XuDong Peng-MSFT 6,791 Reputation points Microsoft Vendor
1 answer

how to get checkbox value in bool to model in . net core. IsEnable value as array in serialize

public class AreaModel { public int AreaId { get; set; } public bool IsEnable { get; set; } = true; } <form asp-area="MasterData" asp-controller="Home" asp-action="CreateUpdateArea"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,794 questions
asked 2023-12-11T09:47:57.8933333+00:00
Mathu 0 Reputation points
edited the question 2023-12-11T09:57:13.2733333+00:00
Mathu 0 Reputation points