24,495 questions with .NET-related tags

Sort by: Updated
1 answer

How to fix slower performance with Microsoft.Data.SqlClient.TdsParserStateObject ReadSniSyncOverAsync method?

How to fix slower performance with Microsoft.Data.SqlClient.TdsParserStateObject ReadSniSyncOverAsync method when it has multiple calls (21) in a transaction with average execution time of 6116 ms per call and totalling to 128436 ms?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 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.
13,051 questions
asked 2024-06-13T09:10:47.4366667+00:00
ShahSamir-9495 0 Reputation points
answered 2024-06-13T18:09:31.3866667+00:00
Bruce (SqlWork.com) 59,036 Reputation points
1 answer

Getting error while search name in the textbox using bootstrap in ASP.NET C#

I am using gridview for reports and it contains more than 10000 (ten thousands) records. i am using one textbox for searching and multiple column values such as (CustNo,CustName,Department,MaterialName,Salary and DateofJoining) All search has to be done…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,361 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.
10,468 questions
asked 2024-06-13T17:34:51.2533333+00:00
Gani_tpt 2,026 Reputation points
answered 2024-06-13T17:57:36.9166667+00:00
Bruce (SqlWork.com) 59,036 Reputation points
0 answers

.Net MAUI desctop app

I am new to programming. I am trying to figure out how to work with MAUI. The problem is that the program does not start in Windows Explorer, but everything works fine from Visual Studio (mobile and desktop versions).Windows11

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-12T18:35:45.7166667+00:00
K00300006: Lionel Jose Maria 0 Reputation points
edited a comment 2024-06-13T17:52:08.6366667+00:00
K00300006: Lionel Jose Maria 0 Reputation points
3 answers One of the answers was accepted by the question author.

Dispose File stream and stream

Hi, Does I handle the dispose in correct way ? Note: This line contentStream.CopyTo(fileStream); can take long time. I got contentStream here from download file from our website. var zipPathForFolderOrPathForFile =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
asked 2024-06-11T07:29:35.66+00:00
Dani_S 3,066 Reputation points
accepted 2024-06-13T17:34:44.21+00:00
Dani_S 3,066 Reputation points
2 answers

How to restart the service when time is reach only once a day

Hi, in continue to https://learn.microsoft.com/en-us/answers/questions/1663229/service-monitor how to restart the service when time is reach only once a day ? protected override async Task ExecuteAsync(CancellationToken stoppingToken) { while…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
asked 2024-06-06T10:23:27.6266667+00:00
Dani_S 3,066 Reputation points
commented 2024-06-13T17:29:49.89+00:00
Dani_S 3,066 Reputation points
4 answers One of the answers was accepted by the question author.

What is the correct way to upgrade dotnet SDKs for MAUI

Can someone tell me the proper way to upgrade .net? I have kept mine on an older version for a while now because it has been working with xcode 15.3 for me. Since it appears the issues with xcode 15.3 have been resolved in the latest version, I would…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-05-16T15:01:48.6366667+00:00
Tony Pitman 60 Reputation points
answered 2024-06-13T17:26:34.8133333+00:00
Tony Pitman 60 Reputation points
1 answer

Change cookie path

In my ASP.NET application, I want to change the cookie path from the root to some specific folder. How can I do that?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,361 questions
asked 2024-06-13T11:23:12.5066667+00:00
Adeel Mirza 21 Reputation points
edited an answer 2024-06-13T17:25:26.4566667+00:00
AgaveJoe 26,671 Reputation points
4 answers One of the answers was accepted by the question author.

What is the best way to show the loader while uploading the file in gridview

I am using gridview for displaying and inserting new records. i'm using loader wherever it is required in the gridview. it is working fine. i'm trying to use animation loader for specific upload column in gridview. will it possible to show the loader…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,361 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.
10,468 questions
asked 2024-06-07T17:12:49.2366667+00:00
Gani_tpt 2,026 Reputation points
commented 2024-06-13T17:09:55.3433333+00:00
Gani_tpt 2,026 Reputation points
0 answers

Error Running the Selected Code Generator - ASP.Net MVC

I am getting the following "generating code" error when creating a Controller using "MVC 5 Controller with Views, using Entity Framework" in Visual Studio 2019. I've tried several solutions to similar problem reported online: Removed…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,282 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,361 questions
asked 2024-06-13T16:24:17.7366667+00:00
Malam Malam 166 Reputation points
3 answers

why can not connect to ios Simulator?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-12T03:35:06.8366667+00:00
mc 3,866 Reputation points
commented 2024-06-13T16:17:27.58+00:00
Bruce (SqlWork.com) 59,036 Reputation points
2 answers

