23,758 questions with .NET-related tags

Sort by: Updated
1 answer

Is it possible to create and set styles and/or template for combobox in c# only?

Hi, I'm trying to setup a app frontend in C# only. I'm more practiced with c# then XAML, but also have the feeling that I can make the app windows/pages more parametric in this way. Thus far I'm succeeding in this, however when I tried setting up…

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,665 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,190 questions
asked 2024-04-12T14:03:37.46+00:00
Reinder Weenink 0 Reputation points
commented 2024-04-18T03:27:20.57+00:00
Hui Liu-MSFT 37,946 Reputation points Microsoft Vendor
2 answers

How to reference/consumme assembly manifest based on CPU in WPF C# Application project?

I want to reference an older Win32 assembly from a Wpf C# application. I do have both x86 or x64 versions of the Win32 assembly but I don't see how to reference based on selection target CPU.I can only specify either one. The Visual Studio C# project…

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,665 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,190 questions
asked 2024-04-16T12:44:11.6233333+00:00
Nicolas Montmarquette 0 Reputation points
commented 2024-04-18T03:25:53.2766667+00:00
Hui Liu-MSFT 37,946 Reputation points Microsoft Vendor
0 answers

Mac question

I don't understand why in Mac is not possible to open all windows Mac does not support programmatic activation of windows. First of all, I would like to inform you that the user has to touch the screen to active a session on iOS/MacCatalyst. Please…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-18T03:19:31.0133333+00:00
Eduardo Gomez Romero 185 Reputation points
0 answers

How to debug and fix 'Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)' error on MAUI Android app

I have an Android app published in 'open testing' in Play store. And I am seeing 2% crash rate with this error. I have got the logcat file for 2 crashes, but not able to figure out any source/reason for crash. I am really looking for some help to make…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,337 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-16T17:45:30.3666667+00:00
ac-lap 71 Reputation points
commented 2024-04-18T03:06:24.8866667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 34,841 Reputation points Microsoft Vendor
2 answers

How to create a alert in MAUI - Platform specific - Android.

Hello Team, I want to reuse the existing alert which is created in Xamarin-Android, When I'm trying to access that. Facing this exception. Please find the below code: Device.BeginInvokeOnMainThread(() => { AlertDialog.Builder dialog = new…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-17T11:42:25.1566667+00:00
Vaibhav Methuku 0 Reputation points
answered 2024-04-18T03:03:58.06+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 67,781 Reputation points Microsoft Vendor
2 answers

A weired error about HTTP 500 !

I created a web user asp.net 8.0 mvc without ef. When I modify the stucture of oracle datebase table ,such as add a field ,then the web related to the table report a error about HTTP 500 . But after I restart the iis,it works well without doing anything…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,133 questions
asked 2024-04-10T07:22:48.6266667+00:00
Alick Wang 266 Reputation points
commented 2024-04-18T02:40:29.7533333+00:00
JasonPan - MSFT 4,201 Reputation points Microsoft Vendor
1 answer

Unable to publish App to Apple store

Hi, I'm new to Mobile App Development. I have developed a login page App and trying to deploy the App to Apple store and got this error when running the deploy command. Will you please review the errors and guide me in resolving the issue. dotnet…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-09T01:17:12.25+00:00
Sandeep Reddy Pinniti 1 Reputation point
commented 2024-04-18T02:19:25.22+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,766 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Binding Errors in a Simple Project

I have carved out a simple project from a larger one to demonstrate the binding errors I am getting so the names I use might seem ... odd. The following is the ENTIRE project: Window…

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,665 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,562 questions
asked 2024-04-16T22:49:29.3466667+00:00
RogerSchlueter-7899 1,176 Reputation points
commented 2024-04-18T02:15:22.2366667+00:00
Hui Liu-MSFT 37,946 Reputation points Microsoft Vendor
2 answers

How to debug MAUI.iOS app from VS Windows 2022

Hi, I'm trying to debug the MAUI.iOS app from VS Windows 2022. I connected to the remote mac successfully. This Mac mini is using Xcode 15.2 and have VS Mac 2022 installed. When I ran, I saw it deployed successfully to the Mac, and the app also opened…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-01T14:27:21.1466667+00:00
Huynh Than 65 Reputation points
commented 2024-04-18T02:15:15.6266667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,766 Reputation points Microsoft Vendor
0 answers

Xamarin Cross-Platform MSAL Authentication: Invalid keystore format

I followed this guide "https://damienaicheh.github.io/azure/xamarin/xamarin.forms/2019/07/01/sign-in-with-microsoft-account-with-xamarin-en.html" for setting up authentication for Xamarin android and ios msal. Everything seemed to going fine…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,288 questions
asked 2024-04-18T01:27:01.74+00:00
Craig 0 Reputation points
commented 2024-04-18T02:15:12.0133333+00:00
Craig 0 Reputation points
1 answer

