Microsoft Q&A

.NET

20,777 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,777 questions with .NET-related tags

Sort by: Updated
1 answer

Execute msix with administrator privileges and run script

I am developing a Windows application with .NET MAUI and I am building the msix with Visual Studio, as stated in the .NET MAUI documentation: https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/publish-visual-studio-folder I don't know if it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-03T07:51:25.6666667+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
edited an answer 2023-10-04T08:29:55.02+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,731 Reputation points Microsoft Vendor
0 answers

Issue with link generating in Azure for Digital Twin

I have issue with Deployments details and also there is a message while generating code that bicep is set to false. Please find the IMG below. If anyone could help me that would be really appreciated. Thank you.

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,039 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
66 questions
asked 2023-10-04T08:29:17.7933333+00:00
Sonia Varma 0 Reputation points
1 answer

Determine "Recommended" display resolution settings

Got the code that gets a list of the monitors (using EnumDisplayDevices) along with getting all the settings (using EnumDisplaySettings) for each monitor working just fine. However, when I right click my desktop and adjust the resolution one of the…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,920 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,077 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,039 questions
asked 2023-10-02T16:02:33.03+00:00
Dave Cotton 41 Reputation points
commented 2023-10-04T08:19:54.33+00:00
Castorix31 77,506 Reputation points
0 answers

staticwebapp.config.json is being ignored

I'm hosting a blazor wasm app in azure static web apps but my staticwebapp.config.json is being ignored. I've tried placing it in the root folder and /wwwroot. I'm deploying through visual studio This is the contents of the json file: { …

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,115 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
553 questions
asked 2023-09-27T11:27:57.19+00:00
Anton 0 Reputation points
commented 2023-10-04T08:05:23.87+00:00
JasonPan - MSFT 2,856 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

dotnet blazor maui UAE PASS authentication unable to redirect to the mobile app after authentication is done

I'm Developing the app with UAE pass authentication using Maui Blazor technology(C#). successfully obtained the authorization code from UAE Pass but i am facing difficulties redirecting back to mobile app. Please find the attached file. I have…

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,115 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-03T05:25:23.7233333+00:00
Raju Gadda 46 Reputation points
accepted 2023-10-04T07:53:02.4833333+00:00
Raju Gadda 46 Reputation points
0 answers

Emulator error in Visual studio 2022

Hi Team, I am trying to run a Xamarin application using Visual Studio 2022 community. From Android device Manager, I have created an emulator with below configuration - Processor - X86_64 OS - Android 13.0 - API 33 While running it getting below error…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,165 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,831 questions
asked 2023-10-03T17:46:27.84+00:00
salilsingh-9961 221 Reputation points
commented 2023-10-04T07:24:04.15+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,481 Reputation points Microsoft Vendor
1 answer

Push notification on MAUI application using FCM

