Microsoft Q&A

.NET

12,917 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,917 questions with .NET-related tags

Sort by: Updated
0 answers

Linq query and violation of inserting null in database

Hello All, I have the following two model classes: public partial class EmployeeInfo { public int EmployeeInfoId { get; set; } public string LastName { get; set; } = null!; [DisplayName("First Name")] public string FirstName { get; set; } =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 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,941 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
589 questions
asked 2023-01-31T01:42:14.5866667+00:00
Anjali Agarwal 81 Reputation points
edited a comment 2023-01-31T06:04:16.03+00:00
Xinran Shen - MSFT 881 Reputation points Microsoft Employee
0 answers

Fix database errors in visual studio

The code for selection of a row in data grud view doesnt work for me (Microsoft visual studio 2019)

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,405 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,184 questions
asked 2023-01-30T16:21:53.3+00:00
Kenny Robby 0 Reputation points
commented 2023-01-31T05:55:48.9833333+00:00
Lan Huang-MSFT 9,041 Reputation points Microsoft Employee
0 answers

'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.)

I want to receive and display push notifications on my iPhone/iPad but I get the following message in Visual Studio for Mac: 'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.) I use .NET…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 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,941 questions
asked 2023-01-30T12:24:14.4933333+00:00
Kim Strasser 341 Reputation points
edited the question 2023-01-31T05:55:19.84+00:00
Jack J Jun 19,061 Reputation points Microsoft Employee
3 answers

How to convert xml to style so that browser can render html from xml when using RSS

I have downloaded a app called MessageBoard and trying to configure RSS Feed to output serialised data to browser. The result display a error message with code written in xml format. This XML file does not appear to have any style information associated…

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.
398 questions
asked 2023-01-30T01:05:53.09+00:00
peter liles 371 Reputation points
edited an answer 2023-01-31T05:54:31.7466667+00:00
QiYou-MSFT 851 Reputation points Microsoft Employee
0 answers

LINQ query to validate the selected day is not in a list of other dates

Hi , I want to validate a selected date that does not fall in a list of dates from other table. Basically when user selects a date from calendar,i need to validate that date is not in list of dates fetched from a table. How can i acheive this via LINQ…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 questions
asked 2023-01-31T05:35:57.64+00:00
Blooming Developer 196 Reputation points
0 answers

Failed to compile third-party dynamic libraries using AOT in the MAUI(Andriod) project?

Create a MAUI APP project with VS2022(Version 17.4.4) install TencentCloud.dll from nuget; direct publish project, it takes very long,long time; about three hours. finally compiler…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
asked 2023-01-30T01:36:17.93+00:00
晓宁 焦 0 Reputation points
commented 2023-01-31T05:31:48.7333333+00:00
晓宁 焦 0 Reputation points
1 answer

How to use UIWebView in the Xamarin.Forms iOS part?

Hi, I have a Xamarin.Forms application. I integrated Airwatch SDK (WorkspaceOne.Forms) into the iOS part. Now, I am trying to app tunneling with Airwatch SDK. For this reason I have added ModernHttpClient Handler to all of the HttpClients on my project.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,807 questions
asked 2023-01-26T11:10:54.5066667+00:00
Pelin Konaray 266 Reputation points
commented 2023-01-31T05:31:01.6333333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee
0 answers

.net upgrade assistant added net7.0-windows for asp.net MVC webapplication during migration

When I used .net upgrade assistant tool convert my webapplication with asp.net MVC with .cshtml views of .net framework 4.8 to migrate to .net 7 then the tool included .net 7-windows as the target framework. this is the same case for projects of type…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 questions
asked 2023-01-31T05:24:17.76+00:00
Tanv 0 Reputation points
edited the question 2023-01-31T05:25:29.64+00:00
Tanv 0 Reputation points
1 answer

Xamarin Form Add Multiple Binding

Please I need help. I have my Xamarin Form app that works very well with DataBinding to its View Model named OrderDetailViewModel. But today I have to add another DataBinding field in line 10 Binding OrderStatusMessage that is bind to its Xaml.cs file…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,807 questions
asked 2023-01-30T07:42:11.72+00:00
Alice 26 Reputation points
answered 2023-01-31T05:03:30.5166667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
0 answers

Failed to create release build in iOS due to bitcode issue of Plugin.Firebase in .net MAUI having dotnet 7.

Have implemented fcm push notification in MAUI having .net version 7 from the below link : https://cedricgabrang.medium.com/firebase-push-notifications-in-net-maui-ios-2f4388bf1ac. For testing , creating release build to test on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 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,941 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
614 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
368 questions
asked 2023-01-30T18:27:08.49+00:00
Priya Baghel 1 Reputation point
commented 2023-01-31T04:31:09.7233333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,581 Reputation points Microsoft Employee
0 answers

Unable to connect to .NET 7 GRPC service on running on Linux App Service

I have a GRPC service written in .NET 7. It works without issue locally. To publish it to an app service, I followed the instructions at https://github.com/Azure/app-service-linux-docs/tree/master/HowTo/gRPC/.NET/.NET%207 It says it's working. I get…

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,315 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 questions
asked 2023-01-30T05:06:21.61+00:00
Joe Ourada 0 Reputation points
commented 2023-01-31T04:30:25.0933333+00:00
Grmacjon-MSFT 8,596 Reputation points Microsoft Employee
1 answer

"dotnet" is not recognized

I have installed a fresh Windows10, and downloaded the "dotnet-install.ps1" from Microsoft: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script And I ran it with a powershell window: > .\dotnet-install.ps1 -Channel 7.0…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
614 questions
asked 2023-01-30T14:38:11.9433333+00:00
Daniel ‪ 0 Reputation points
commented 2023-01-31T04:12:52.3233333+00:00
Jack J Jun 19,061 Reputation points Microsoft Employee
0 answers

Session is not clearing after signing out from application razor pages

Hi, I want to clear my sessions,once i logout from my application. Now when i logout from application and click the back button,its navigating to the previous page. My logout button is given as a menu in _Layout page like this <li…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 questions
asked 2023-01-31T04:04:24.65+00:00
Blooming Developer 196 Reputation points
0 answers

Executing Stored Procedures based on condition in Razor Pages

Hi, I have a function that executes two stored procedures based on a condition. Stored procedure for the first condition works fine, but stored procedure for the second condition fails. public async Task<JsonResult>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
asked 2023-01-27T05:38:24.0033333+00:00
Blooming Developer 196 Reputation points
commented 2023-01-31T03:28:31.56+00:00
Blooming Developer 196 Reputation points
1 answer One of the answers was accepted by the question author.

.NET Core API Framework Warning

Hi All, I am developing an application using .NET Core with angular client. I am exporting the data to excel and generating the file in C# .NET Core. I am using a nuget package for the same. After installing the nuget package in the project I am getting…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 questions
asked 2023-01-27T14:03:43.83+00:00
Pratham Jain 81 Reputation points
accepted 2023-01-31T03:25:32.6033333+00:00
Pratham Jain 81 Reputation points
1 answer

how to replace retired flashupload functionality with fileupload for single image in asp.net?

how to replace retired flashupload functionality used for uploading multiple images with fileupload for uploading single image in asp.net? Since flashplayer has reached end of support, I need to replace with existing alternative of fileupload control by…

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.
398 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
614 questions
asked 2023-01-30T11:35:16.76+00:00
Omble, Omkar [JANIE NON-J&J] 0 Reputation points
answered 2023-01-31T03:21:37.03+00:00
Lan Huang-MSFT 9,041 Reputation points Microsoft Employee
1 answer

Why does the onclick event not work, in my razor pages hosted blazor component, in .net 7.0?

I've used the following code in multiple blazor web assembly applications hosted on a razor pages page under .net 5.0 and .net 6.0 before now. An application I was forced to upgrade to .net 7.0 has rendered the onclick command completely useless What…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 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,941 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.
783 questions
asked 2023-01-19T00:23:45.6266667+00:00
The Acme Cheese Company 0 Reputation points
answered 2023-01-31T03:14:23.05+00:00
Bruce (SqlWork.com) 28,031 Reputation points
0 answers

There were deployment errors. Continue? (MAUI - Android Emulator Problem)

I am new to MAUI. when I run the android emulator this error popup. But with windows Machine, it works fine. I reinstall visual studio and it still shows this error. Please Help me to solve this problem or give alternative solutions.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,807 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
888 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,405 questions
asked 2023-01-31T03:05:28.7+00:00
Chiranga Ranasinghe 0 Reputation points
0 answers

When Wpf datagrid apply group, the application becomes very slow.

My wpf application is build with .net framework 4.5.2, when datagrid apply group, in some computers the wpf application becomes very slow, but other computers do not have this problem. If the wpf application build with .net framework 4.8, all computers…

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,941 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
614 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,174 questions
asked 2023-01-30T09:35:18.2+00:00
luckyy 0 Reputation points
commented 2023-01-31T03:01:01.49+00:00
Hui Liu-MSFT 14,561 Reputation points Microsoft Employee
1 answer

.net core 7 web api very slow first call more that 32s

Hi, I have a problem in EF7 with core 7 web api. The first call take more that 30s and the second call take 60ms what is good. Any solution for that? Thanks

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,540 questions
asked 2023-01-23T10:36:52.5+00:00
Pedro Manuel Moço Ramalho 1 Reputation point
commented 2023-01-31T02:47:45.7966667+00:00
Zhi Lv - MSFT 18,701 Reputation points Microsoft Employee