Microsoft Q&A

.NET

15,380 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,380 questions with .NET-related tags

Sort by: Updated
0 answers

Json bringing back unwanted properties

WebAPI Core (.Net 6) I have a Model class which contains multiple properties. The properties can have empty values. Only the ones i need should be produced. public class ClientFocus { public string? Item {get; set;} public string?…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,171 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.
8,240 questions
asked 2023-06-09T13:46:25.44+00:00
Keith Viking 20 Reputation points
1 answer One of the answers was accepted by the question author.

I need to hold the selected ListView Item in a temporary variable.

I need to hold the selected ListView Item in a temporary variable so that the user can Cancel an Edit operation and the ListView Item will revert back to its original values. I can't understand why Temporaryselectedudf changes to the SelectedUdf value.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,440 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.
8,240 questions
asked 2023-06-08T18:53:07.3566667+00:00
Ronald Rex 811 Reputation points
accepted 2023-06-09T13:35:47.0266667+00:00
Ronald Rex 811 Reputation points
3 answers

How to fix "The target process exited without raising as CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core"

My application console application is build on .net core 7 and gave error when running on docker container, several other console applications running properly but one gave problem. Docker container logs given below: Targer OS is linux. I have tried…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,171 questions
asked 2023-01-24T11:56:16.52+00:00
Faisal suleman 5 Reputation points
commented 2023-06-09T12:58:01.43+00:00
Jerome Lecerf 0 Reputation points
0 answers

form responses showed in website

How do I make a website that uploads automatically the answers of a form?

Azure SQL Database
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.
560 questions
asked 2023-06-09T12:10:29.4066667+00:00
Noah 0 Reputation points
0 answers

How do I fix the error: "Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'dotnet-aspnet-codegenerator-design, Version=7.0.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'."

The above error happens when I try to create a scaffold for the identity, I have installed all the necessary packages that are needed for code generation but it still keeps giving me the same output. I also tried rebuilding the project and restarting…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,176 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,171 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
858 questions
asked 2023-06-09T10:23:15.2333333+00:00
Emmanuel Genga 0 Reputation points
commented 2023-06-09T12:06:02.8266667+00:00
Emmanuel Genga 0 Reputation points
0 answers

Xamarin Forms: Implement push notification tapping on android platform

I have implemented push notification on my Xamarin forms application using FCM. My code [Service(Enabled = true, Exported = true)] [IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })] public class FirebaseNotificationService :…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,014 questions
asked 2023-06-07T14:54:25.0666667+00:00
Sreejith Sreenivasan 111 Reputation points
edited a comment 2023-06-09T11:38:19.6+00:00
Sreejith Sreenivasan 111 Reputation points
1 answer One of the answers was accepted by the question author.

Maui android debugging exception in correct situation

Hello all in the middle of debug stepping in a correct situation suddenly I got this ex. what this mean and what I need to do. Thank you very much.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,440 questions
asked 2023-06-07T11:36:40.9066667+00:00
Haviv Elbsz 826 Reputation points
accepted 2023-06-09T11:12:54.02+00:00
Haviv Elbsz 826 Reputation points
1 answer

C# ASP.NET MVC - How to retrieve all values from a from that can have unknown input field count

I have a simple form, that allows the user to edit a drop down list that exists within another form. In this the user can view the current drop down list values, edit them, delete them or create more. This opens this form in a modal: Here you can edit…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,479 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,176 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
858 questions
asked 2023-06-09T07:49:58.66+00:00
ChrisU 226 Reputation points
answered 2023-06-09T10:48:27.46+00:00
AgaveJoe 22,796 Reputation points
0 answers

ChannelFactory resolving an address for a different tenant

We have a multi tenant architecture in the cloud. I have noticed a strange behavior where often App1 of tenant 1 calls App2 of tenant 2. This is not a frequent behavior and happens few times a day. Below is a generic code snippet that calls App2 from…

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,347 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,176 questions
asked 2023-06-06T08:10:50.89+00:00
Rohit Kamble 0 Reputation points
edited the question 2023-06-09T10:38:57.16+00:00
Rohit Kamble 0 Reputation points
1 answer One of the answers was accepted by the question author.

Net Maui CollectionView How to do bindable property for orientation ?

custom collectionview is not working like that what is wrong with them ? <custom:TabsCollectionView Grid.Row="1" ItemSource="{Binding CartMenu}" AOrientation="Vertical" ASpan='3'/> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,440 questions
asked 2023-06-08T20:19:55.3766667+00:00
Sami 341 Reputation points
accepted 2023-06-09T10:27:16.3766667+00:00
Sami 341 Reputation points
0 answers

Why are properties empty when converting to Json?

