24,499 questions with .NET-related tags

Sort by: Updated
1 answer

My aurhorization shows fore alittle my mainlayout and then redirect to unauthorizedpage

<Router AppAssembly="@typeof(Admin).Assembly"> <Found Context="routeData"> <AuthorizeRouteView RouteData="@routeData"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,283 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.
1,448 questions
asked 2024-06-11T08:22:45.62+00:00
Ioannis Karakostas 0 Reputation points
answered 2024-06-13T22:30:10.0433333+00:00
Bruce (SqlWork.com) 59,036 Reputation points
1 answer

Good day, i have an ObservableCollection with a list of items from the Sqlite database file in .NET MAUI, the retrieval of items works ,my problem is that the carousel view returns all the items from the list instead of the current selected item,

using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using MyHerbalDiari.DataAccess; using MyHerbalDiari.Models; using System.Collections.ObjectModel; using System.Windows.Input; Good day, when i load my item from the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,047 questions
asked 2024-06-13T21:12:58.82+00:00
solomon mokoena 0 Reputation points
commented 2024-06-13T21:43:49.2433333+00:00
solomon mokoena 0 Reputation points
0 answers

How to run power toy in hidden window?

Dim p = New Process() p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden p.StartInfo.CreateNoWindow = True p.Start("C:\Program Files\PowerToys\WinUI3Apps\PowerToys.Settings.exe") After running this code, the setup window still appears. Is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,522 questions
asked 2024-06-13T20:26:36.28+00:00
Yen Dang 0 Reputation points
edited the question 2024-06-13T20:28:28.36+00:00
Yen Dang 0 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,047 questions
asked 2024-05-16T15:01:48.6366667+00:00
Tony Pitman 60 Reputation points
commented 2024-06-13T19:28:15.86+00:00
Tony Pitman 60 Reputation points
1 answer

Gridview row.cells Unable to cast checkbox as textbox

I have this Gridview where I'm updating a SQL table. Everything works fine until I come across a column that has checkboxes. I'm getting an error message stating unable to cast/convert checkbox to textbox. Here are the lines in question. Dim columnValue…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,522 questions
asked 2024-06-12T13:33:51.9166667+00:00
Hutty 0 Reputation points
commented 2024-06-13T19:18:22.5666667+00:00
Hutty 0 Reputation points
0 answers

Error after using Microsoft.AspNetCore.SystemWebAdapters in shared library targeting .NetStandrd 2.0

https://stackoverflow.com/questions/78619706/error-after-using-microsoft-aspnetcore-systemwebadapters-in-shared-library-targe

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,283 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,362 questions
asked 2024-06-13T19:08:32.72+00:00
Sameer Ranade 0 Reputation points
1 answer

My ViewModel Constructor is executed before my property is set. So I am having to put my method ( RefreshData )that I want to execute in the Constructor in the ApplyQueryAttributes method.

My ViewModel Constructor is executed before my property is set Id = myPackage.packageId; . So I am having to put my method ( RefreshData ) that I want to execute in the Constructor in the ApplyQueryAttributes method. Otherwise, My parameter value is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,047 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,470 questions
asked 2024-06-13T18:18:55.96+00:00
Tom Meier 140 Reputation points
answered 2024-06-13T18:38:09.7966667+00:00
Michael Taylor 49,701 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,362 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,470 questions
asked 2024-06-13T17:34:51.2533333+00:00
Gani_tpt 2,026 Reputation points
edited a comment 2024-06-13T18:28:58.6233333+00:00
AgaveJoe 26,671 Reputation points
1 answer

The type initializer for 'Microsoft.Data.SqlClient.SqlAuthenticationProviderManager' threw an exception.

Getting error while connecting db with .net core Application

Azure SQL Database
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,283 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,055 questions
asked 2024-06-12T10:32:54.79+00:00
Sagar Lugade 0 Reputation points
answered 2024-06-13T18:19:07.06+00:00
Bruce (SqlWork.com) 59,036 Reputation points
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,522 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,055 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
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,047 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,522 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,522 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
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,362 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,362 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,470 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,283 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,362 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,047 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,283 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,522 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,470 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,522 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