Microsoft Q&A

.NET

12,914 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,914 questions with .NET-related tags

Sort by: Updated
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,538 questions
asked 2023-01-31T04:04:24.65+00:00
Blooming Developer 196 Reputation points
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…

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
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
887 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
edited the question 2023-01-31T03:52:02.79+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,581 Reputation points Microsoft Employee
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,538 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,538 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 8,881 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…

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 Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,538 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.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
887 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,404 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,807 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…

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
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
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,538 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
1 answer

how to refresh page in razor pages?

how to refresh page that has list of table? I do not want to use window.location.href.reload(); is there anyway to refresh it?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,538 questions
asked 2023-01-19T02:08:48.23+00:00
打玻璃 1,506 Reputation points
commented 2023-01-31T02:37:54.0833333+00:00
Zhi Lv - MSFT 18,701 Reputation points Microsoft Employee
2 answers

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,807 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-16T01:25:36.04+00:00
Bruce Krueger 286 Reputation points
edited an answer 2023-01-31T02:37:52.0133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,411 Reputation points Microsoft Employee
0 answers

how to bind to taghelper property in razor pages?

[HtmlTargetElement("pagination")] public class PaginationTagHelper : TagHelper { [HtmlAttributeName("page-index")] public int PageIndex{get;set;} } and in Index.cshtml <pagination page-index="PageIndex" /> I can not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,538 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
589 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.
398 questions
asked 2023-01-30T05:36:04.64+00:00
打玻璃 1,506 Reputation points
commented 2023-01-31T02:29:39.7066667+00:00
打玻璃 1,506 Reputation points
0 answers

Hoe to share a document link for external user using one drive API

I am using Onedrive api for sharle a document link to extenal user in c# it is not working

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
43 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-30T17:58:08.58+00:00
Pradyut Sinha 11 Reputation points
edited the question 2023-01-31T01:58:25.97+00:00
XuDong Peng-MSFT 4,576 Reputation points Microsoft Employee
1 answer

How to fix error in visual studio 2019

The code .DataSource = ds.Tables[0]; doesn't work for me. What might be the error?? In Microsoft vs 2019

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,490 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,184 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
291 questions
asked 2023-01-30T16:17:13.57+00:00
Kenny Robby 0 Reputation points
edited a comment 2023-01-31T01:54:21.5733333+00:00
Lan Huang-MSFT 8,881 Reputation points Microsoft Employee
2 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
answered 2023-01-31T01:44:36.6233333+00:00
peter liles 371 Reputation points
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,538 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
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.
887 questions
asked 2023-01-20T05:42:27.7633333+00:00
Sanket Vinod Solanki 0 Reputation points
commented 2023-01-31T01:37:35.0433333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 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)

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,184 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,404 questions
asked 2023-01-30T16:21:53.3+00:00
Kenny Robby 0 Reputation points
edited the question 2023-01-31T01:33:31.8066667+00:00
Lan Huang-MSFT 8,881 Reputation points Microsoft Employee
0 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.
614 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,490 questions
asked 2023-01-31T01:31:54.24+00:00
NachitoMax 406 Reputation points
0 answers

How should a service exit to prevent an error?

I'm developing a Windows service in C#, .NET 6.0 following the instructions on https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service The service runs as expected, but when I stop the service, it logs an error A task was…

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
asked 2023-01-30T23:11:11.52+00:00
Andy Reynolds 0 Reputation points
edited the question 2023-01-31T00:42:22.3566667+00:00
Andy Reynolds 0 Reputation points