I am trying to implement push notification on my MAUI application using FCM. I follow this blog and I did everything as per the blog. They suggest to install only 2 NuGet packages, Plugin.Firebase and Plugin.Firebase.Crashlytics. (I installed it by…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-09-29T10:06:12.68+00:00
Sreejith Sreenivasan 406 Reputation points
commented 2023-10-04T07:15:06.6133333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,731 Reputation points Microsoft Vendor
0 answers

"Failed to get document because the client is offline" error in Xamarin.Forms project

Here is my code of App.xaml.cs file of a Xamarin.Forms project: public partial class App : Application { public App() { CrossFirebaseCrashlytics.Current.HandleUncaughtException(); InitializeComponent(); …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,165 questions
asked 2023-10-01T17:36:29.6766667+00:00
Costas Athan 21 Reputation points
commented 2023-10-04T07:13:52.8533333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,481 Reputation points Microsoft Vendor
1 answer

Event ID 1309 ASP.NET 4.0.30319.0 Warning

I put the whole error below, but before I continue there's a phrase in this error people are going to focus on and it's NOT the problem. There is no trust relationship problem with the server. What I don't doubt is at issue is communication to the…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,646 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
10,643 questions
asked 2023-10-03T16:00:54.65+00:00
Will 0 Reputation points
answered 2023-10-04T07:11:06.13+00:00
Lex Li (Microsoft) 3,896 Reputation points
2 answers

Error when try read data from Excel File in ASP.NET MVC

In an ASP.NET MVC app, I am trying to read data from Excel file but I get this error: The error appears in production mode, but in development mode there's no problem. I am making host on Local Host on my computer Microsoft Excel cannot access the file…

Internet Information Services
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
991 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,039 questions
asked 2023-10-03T17:37:39.96+00:00
mostafa ahmed 1 Reputation point
commented 2023-10-04T07:04:55.62+00:00
Lex Li (Microsoft) 3,896 Reputation points
2 answers

How rendering handling concurrency in razor page from API response?

Hi, I'm following up on all the discussions I've had about handling concurrency errors. 1 - I would like to know if it is possible to handle concurrency errors in a context where I have a DataGrid in edition mode on a line? 2 - I have defined a put…

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,115 questions
asked 2023-09-29T16:15:02.6566667+00:00
sblb 1,141 Reputation points
commented 2023-10-04T06:39:27.6233333+00:00
sblb 1,141 Reputation points
2 answers One of the answers was accepted by the question author.

ShellItemRenderer.java - Error when building Android Solution

Hi When building the solution (tried both Xamarin forms 4.8 and 5) i keep getting the folllowing errors. I have deleted bin and obj directories but the issue continues Error error: ShellItemRenderer is not abstract and does not override abstract…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,165 questions
asked 2021-07-11T08:06:50.87+00:00
Andrew 156 Reputation points
commented 2023-10-04T06:38:21.61+00:00
SUFIYAN S A 0 Reputation points
0 answers

Azure Cognitive Search - Spell Checker Implementation in C#

I am looking for implementing spell checker for the azure cognitive search in C#. For now I have reviewed the spell checker link from the official Microsoft documentation: https://learn.microsoft.com/en-us/azure/search/speller-how-to-add But there's no…

Azure Cognitive Search
Azure Cognitive Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
408 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,591 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,039 questions
asked 2023-09-28T14:28:44.4133333+00:00
sachin sipl 0 Reputation points
edited the question 2023-10-04T06:37:58.6133333+00:00
romungi-MSFT 38,646 Reputation points Microsoft Employee
1 answer

How do I get the FreeTextTable.Rank via Entity Framework

Hi all; I'm able to get a list of records using FreeTextTable in Entity Framework as follows: var EventsSqlWhere = $"SELECT top 200 * FROM FreeTextTable(Events, *, {0}, 200) as t INNER JOIN Events u on u.Id = t.[KEY] ORDER BY t.[RANK]…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 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.
11,029 questions
asked 2023-10-01T21:17:12.57+00:00
David Thielen 1,426 Reputation points
edited a comment 2023-10-04T06:37:08.56+00:00
Hui Liu-MSFT 21,616 Reputation points Microsoft Vendor
2 answers

Upload a file on one drive using microsoft graph api in c# asp.net

Hello, I have one question,I want to upload a file on one drive and it is worked properly in console application but not in web application. Please help me here below is my sample console application…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
8,123 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
623 questions
asked 2023-02-02T06:06:01.9066667+00:00
Alisha Mulla 0 Reputation points
edited a comment 2023-10-04T06:34:38.9666667+00:00
PSSPL Trainee36 0 Reputation points
0 answers

How to Fix unhandled exception in windows when closing a secondary window using the close button in the title bar

When Multiple windows are opened using Application.Current.OpenWindow() Closing a window (not the primary application window) using the close button in the title bar (specially when the window is not in the foreground) raises an unhandled…

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.
3,093 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-03T08:17:08.5566667+00:00
Ramin Khalili 0 Reputation points
commented 2023-10-04T05:53:46.2133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,481 Reputation points Microsoft Vendor
0 answers

Sending email function is not sending email

Hi, My send email function is not working on my emulator or on the mobile from the app store. Am I missing something? Like some permissions etc? private async void SendFeedbackEmail() { try { var…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,165 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,039 questions
asked 2023-10-04T05:44:13.34+00:00
Matthew Zoljan 80 Reputation points
2 answers

Reducing opacity of swipe images

How do I reduce the opacity of images in a swiper container, except for the image that is swiped to display in the middle? For example, as the images are swiping through, any image that appear in the middle will be clear while the other ones beside will…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,077 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,646 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
623 questions
asked 2023-10-03T12:11:36.16+00:00
Donald Symmons 2,066 Reputation points
answered 2023-10-04T05:39:40.4266667+00:00
Lan Huang-MSFT 18,036 Reputation points Microsoft Vendor
1 answer

HttpListener used on Xamarin.IOS app. "Safari cant open the page because it couldn't connect to the server" error only on iOS 17 devices.

Our project uses the latest Xamarin and our app has a function that creates a HTTP server to store a html and config file, and we use SfSafariViewController to view the contents on the html file. However, after the release of iOS17, this function does…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,165 questions
asked 2023-09-20T06:21:25.29+00:00
ZNXJH 0 Reputation points
edited a comment 2023-10-04T05:26:45.9733333+00:00
RAgib Noor 1 Reputation point
0 answers

Maui android screen keyboard for entry when keyboard is showing

Hello all. I use entry handler to prevent keyboard pop when the entry has focused and it works ok but if the keyboard is already showing and I tap the entry field the keyboard still showing and I need to manually hide it. How I can fix that…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-03T10:01:07.2166667+00:00
Haviv Elbsz 1,311 Reputation points
commented 2023-10-04T05:09:14.94+00:00
Haviv Elbsz 1,311 Reputation points