25,665 questions with .NET-related tags

Sort by: Updated
1 answer

Unable to Build Azure Web App in Deployment Sync When Targeting .NET 8

In my web app on Azure I've set the Settings - Configuration - .NET Version to 8.0 LTS and in my source could I've targeted .NET 8. I can build locally in Visual Studio When I sync my source code from my BitBucket repository to my deployment in Azure app…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,819 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
916 questions
asked 2024-09-24T13:42:45.13+00:00
Bruce Phillips 0 Reputation points
answered 2024-09-26T02:34:57.9166667+00:00
brtrach-MSFT 16,121 Reputation points Microsoft Employee
3 answers

valdiate gridview data using asp.net c# code behind on button click

Hello This Is my MS sql data /****** Object: Table [dbo].[Table_11] Script Date: 09/22/2024 19:00:36 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Table_11]( [ID] [int] IDENTITY(1,1) NOT…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,470 questions
asked 2024-09-22T13:37:28.3666667+00:00
RAVI 1,076 Reputation points
commented 2024-09-26T02:24:28.0166667+00:00
Lan Huang-MSFT 29,321 Reputation points Microsoft Vendor
0 answers

When calling FlashWindowEx, Window behaves abnormally in Windows 11.

We would like to inquire about an abnormal behavior observed during the development of a Windows-based application. This was working normally in Windows 10, but in Windows 11, abnormal behavior has been confirmed when calling the Window API as shown…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,886 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,597 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,524 questions
asked 2024-09-24T09:32:40.85+00:00
윤기 오 0 Reputation points
edited the question 2024-09-26T02:20:01.2+00:00
Roy Li - MSFT 33,091 Reputation points Microsoft Vendor
1 answer

I'm having trouble writing the code to downloading the page.

I'm attempting to create a small application that converts image formats to SVG. And bellow comes the code: @page "/" @using System.Drawing @using System.Drawing.Imaging @using System.IO @using System.Threading.Tasks @using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,539 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,565 questions
asked 2024-09-25T11:59:28.83+00:00
Saeed Pooladzadeh 251 Reputation points
answered 2024-09-26T02:17:49.5733333+00:00
Ping Ni-MSFT 4,335 Reputation points Microsoft Vendor
0 answers

Is there a way to have the Identity Library cookies be tied to the root domain?

Hi all; I have a Blazor Interactive Server app that uses the ASP.NET Identity Library for Authentication & Authorization. I have the app set up where you normally connect to it using connect.tradewindsstudios.us. However, it is an app showing events…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,539 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,470 questions
asked 2024-09-25T22:28:38.4033333+00:00
David Thielen 3,036 Reputation points
commented 2024-09-26T01:48:14.2166667+00:00
JasonPan - MSFT 5,456 Reputation points Microsoft Vendor
2 answers

Javascript not popping out message box on button click in Blazor 8.0

Test.razor @page "/test" @inject IJSRuntime JsRuntime <h3>Test JavaScript Interop</h3> <button type="button" @onclick="TestJsInterop">Click Me</button> @code { private async Task TestJsInterop() { …

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,565 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
980 questions
asked 2024-09-24T21:53:27.6+00:00
ojiraye sigbenu 0 Reputation points
edited a comment 2024-09-26T01:42:44.49+00:00
Ping Ni-MSFT 4,335 Reputation points Microsoft Vendor
2 answers

Debugger is not hitting breakpoint set in SharePoint 2010 application code in Visual Studio

I have my SharePoint 2010 application code in Visual Studio. I did clean, rebuild and deploy solution. I have done "Attach to Process" w3wp.exe files in the debug, but debugger is not hitting breakpoint when trying to work on UI. IIS reset is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,470 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,069 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,631 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,957 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.
996 questions
asked 2024-09-19T11:25:46.3666667+00:00
VG 0 Reputation points
commented 2024-09-26T01:26:20.4566667+00:00
RaytheonXie_MSFT 35,081 Reputation points Microsoft Vendor
1 answer

Serial Port Code Works on Windows, but Throws Error on Android

Hi I'm using this code in my .NET MAUI app to list available serial ports: using System.IO.Ports; namespace PortMauiApp1 { public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,443 questions
asked 2024-09-25T03:12:46.0633333+00:00
Yusuf Anwar 0 Reputation points
edited an answer 2024-09-26T01:23:32.33+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,201 Reputation points Microsoft Vendor
0 answers

Maui mobile app can't sign up new Entra ID

I have a .Net Maui mobile app that uses MSAL for authentication into Entra External ID. I created a User Flow and configured my tenant to allow "Enable guest self-service sign up via user flows". I can authenticate with existing Entra IDs…

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,024 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,443 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,856 questions
asked 2024-09-26T01:13:00.1533333+00:00
Dave Gorgone 0 Reputation points
0 answers

status code Forbidden

hello I have a little problem So am calling an Api, I made a service public class HttpService(HttpClient httpClient, IConnectivity connectivity) { public async Task<T?> GetAsync<T>(string url) { if…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,443 questions
asked 2024-09-24T16:10:26.4766667+00:00
Eduardo Gomez Romero 425 Reputation points
edited a comment 2024-09-26T01:05:54.48+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,801 Reputation points Microsoft Vendor
2 answers

How can I fix the issue where the SelectAllText behavior is not accessible after updating the CommunityToolkit from version 9.0.2 to 9.0.3?

I am encountering this error in .NET MAUI from the Community Toolkit after updating the package. It worked before, but after the update, it no longer works : "Cannot resolve type…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,443 questions
asked 2024-09-03T12:08:43.5766667+00:00
Rahul Shreebastav 0 Reputation points
commented 2024-09-26T00:50:12.4+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,201 Reputation points Microsoft Vendor
3 answers

How to fix this " Error There was an error running the selected code generator: 'startIndex cannot be larger than length of string. (Parameter 'startIndex')' "

Hello I got this error issue. When I tried to create New Scaffolded Item > Selected ' MVC Controller with views, using Entity Frame Work I use Microsoft Entity Frame work version 8.0.8 Version and the Frame Work Design I use 8.05 Window 11 Net 8.0…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,539 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,470 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,069 questions
asked 2024-09-25T06:18:44.01+00:00
NADA KETMEK 0 Reputation points
answered 2024-09-26T00:45:14.7566667+00:00
SurferOnWww 2,741 Reputation points
2 answers

MAUI .NET 8.0 Android WebView with SharePoint page - "We couldn't sign you in. Please try again." followed by "Unknown error." in SharePoint

Was working fine for several months, and now SharePoint will not sign in from WebView in a Android app built using MAUI .NET 8.0 for users who have previously authenticated. Issues started happening this week. Tried with no effect: (1) Cleared the…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
6,725 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,631 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,443 questions
asked 2024-09-11T16:42:51.68+00:00
foobar291 25 Reputation points
commented 2024-09-25T23:26:22.9233333+00:00
foo 0 Reputation points
2 answers

How exit from net maui App?

Which the best option to exit from net maui application? I'm using Application.Current.Quit, but not working.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,350 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,443 questions
asked 2023-10-10T06:38:28.0533333+00:00
Luis Guillermo Mora Rivas 0 Reputation points
answered 2024-09-25T21:41:57.2333333+00:00
Valentino R1981 0 Reputation points
0 answers

Error when trying to login using Microsoft Cognitive Services in Public Desktop Client App in Entra External ID tenant

I have an Entra External ID tenant with a registered public desktop app from which I want to call the APIs from an Azure Speech Service resource. Via MSAL I log in like this: var clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; var tenantId…

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,695 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,539 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,869 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,856 questions
asked 2024-09-25T13:18:28.55+00:00
Roman Steiner 0 Reputation points
commented 2024-09-25T21:12:42.23+00:00
YutongTie-MSFT 51,181 Reputation points
1 answer

Unable to load assembly on Azure Sql that uses Azure.Identity

Hi Team, We need to access the azure key vault from azure sql (managed instance) to retrieve the secret. We have developed an udf that will fetch the secret from azure key vault. Below is the code snippet: using Microsoft.SqlServer.Server; using…

Azure SQL Database
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,819 questions
asked 2024-09-25T10:32:56.3033333+00:00
Rajesh Patel 20 Reputation points
edited an answer 2024-09-25T20:57:42.8366667+00:00
Amira Bedhiafi 23,876 Reputation points
1 answer One of the answers was accepted by the question author.

Why am I getting this Content Policy error?

Hi all; I have added the following to my Blazor Interactive Server app using NWebSec: app.UseHsts(options => options.MaxAge(days: 30)); app.UseXContentTypeOptions(); app.UseXXssProtection(options =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,539 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,565 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,869 questions
asked 2024-09-15T14:37:02.18+00:00
David Thielen 3,036 Reputation points
edited the question 2024-09-25T19:29:52.3666667+00:00
IoTGirl 3,126 Reputation points Microsoft Employee
2 answers

Editor controls in grid don't resize correctly after grid and row compressed to zero width and expanded back

Editor controls in a 3x3 grid don't resize correctly after compressing one of the rows and columns to 0 width and height and expanding it back to normal size. The bug is only present on the windows platform using Editor controls. Resizing works correctly…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,443 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
806 questions
asked 2024-09-24T04:33:12.63+00:00
TazKing 0 Reputation points
commented 2024-09-25T18:14:07.2633333+00:00
TazKing 0 Reputation points
0 answers

How to change background color of WebView on SelectionChanged event of CollectionView

I am using Visual Studio 2022 and maui 8.0 and API level 33 I have collectionView and inside it I have Label and WebView . I have change background color of selected item using VisualStateManager.VisualStateGroups But Even if I tried lot the WebView…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,443 questions
asked 2024-09-25T18:07:36.8633333+00:00
Faiz Quraishi 125 Reputation points
0 answers

Why are my Durable Entities not functioning after migrating from .NET 6 in-process to .NET 8 Isolated Worker?

I am migrating from .NET6 in process model to .NET8 isolated worker model and having some issues with durable entities, mainly with passing input to the entity trigger. Every time the durable entity is called, the input parameter is now null after the…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,944 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,819 questions
asked 2024-09-25T15:05:04.06+00:00
Tony 0 Reputation points
edited the question 2024-09-25T17:34:52.6533333+00:00
Tony 0 Reputation points