Microsoft Q&A

.NET

12,933 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,933 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,545 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 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,951 questions
asked 2023-01-31T01:42:14.5866667+00:00
Anjali Agarwal 81 Reputation points
commented 2023-02-01T04:14:29.0066667+00:00
Anjali Agarwal 81 Reputation points
0 answers

Entity Framework 框架问题

dbcontext不同的实例,savechanges被互相影响怎么回事

.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
421 questions
asked 2023-01-31T08:38:53.5766667+00:00
赐 张 0 Reputation points
commented 2023-02-01T03:23:52.2166667+00:00
Jack J Jun 19,061 Reputation points Microsoft Employee
0 answers

Unable to Delete document using One drive API in C#

I am unable to delete a document by using one drive API in ASP.Net(c#) if the document is open. How to check the document is already open by using one drive API. Please help.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,189 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
49 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
302 questions
asked 2023-01-31T19:35:29.9833333+00:00
Pradyut Sinha 11 Reputation points
commented 2023-02-01T03:22:47.09+00:00
Zehui Yao_MSFT 3,431 Reputation points Microsoft Employee
1 answer

Shared Server : Application pool stops intermittently

There are 400+ websites that have been set up on the shared server. The application is developed in asp.net with framework 4.5. The server OS is Windows Server 2019 and it has 4 Core CPU, RAM of 170 GB It is observed that the application pool stops…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 questions
Internet Information Services
asked 2023-01-18T07:26:07.69+00:00
Kiran K 0 Reputation points
edited an answer 2023-02-01T03:12:05.2333333+00:00
Sam Wu-MSFT 5,211 Reputation points Microsoft Employee
1 answer

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,951 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 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,176 questions
asked 2023-01-30T09:35:18.2+00:00
luckyy 0 Reputation points
edited an answer 2023-02-01T03:04:17.38+00:00
Hui Liu-MSFT 14,641 Reputation points Microsoft Employee
0 answers

iOS application getting crashed "Could not set up parent class, due to: Invalid generic instantiation"

In a .Net MAUI project app is getting crashed when I am deploying it on device. below is the exception I am getting Any idea why this is happening always?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
asked 2023-01-31T09:28:45.81+00:00
Suyash Sadh 0 Reputation points
commented 2023-02-01T03:03:42.0433333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,666 Reputation points Microsoft Employee
1 answer

How to configure Auto update in MAUI application ?

Hi, Consider we have developed a MAUI application, for deployment of this MAUI application in multiple machine we created a setup file / package following this link -…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
asked 2023-01-20T05:42:27.7633333+00:00
Sanket Vinod Solanki 0 Reputation points
commented 2023-02-01T02:58:19.7433333+00:00
Sanket Vinod Solanki 0 Reputation points
1 answer

Shell Navigation and using a Dictionary to pass values.

I am trying to learn how to pass complex data types to a page using a Dictionary. As you can see in the example code below that Name was hardcoded, but I was wondering what is the best practice if I wanted to dynamically set the Name property in the view…

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,951 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
asked 2023-01-27T15:01:59.6933333+00:00
Ronald Rex 531 Reputation points
commented 2023-02-01T02:56:31.8033333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,491 Reputation points Microsoft Employee
2 answers

Is it possible to implement the custom security to the SSRS 2019?

Please share the code, if we can implement the custom security to the SSRS 2019

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,189 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,102 questions
asked 2023-01-31T11:53:34.3966667+00:00
Chitravelu Sivanandam 0 Reputation points
answered 2023-02-01T02:14:19.8133333+00:00
AniyaTang 2,026 Reputation points Microsoft Employee
2 answers

404 issue to the file

Hi, Due to issue like What to adjust below? <body style="background-color: ???; background-image:url(beautiful_Currency0e.jpg);">

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,189 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
446 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.
400 questions
asked 2023-01-28T08:50:16.07+00:00
Peter_1985 1,831 Reputation points
commented 2023-02-01T02:11:12.26+00:00
Peter_1985 1,831 Reputation points
0 answers

I'm getting code first approach validation error can you help me

I add error massege and I update database with (datanase-update -Force).but not working error massege. why ?

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,189 questions
asked 2023-01-31T13:51:55.46+00:00
Harun Ergün 100 Reputation points
edited the question 2023-02-01T02:09:14.5433333+00:00
XuDong Peng-MSFT 4,576 Reputation points Microsoft Employee
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,809 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
asked 2023-01-31T03:05:28.7+00:00
Chiranga Ranasinghe 0 Reputation points
commented 2023-02-01T02:03:14.1033333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
0 answers

BackgroundService Serilog how to email?

Hi, In my background service, I would like to send error logs. Although there is an error, the email sink does not work. The error is being written to the file and mssqlserver successfully. Can you please share your experiences? Here is the…

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,951 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
asked 2023-01-31T14:40:53.22+00:00
Cenk 666 Reputation points
commented 2023-02-01T01:36:07.2566667+00:00
Karen Payne MVP 29,236 Reputation points Microsoft MVP
2 answers

Reading form fields after submit (POST) in Blazor Server?

I have a login form in Blazor Server App and use POST to send login data (email and password). <form id="LoginForm" Model="LoginModel" action="cookie" method="post"> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 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,951 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
asked 2023-01-28T19:43:14.55+00:00
perfect code 141 Reputation points
commented 2023-02-01T01:34:52.0566667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
0 answers

Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985} (8d59f552-5e3e-48c3-a91e-e50041b57719 id=0x2)

I am using Version VS 17.5.0 Preview 2.017.5.0 Preview 2.0. In this when I debug it with my mobile it gives me error Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985}…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
asked 2023-01-30T08:42:52.66+00:00
anil kumar 51 Reputation points
commented 2023-02-01T01:34:09.8666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
1 answer

APT2144 invalid file path

VS 2022 Preview... Trying to build and run "Notes" tutorial getting 2 APT2144 invalid file path error in file Xamarin.Android.Aapt2.targets. Error message gives a file path, which I can find using File Explorer. Help on error message says it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
asked 2023-01-28T21:39:20.0033333+00:00
Scott Phillips 0 Reputation points
commented 2023-02-01T01:09:41.47+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
1 answer

Get reminders based on data in a database

I want to get reminders for some Appointments that I have saved in database and they have a notificationTime property witch is the time when a notification needs to be displayed. My approach so far is to write some kind of job that runs 1 or 2 times a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,809 questions
asked 2023-01-29T17:37:55.69+00:00
Bogdan Nicoara 0 Reputation points
commented 2023-02-01T01:08:36.1666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
1 answer

What is the MAUI equivalent of .NET Core's `_Layout.cshtml`?

You see, there's this image which needs to show up on every page of my MAUI app, and if it were a .NET Core app, I'd simply add it in _Layout.cshtml. However, with MAUI, I don't see a way of doing that easily. How would I go about this?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 questions
asked 2023-01-29T15:01:10.3966667+00:00
Uchchay Dugal 21 Reputation points
commented 2023-02-01T01:05:30.69+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
1 answer

Empty listview items after down and up scrolling

Hi, iOS app, MVVM pardigm, I populate an ObservableCollection of a custom type and through BindingContext populate a ListView on the Page. that works fine. I can see the ListView items properly and can scroll it. What I constantly see is when I scroll…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
asked 2023-01-30T09:02:03.32+00:00
yaron kadman 81 Reputation points
commented 2023-02-01T01:02:00.07+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,666 Reputation points Microsoft Employee
5 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.
400 questions
asked 2023-01-30T01:05:53.09+00:00
peter liles 371 Reputation points
answered 2023-02-01T00:39:04.25+00:00
peter liles 371 Reputation points