Microsoft Q&A

.NET

12,933 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

9,746 questions with .NET-related tags

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

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,175 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,950 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 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
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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 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,950 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 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
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
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
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"> …

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,950 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 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
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
2 answers One of the answers was accepted by the question author.

Using Xamarin framework for coding in C#

I have completely mortgaged off my new Mac Mini 2020 with M1 chip implanted. Now that I have done that, and that I have an iPhone and Android mobile OS installed tablets - namely, a Samsung tablet brand, I want to learn quickly to code using their…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,809 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,950 questions
asked 2023-01-31T13:50:09.4533333+00:00
John 121 Reputation points
accepted 2023-01-31T23:24:24.6766667+00:00
John 121 Reputation points
4 answers

Query Parameter on TVP - parameters cannot by DbNull

Hey Until recently this worked ok (or at least i thought it did). I am passing a table row in a parameter to a stored procedure but i am getting an error Table-valued parameters cannot be DbNull Im assuming its a prevention on SQL server side as in my…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 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,502 questions
asked 2023-01-31T01:31:54.24+00:00
NachitoMax 406 Reputation points
answered 2023-01-31T23:08:44.1333333+00:00
NachitoMax 406 Reputation points
2 answers

Upgrade my Azure Function from .net Core 3.1 to .net Core 7.0. Error "'Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstraction

I have an Azure Function which run on .net core 3.1, but when i change the .net version from 3.1 to 7 i got this error:- System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=7.0.0.0,…

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
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,584 questions
asked 2023-01-27T16:29:45.1233333+00:00
john john 681 Reputation points
edited an answer 2023-01-31T22:23:33.4466667+00:00
Mike Urnun 4,866 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Auth cookie is deleted by the browser when it closes

I have a strange problem. When I close my browser (whether Chrome or MS Edge), my authentication cookie is deleted. Consequently, the next time I start the browser, I have to log in again. My controller looks like this: ClaimsIdentity claimsIdentity =…

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,950 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 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
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
785 questions
asked 2023-01-31T19:34:06.25+00:00
perfect code 141 Reputation points
answered 2023-01-31T20:24:19.61+00:00
AgaveJoe 17,096 Reputation points
2 answers One of the answers was accepted by the question author.

How do I get the List from firebase sorted?

The items display but I want them to be in ClubId order but can't get it to sort. What do I need to fix? Model/Club.cs public class Club { public int ClubId { get; set; } public string DateTime { get; set; } …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,809 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,950 questions
asked 2023-01-16T01:25:36.04+00:00
Bruce Krueger 286 Reputation points
accepted 2023-01-31T19:54:06.73+00:00
Bruce Krueger 286 Reputation points
2 answers

Unable parse Json

Can any body help me parse the below json in ASP.net C# i need the grantedTo": email and Id also. I have tried many ways but unable to parse. Can anybody…

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-26T19:22:34.45+00:00
Pradyut Sinha 11 Reputation points
commented 2023-01-31T19:49:12.7933333+00:00
Pradyut Sinha 11 Reputation points
2 answers

How can we make asynchronous call to edge hub trigger from a C# edge module ?

The iot edge solution is having 2 modules, first module is a C# module and second is Edgehub trigger module. First module is sending data in a loop to second module. I want the edge hub module to execute asynchronously static async Task…

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
382 questions
Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
251 questions
.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things:
22 questions
asked 2022-11-11T13:03:53.49+00:00
Satyam Chauhan 171 Reputation points
answered 2023-01-31T19:18:45.75+00:00
RAVENO SPANNEBERG 0 Reputation points
2 answers

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.
400 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 questions
asked 2023-01-30T11:35:16.76+00:00
Omble, Omkar [JANIE NON-J&J] 0 Reputation points
answered 2023-01-31T17:52:42.4+00:00
Albert Kallal 3,451 Reputation points