How to call another view from one view in MVC?

In my main MVC project (Proj1) form's menu (Shared_Menu,cshtml), I've added a new menu item to open up a view from another project (proj2) that has been added to the solution. How do I call the proj2's view when the menu item in proj1 is clicked?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,282 questions
asked 2024-06-10T06:12:45.8866667+00:00
Malam Malam 166 Reputation points
commented 2024-06-13T16:13:41.2966667+00:00
Malam Malam 166 Reputation points
0 answers

Azure.Search.Documents vector search successful, but response is null

I am currently performing vector search according to the code guide that can be found here:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 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.
10,468 questions
asked 2024-06-07T19:05:07.25+00:00
Rossana Modolin 0 Reputation points
commented 2024-06-13T15:44:23.4266667+00:00
Rossana Modolin 0 Reputation points
1 answer

Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring nuget packages in VS 2022.

Hi All, I am getting the error "Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring Nuget packages in VS 2022. I have tried to delete Nuget config file as well but it did not help. Can anyone please…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
asked 2024-06-11T10:51:54.7633333+00:00
Munjal, Kanha (Gurugram) 0 Reputation points
commented 2024-06-13T12:50:07.1266667+00:00
Jiachen Li-MSFT 27,501 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Not able to Insert Image data for two images Postgresql

[HttpPost] [ValidateAntiForgeryToken] public async Task<IActionResult> Create([Bind("Sno,No,Topic,QuestionTitle,Opt1,Opt2,Opt3,Opt4,Answer,Time,Correct,Solution,Imagedata,Imagesol")] Question question, IFormFile…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,282 questions
Azure Database for PostgreSQL
asked 2024-06-11T19:37:32.6+00:00
Maui Learner 520 Reputation points
edited a comment 2024-06-13T12:36:34.6166667+00:00
Maui Learner 520 Reputation points
1 answer One of the answers was accepted by the question author.

Maui toolkit popup window size controling

Hello all. I built a toolkit popup according the Microsoft doc. and I want that the width of the popup window to fill the screen width. How I do that. I tried horizontal option fill but that's not working. Thank you very much

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2023-08-24T14:03:14.2+00:00
Haviv Elbsz 1,986 Reputation points
commented 2024-06-13T12:32:17.31+00:00
Cecilia Brewer 0 Reputation points
1 answer

Can't launch my app because of 'you must install .NET Desktop Runtime' popup

Hi everyone, I'm trying to run my application I've just installed on my computer but I'm having an issue with my .NET Runtime. I've been debugging this application in Visual Studio Community 2022 v17.10.2 and it works fine when I start it through Visual…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,753 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,623 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
185 questions
asked 2024-06-12T15:25:22.23+00:00
Connor Frayne 0 Reputation points
commented 2024-06-13T12:27:03.44+00:00
Connor Frayne 0 Reputation points
2 answers One of the answers was accepted by the question author.

Mac cursor on button

Hi, In window I did this code and is not working on MAC. How do i fix it ? Thanks, Microsoft.Maui.Handlers.ButtonHandler.Mapper.AppendToMapping("Custom", (handler, view) => { #if WINDOWS using Microsoft.UI.Input; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-05-30T10:34:02.6266667+00:00
Dani_S 3,066 Reputation points
commented 2024-06-13T10:53:35.1666667+00:00
Dani_S 3,066 Reputation points
1 answer

.Net Framework

.net framework 1.1.4322 won't run on win 11

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
asked 2024-06-13T09:55:57.54+00:00
Robinson Putsoane 0 Reputation points
answered 2024-06-13T10:13:43.3966667+00:00
Miguel Gonçalves | AVANADE 441 Reputation points
0 answers

How can I add a video view to my iOS .NET project?

I want to play a video in my iOS .NET project. I have installed the NuGet package XamarinMediaManager version 1.2.2: https://github.com/Baseflow/XamarinMediaManager But the problem is that I only hear the sound of the video when I debug on my iPad. I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-12T11:59:53.5666667+00:00
Kim Strasser 686 Reputation points
commented 2024-06-13T09:58:26.78+00:00
Kim Strasser 686 Reputation points
1 answer

How to remove MAUI .NET Entry white space?

I've a entry in my android app. As in picture, text is clipped, and there is a big white space around. Is it possible to made text bigger, without clipping it, reducing the white space? <Style TargetType="Entry"> <Setter…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-13T08:07:03.3+00:00
Ajeje Brazorf 106 Reputation points
answered 2024-06-13T09:39:38.3266667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 70,556 Reputation points Microsoft Vendor