Visual Studio 2022 + all updates. WebAPI Core (.Net 6) Installed Newtonsoft.Json (latest version as of today) I have a Model class which contains multiple properties. The properties can have empty values. Only the ones i need and contain a value should…

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.
8,240 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,171 questions
asked 2023-06-09T09:31:28.8033333+00:00
Keith Viking 20 Reputation points
commented 2023-06-09T10:26:34.2533333+00:00
Keith Viking 20 Reputation points
1 answer

How to install C# and .NET on Linux Mint 21.1

dotnet --version The command could not be loaded, possibly because: * You intended to execute a .NET application: The application '--version' does not exist. * You intended to execute a .NET SDK command: No .NET SDKs were found. What does…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,176 questions
asked 2023-06-08T11:22:23.9533333+00:00
Harikrishnan Madhavankutty 5 Reputation points
answered 2023-06-09T10:22:27.49+00:00
Olaf Helper 29,196 Reputation points
2 answers

I want add validation with phone and email

If the user wants to register with the same email and phone, I want to get a warning that this email and phone have been registered before. I tried a lot of Ajax code about this, but I was not successful. Can you help? @model…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
858 questions
asked 2023-06-08T14:29:06.58+00:00
Harun Ergün 220 Reputation points
answered 2023-06-09T10:16:48.56+00:00
Lan Huang-MSFT 15,296 Reputation points Microsoft Vendor
0 answers

How to create Relay command in Master Page ViewModel

MASTER PAGE(XAML) <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,440 questions
asked 2023-06-09T07:26:53.1566667+00:00
Sowndarrajan Vijayaragavan 100 Reputation points
edited the question 2023-06-09T10:09:31.7266667+00:00
Sowndarrajan Vijayaragavan 100 Reputation points
1 answer

I want a database change to be reflected in web forms page without polling the database

Hello I have a web page whose records are based on a database table. If there is a change in the database table I wish to get it reflected on my front end web form in vb.net code behind. I do not want my web page to be refreshed by a user interaction…

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.
560 questions
asked 2023-06-07T02:04:37.62+00:00
Manoj Gokhale 0 Reputation points
edited an answer 2023-06-09T10:03:27.5166667+00:00
QiYou-MSFT 2,761 Reputation points Microsoft Vendor
2 answers

Blazor Server - downloading excel in the controller

Hi, In my Blazor Server application, I am trying to write data into Excel and download it in the controller. Here is the controller; var existingRecords = await _stockUniqueSerialPinUseCase.ExecuteAsync(customerList); if (existingRecords.Count > 0) { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,171 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
989 questions
asked 2023-06-06T06:49:55.87+00:00
Cenk 886 Reputation points
commented 2023-06-09T09:23:34.3233333+00:00
Chen Li - MSFT 961 Reputation points Microsoft Vendor
0 answers

CreateRendererWithContext .net MAUI android

0 i am re using xamarin forms renderer in MAUI. while creating renderer with "CreateRendererWithContext" method getting exception. below is my code. using AndroidPlatform =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,440 questions
asked 2023-06-01T09:46:36.4266667+00:00
Shirisha Siddamshetti 40 Reputation points
commented 2023-06-09T09:10:37.17+00:00
Shirisha Siddamshetti 40 Reputation points
0 answers

.net maui change Android and iOS overview icon

In .net maui Android when the "Overview" button in clicked an Icon is shown. How do I change that icon ? On iOS how to change the ".NET" to something else ?:

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,186 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,440 questions
asked 2023-06-08T16:10:47.48+00:00
Eigil Krogh Sorensen 61 Reputation points
commented 2023-06-09T08:28:50.8533333+00:00
Eigil Krogh Sorensen 61 Reputation points
1 answer

How to use Key Vault reference locally in asp.net (framework) application

Key Vault reference works locally for DotNet Core apps (Functions, ASP.NET Core). But can we use Key Vault reference locally in ASP.NET (Framework) applications. E.g. In framework app, we read app setting values as follows: using…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
776 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.
560 questions
asked 2023-06-09T07:09:44.6533333+00:00
Bhavya Shah 0 Reputation points
answered 2023-06-09T07:56:50.3933333+00:00
Lan Huang-MSFT 15,296 Reputation points Microsoft Vendor
0 answers

System.NullReferenceException message in creating Entity Data Model in an MVC project

Hi everyone, I created a localdb sql server file(School.mdf) in the App_Data folder in an MVC project using .Net Framework 4.8. I then added a table(Student) with only two attributes for testing. I tried to add new ADO .Net Entity Data Model into the…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
245 questions
asked 2023-06-08T03:45:14.61+00:00
Andy Chiou 0 Reputation points
commented 2023-06-09T07:43:03.0266667+00:00
Andy Chiou 0 Reputation points