22,523 questions with .NET-related tags

Sort by: Updated
0 answers

how to turn on/off console window from code in WPF app?

I have learned that using the following code in csproj to control the console window displaying. <!--no console--> <OutputType>WinExe</OutputType> <!--with console--> <OutputType>Exe</OutputType> Is it able to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,021 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,598 questions
asked 2024-01-19T00:58:59.6733333+00:00
William Liu 166 Reputation points
0 answers

net maui windows platform how to remove collectionview multiple selection mode checkbox?

net maui windows and mac platform how to remove collectionview multiple selection mode checkbox? Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,398 questions
asked 2024-01-19T00:17:26.8333333+00:00
Sami 631 Reputation points
1 answer

AppShell- Failed to Navigate Back, Ambiguous routes matched for.... but i've only registered routes once

I am building an Xamarin Forms app for iOS and Android. I registered my routes in AppShell.xaml.cs globally like this: **-AppShell.xaml.cs-** Routes.Add(nameof(HousingFolderPage), typeof(HousingFolderPage)); Routes.Add(nameof(HousingFolderDetailsPage),…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,233 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,092 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.
9,741 questions
asked 2023-03-26T23:28:07.2466667+00:00
Nabil 6 Reputation points
commented 2024-01-19T00:13:15.7766667+00:00
José David Alvarez Chavarría 1 Reputation point
1 answer

Blazor EditForm Submission Issue: modeltodoTask Empty on Submit

I fill in the modeltodoTask objects with Editform and send them to the "AddTask()" function, but when I check the data before adding them, they are all empty. 1-) modeltodoTask.Text= must be the value to be filled in the form. 2-) I want the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,021 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,281 questions
asked 2024-01-18T22:03:01.4966667+00:00
Umut Can 0 Reputation points
edited an answer 2024-01-18T23:22:26.3033333+00:00
Bruce (SqlWork.com) 50,541 Reputation points
2 answers

What is the value of using RenderMode.InteractiveServer?

