23,039 questions with .NET-related tags

Sort by: Updated
1 answer

When debugging Blazor Server, Blazor WASM's invoke is jumping to Server side

I want to share the same data class between Blazor Server and Blazor WASM with the injection of DataSource in such a way that once registered for Server, it will use EntityFramework by DbContext, and once registered for WASM, it will use DbSet for remote…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,156 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,313 questions
asked 2024-02-23T20:18:14.7966667+00:00
Matěj Rada 0 Reputation points
commented 2024-02-24T05:51:06.09+00:00
Rada Matěj 20 Reputation points
6 answers

How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."

Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,002 questions
asked 2023-06-03T08:29:57.58+00:00
Vaishnavi P 25 Reputation points
commented 2024-02-24T05:37:57.7533333+00:00
Sakesun Roykiattisak 0 Reputation points
0 answers

How to Download Multiple Files using the Response Class

I have a classic ASP.Net app that downloads a file using the Response class: Response.Clear(); Response.ClearHeaders(); Response.ClearContent(); Response.AddHeader("Content-Disposition",…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,156 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,169 questions
asked 2024-02-24T03:50:39.54+00:00
Coreysan 1,566 Reputation points
0 answers

use odata v3 only in asp.net core

For my ASP.Net Core WEB API endpoints, I only want to use ODataV3 instead of ODataV4 how can I make that possible or enforce it, because client is sending data V3 format to the server. Please don't ask me to update the client because it is also accessing…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,002 questions
asked 2024-02-05T12:38:03.8433333+00:00
Muhammad Adeel Siddiqui 0 Reputation points
commented 2024-02-23T22:50:23.5066667+00:00
Bruce (SqlWork.com) 52,491 Reputation points
2 answers

http error 400. the size of the request headers is too long

Hi, I have a .net core mvc project and have used the SetIdentity for user roles and logins. Since last week, I am facing the error "http error 400. the size of the request headers is too long", the moment my application runs. I am not able…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,002 questions
asked 2022-03-28T06:04:11.187+00:00
Pathak, Vineet (SE IT GDC PR-G) 1 Reputation point
commented 2024-02-23T22:17:15.8333333+00:00
McNulty 0 Reputation points
1 answer One of the answers was accepted by the question author.

FilePicker on MacOs (MacCatalyst) does not return picked file.

Hi, I am having the exact same issues explained in https://github.com/dotnet/maui/issues/11088 . Dotnet workloads on development machine (Windows); Installed Workload Id Manifest Version Installation Source …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,575 questions
asked 2024-02-19T22:50:50.31+00:00
Onur Büyükçağlar 20 Reputation points
accepted 2024-02-23T22:15:50.9566667+00:00
Onur Büyükçağlar 20 Reputation points
1 answer

How to deploy my app to Web App?

I have created a test .Net 6 app (open Visual Studio and create a standard web app and ran it). Next in Azure DevOps i set up my repository and alll looks the way i would expect it to. I would now like to deploy this app to a Azure Web App which should…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,002 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,496 questions
asked 2024-02-23T12:58:35.4233333+00:00
Keith Viking 20 Reputation points
answered 2024-02-23T22:06:03.71+00:00
Ryan Hill 24,221 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

PMC EF commands error: Unrecognized command or argument 'C#'

In Visual Studio's Package Manager Console (V 6.6.0.61), the command get-migrations, and other Entity Framework commands, output: Specify --help for a list of available options and commands. Unrecognized command or argument 'C#' I have successfully run…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,156 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,169 questions
asked 2023-08-16T14:19:06.76+00:00
Nnr 30 Reputation points
edited an answer 2024-02-23T22:04:22.36+00:00
Mike 0 Reputation points
0 answers

How to prevent any form resizing in VS2022 Windows Forms?

Okay, I have been working on a Wizard based VSIX installing templates into VS2022 for my place of employment. They are typically simple forms, that utilize a variety of controls - many of them customized. The latest updated (17.9) for VS2022 affected…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,798 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,403 questions
asked 2024-02-23T04:53:41.0333333+00:00
Jaeden Ruiner 126 Reputation points
commented 2024-02-23T20:49:39.4666667+00:00
Jaeden Ruiner 126 Reputation points
1 answer One of the answers was accepted by the question author.

Upgrade Azure function from .net 6 isolated to .net 8 isolated

Is there anything specific I need to do to the Azure Function App in the portal to upgrade the function from .net 6 isolated to .net 8 isolated? I have already updated the project file to target the net8.0 framework.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,997 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,156 questions
asked 2024-02-22T15:01:34.11+00:00
David Boss 20 Reputation points
accepted 2024-02-23T20:41:30.83+00:00
David Boss 20 Reputation points
0 answers

Why does class view think everything is an inherited class

I recently did the reset of Visual Studio setting. For the last few days I have been restoring what it got rid of (it did fix the problems I was having with the debugger) and now I find something that I would like an explanation of. When I go to Class…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,403 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,575 questions
asked 2024-02-23T20:24:46.2266667+00:00
Lloyd Sheen 1,331 Reputation points
1 answer

.NET8 MAUI and Azure Notifications Hub implementation

In my NET8 MAUI application, I'm trying to add push notifications using Azure Notification Hub. I can't find an updated example of how to configure and implement correctly the push notification for Windows, Android and iOS. Can you point me in the right…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
241 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,575 questions
asked 2024-02-03T10:33:24.31+00:00
Enrico Rossini 126 Reputation points
commented 2024-02-23T20:22:44.31+00:00
Yohancef Chin 0 Reputation points
1 answer One of the answers was accepted by the question author.

UIAutomation throws AccessViolationException on Windows 11

Original post on stackoverflow: https://stackoverflow.com/questions/72872197/uiautomation-throws-accessviolationexception-on-windows-11 Also posting here as there might be more views, maybe from people at MSFT too. If it's considered duplicata,…

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,626 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,936 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,577 questions
asked 2022-07-06T06:20:51.55+00:00
ygosteli 26 Reputation points
commented 2024-02-23T20:09:35.7566667+00:00
Marco Medrano 0 Reputation points
0 answers

Debugging Blazor Web Assembly app in Visual Studio

Hi, I am using Visual Studio 2022 professional version 17.7.4 (64 bit) I have created a blazor web assembly project with individual user accounts. When trying to debug Blazor application at first it worked but then once It stopped hitting breakpoints…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,002 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,313 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,403 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
908 questions
asked 2024-02-23T14:30:27.26+00:00
Piyush Meshram 20 Reputation points
commented 2024-02-23T18:23:43.2133333+00:00
AgaveJoe 25,686 Reputation points
1 answer

How to Implement Two Way Binding In Blazor

When I change the slider Interest amount should be automatically calculated and displayed without user clicking on Submit Button. @page "/" @using System.Text; @using System.Net.Http.Headers; @using Microsoft.AspNetCore.Components; @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,313 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,575 questions
asked 2024-02-23T16:31:06.1866667+00:00
Maui Learner 300 Reputation points
answered 2024-02-23T18:02:40.9166667+00:00
Bruce (SqlWork.com) 52,491 Reputation points
2 answers

Is there any equivalent packages available in .NET MAUI for Xamarin.GooglePlayServices.Base

We are migrating our Application from Xamarin to .NET MAUI and we are using .NET 8.0 for migration. Previously we are using Xamain.GooglePlayServices.Base NuGet package in Xamarin but in .NET MAUI framework .NET 8.0 this NuGet package is not supported…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,575 questions
asked 2024-02-22T09:24:18.17+00:00
Challa, Koteswara Rao 0 Reputation points
answered 2024-02-23T16:58:55.69+00:00
Pinaki Ghatak 2,145 Reputation points Microsoft Employee
0 answers

I am unable to get value of ItemSource in collectionview can anyone help me with that?

public class MyViewModel : BaseViewModel { private ObservableCollection<MyModel> myList; public ObservableCollection<MyModel> MyList { get { return myList; } set { SetProperty(ref myList,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,575 questions
asked 2024-02-23T16:27:13.9566667+00:00
Puri, Sahil 0 Reputation points
1 answer

Affected .net versions by CVE-2024-0057

Hello, I am concerned about CVE-2024-0057 and would like to know if .NET Core is affected. I have checked the security advisory here and can see that all supported versions of .NET (.NET 6 through .NET 8) are impacted. However, I am specifically…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,156 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,936 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,101 questions
asked 2024-02-23T10:58:23.21+00:00
Matěj Prášek 0 Reputation points
answered 2024-02-23T16:19:34.8266667+00:00
Michael Taylor 44,136 Reputation points
0 answers

Issue with Label in ListView: Unable to Navigate to URLs in HTML Text with Dynamic Data and Identifying Clicked URLs

I'm currently working on a Microsoft Maui application where I have a ListView containing labels. These labels display dynamically generated HTML-formatted text obtained from data, and within this text, there could be multiple hyperlinks to external URLs.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,156 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,575 questions
asked 2024-02-23T16:16:20.89+00:00
Shahid Abbas 5 Reputation points
0 answers

Websocket server in MAUI with .NET 8

Hello, I'm trying to create a websocket server in a MAUI app and .NET8. When I launch the server using Android app, the server is pefectly listening to the Websocket clients but when I launch the app in Windows the server is not listening any local…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,575 questions
asked 2024-02-22T13:33:41.49+00:00
Jorge Vilaplana Herruzo 0 Reputation points
commented 2024-02-23T15:36:19.51+00:00
Jorge Vilaplana Herruzo 0 Reputation points