How can i get current user groups from Azure AD using claims in dotnet core?

I have a dotnet core web application and this app authorisation is working based on azure AD. Question: How can i get all the groups name related to login user? do i have to make any changes in my azure app? I have already added this setting in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,337 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,133 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,813 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,361 questions
asked 2024-04-16T09:54:17.1733333+00:00
Tomar, Abhishek 6 Reputation points
edited an answer 2024-04-18T01:58:27.9866667+00:00
Tiny Wang-MSFT 1,571 Reputation points Microsoft Vendor
1 answer

Compatibility Issues with SQLClient Libraries After Migrating to .NET 6 from .NET Framework 4.8

I've encountered issues with Microsoft sqlclient packages after upgrading a set of C# projects from .NET Framework 4.8 to .NET 6.0. The setup consists of a primary C# calculator application, a C# bridge for external integration, and a C++/CLI wrapper.…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,516 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,118 questions
asked 2024-04-17T19:00:39.4733333+00:00
Nova, Sirene R 0 Reputation points
edited the question 2024-04-18T01:50:33.6+00:00
Jiale Xue - MSFT 30,126 Reputation points Microsoft Vendor
0 answers

[MAUI] How to set the icon of a new window in MAUI? Including Android and Windows platforms

I need to open a new window on my Android device and set its icon, similar to a WeChat mini program, but I haven't seen any API documentation related to it in the official documentation that allows me to set its icon, so I want to ask if this is possible…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,337 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-18T01:43:45.9833333+00:00
studio XFE 5 Reputation points
1 answer One of the answers was accepted by the question author.

does razor pages support aot?

razor pages support AOT?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,133 questions
asked 2024-04-17T15:36:34.7966667+00:00
mc 3,641 Reputation points
commented 2024-04-18T00:34:05.3033333+00:00
mc 3,641 Reputation points
2 answers

Azure B2C sign in page does not display company branding images on .NET clients only

We are using MSAL.NET with B2C to authenticate our users. We have a custom company logo and background image that we display when the user signs in to our application. In our Angular-based web portal, the sign in page displays correctly, but in our .NET…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,200 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,337 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,361 questions
asked 2024-04-12T16:26:31.89+00:00
Jordan Hariel 21 Reputation points
answered 2024-04-18T00:16:04.3866667+00:00
Marilee Turscak-MSFT 33,706 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

How to mitigates Cross-Site Scripting (XSS) Attacks using msal-browser and msal-angular on production?

Implementing a login solution using the Microsoft Identity Provider with OpenID Connect (OIDC). Is it safe to use the msal-browser and msal-angular libraries in an Angular application on production? How can Cross-Site Scripting (XSS) Attacks be…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,337 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,133 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,240 questions
asked 2023-12-20T14:46:41.1133333+00:00
Khajo Elias 20 Reputation points
answered 2024-04-17T22:42:51.8566667+00:00
Bruce (SqlWork.com) 54,711 Reputation points
1 answer

How to secure web api in asp.net c# (offboarding and crossboarding users.)

Hi , How to secure web api in asp.net c# i want to secure the web api for offboarding and crossboarding users. Example-offboarding : we have created one api, so we want to secure those api. suppose if a employee has left the organization and he knows the…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
292 questions
asked 2024-04-16T18:28:32.6833333+00:00
Deshmukh, Ashish 1 Reputation point
answered 2024-04-17T21:27:11.7+00:00
Bruce (SqlWork.com) 54,711 Reputation points
1 answer One of the answers was accepted by the question author.

Download captured HTML Div as PDF and also send as PDF attachment to email

I want to achieve 2 things: Capture HTML, convert to Image and download as PDF Send the captured and converted HTML div as PDF attachment to email When I tried capturing the entire div and convert into image and download as PDF but it appears the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,337 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,240 questions
asked 2024-04-16T22:16:51.26+00:00
Donald Symmons 2,826 Reputation points
accepted 2024-04-17T20:39:59.4033333+00:00
Donald Symmons 2,826 Reputation points
2 answers

Transparent flyout items

I don't know why, but if I change my flyout to "Locked "in Desktop In cannot see anything my pages are there, and I can navigate but I cannot see. FlyoutBehavior="{OnIdiom Desktop=Locked, Phone=Flyout}" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-03-30T19:27:49.6733333+00:00
Eduardo Gomez Romero 185 Reputation points
commented 2024-04-17T18:30:21.48+00:00
Eduardo Gomez Romero 185 Reputation points
1 answer

Deployment problem - error MSB4186: Invalid static method invocation syntax

I've got a .net core 8 app being deployed to a windows box and I'm getting the following errors no matter what I do after the pipeline completes successfully: MSB4186: Invalid static method invocation syntax:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,337 questions
asked 2024-04-11T14:05:02.25+00:00
Michael B 20 Reputation points
answered 2024-04-17T18:24:35.12+00:00
Robert John 0 Reputation points