Hi; I don't understand the value of this. And the Blazor team is smart which means this is something worth the effort. So I'd like to understand the value in it so I use it when appropriate. At present I am using (code first created in .NET 6, now using…

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,281 questions
asked 2024-01-16T01:26:26.2966667+00:00
David Thielen 1,636 Reputation points
commented 2024-01-18T21:47:23.5233333+00:00
Bruce (SqlWork.com) 50,541 Reputation points
1 answer

Erro o SDK 'Microsoft.NET.Sdk.Web' especificado não pôde ser encontrado.

Eu não sei o que exatamente está acontecendo porém quando eu tento rodar essa aplicação no linux, vai tranquilamente, mas quando eu tento usar o visual studio no windows eu recebo esse erro: Erro o SDK 'Microsoft.NET.Sdk.Web' especificado não pôde ser…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,021 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,276 questions
asked 2024-01-15T16:46:38.43+00:00
kaique silva 0 Reputation points
commented 2024-01-18T21:40:39.0766667+00:00
kaique silva 0 Reputation points
0 answers

Is there a trick to getting Android emulator to debug correctly??

I have the "isn't responding" error way too much. When it occurs VS and the emulator have basically stopped working together. I have a button that closes the app with the code : private void closeApp(object sender, TappedEventArgs e) …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,276 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,398 questions
asked 2024-01-18T18:29:25.15+00:00
Lloyd Sheen 1,271 Reputation points
commented 2024-01-18T21:29:58.5733333+00:00
Lloyd Sheen 1,271 Reputation points
0 answers

SignInScheme vs. ForwardSignIn - what's the difference?

I've been watching a couple of videos on YouTube with Raw Coding on the subject and he always uses SignInScheme to redirect from one scheme to another when the external authentication has happened (using the first scheme) to use the second scheme to set…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,920 questions
asked 2024-01-18T20:07:30.69+00:00
Casper Wandahl-Liper 1 Reputation point
edited the question 2024-01-18T20:08:27.1066667+00:00
Casper Wandahl-Liper 1 Reputation point
1 answer

Net Maui Platform Windows How to display Collectionview with span listing according to Screen Width ?

Net Maui Platform Windows How to display Collectionview with span listing according to Screen Width ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,398 questions
asked 2024-01-16T08:33:03.6866667+00:00
Sami 631 Reputation points
edited a comment 2024-01-18T19:53:34.7366667+00:00
Sami 631 Reputation points
1 answer

How to separate out Identity server in a separate library to manage authentication of a user for multiple API projects in the application?

Suppose a solution has multiple different API projects so instead of re-writing the Authentication and authorization with an Individual user account (Identity Server) approach can we create a single library containing Identity server logic and use this…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
540 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
665 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,920 questions
asked 2024-01-18T10:56:07.5633333+00:00
Piyush Meshram 0 Reputation points
answered 2024-01-18T19:10:49.51+00:00
Bruce (SqlWork.com) 50,541 Reputation points
1 answer

Error Cannot insert explicit value for identity column in table when IDENTITY_INSERT is set to OFF

I work with Entity Framework Core 7 and ASP.NET Core using Razor pages. I get an exception when trying to insert data from Entity Framework Core into the SQL Server table ZebraSubPrinters: SqlException Cannot insert explicit value for identity column in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,920 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,092 questions
asked 2023-08-20T06:42:50.67+00:00
Ahmed Abd El Aziz 310 Reputation points
commented 2024-01-18T18:41:23.9066667+00:00
Mauro Allende 0 Reputation points
3 answers

Blazor .net 8 Cannot access a disposed context instance

Hi my project is blazor .net 8 and use syncfucion data grid but when user click on pager grid continuous (when click on pager number call service to get data by page number in repository show this error : **Cannot access a disposed context instance. A…

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,281 questions
asked 2024-01-17T20:13:27.7733333+00:00
Mahdi Elahi 21 Reputation points
commented 2024-01-18T18:23:45.9433333+00:00
AgaveJoe 25,076 Reputation points
1 answer

Callback URL scheme not working with WebAuthenticator for Xamarin app with Azure portal reg.

Hi, I am trying to authenticate my Xamarin app with Azure authentication. I am using Xamarin Essentials WebAuthenticator class for this. I have registered my app on Azure, and also added iOS platform var url = new…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,233 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,273 questions
asked 2024-01-11T08:52:17.27+00:00
Anish Kamble 0 Reputation points
answered 2024-01-18T17:49:38.1333333+00:00
Ryan Hill 23,476 Reputation points Microsoft Employee
1 answer

How to smartly detect Inactive user session in Blazor app and perform session timeout?

I am working with the Blazor Web Assembly Project with Individual user account (Identity server) based login/ logout. I have not configured a custom token it's just a basic Blazor app with individual accounts. So, the project default structure was…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,920 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,281 questions
asked 2024-01-18T10:38:15.8333333+00:00
Piyush Meshram 0 Reputation points
answered 2024-01-18T17:21:04.6+00:00
Bruce (SqlWork.com) 50,541 Reputation points
0 answers

Bluetooth Plugin.Ble not showing any device.

I am using visual studio 2022 Maui, installed latest update and bluetooth Plugin.Ble ver 3. Also added all permission #if ANDROID public override (string androidPermission, bool isRuntime)[] RequiredPermissions => new List<(string Permission,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,398 questions
asked 2024-01-18T17:10:48.73+00:00
Babu R 61 Reputation points
edited the question 2024-01-18T17:18:28.4133333+00:00
Babu R 61 Reputation points
1 answer

How to save page load performance in blazor when navigating from one page to other in new tab?

If a Blazor app with Individual user accounts is created then if we open a new line user Authorization is performed again which impacts the performance and page load. for example: if we show a document anchor tag, then if that anchor opens in a new…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,920 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,281 questions
asked 2024-01-18T10:46:06.7133333+00:00
Piyush Meshram 0 Reputation points
edited an answer 2024-01-18T17:11:47.6766667+00:00
Bruce (SqlWork.com) 50,541 Reputation points
0 answers

When will .NET 8 (Early Access) be available on Azure Government?

Currently .NET 8 (Early Access) is available on Azure Commercial. I like to know when will .NET 8 (Early Access) be available on Azure Government App Service?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,021 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,920 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,273 questions
asked 2023-12-07T00:52:36.1866667+00:00
Arman Ghazanchyan (Contractor) 5 Reputation points
commented 2024-01-18T17:03:32.97+00:00
Arman Ghazanchyan (Contractor) 5 Reputation points
1 answer One of the answers was accepted by the question author.

forms and core 8 MVC

hi all, I am looking for an explanation on how to implement the following: a form with two input text fields; at the click of the submit button, the form will post the resulting few fields from a table record matching the two submitted values. Right now,…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,920 questions
asked 2024-01-18T15:06:31.8733333+00:00
elsvieta 246 Reputation points
commented 2024-01-18T16:59:59.5266667+00:00
elsvieta 246 Reputation points
1 answer

Template Not Usable in VS2022 after Update

After VS 2022 updated, using an exported template will not build without errors. One error is " (are you missing an assembly reference?)", yet in the references it is there. This problem happened in the past with VS2022 before the update, but…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,781 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,276 questions
asked 2024-01-18T13:03:59.94+00:00
William 61 Reputation points
answered 2024-01-18T15:33:58.12+00:00
Michael Taylor 42,091 Reputation points
1 answer One of the answers was accepted by the question author.

Native control

Hi, I'm migrating my existing Xamarin app to MAUI. I have read over the article about the handler/mapper architecture and successfully created a mini project to apply that concept. Back to my company project, we have something like this. I believe this…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,398 questions
asked 2024-01-16T16:55:06.45+00:00
Daniel Than 20 Reputation points
accepted 2024-01-18T15:19:09.1833333+00:00
Daniel Than 20 Reputation points