Microsoft Q&A

.NET

12,837 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,837 questions with .NET-related tags

Sort by: Updated
1 answer

500 internal server error in Windows server 2012 with IIS 8 for ASP.net core 6 mvc

I know this is a common errors but i am getting desperate and frustrated. I have published to folder my ASP.net Core 6 MVC application and deployed in a server running Windows 2012 and IIS 8 and I am getting the server error 500. I have tried going…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,515 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,132 questions
asked 2023-01-27T02:50:11.1333333+00:00
cebuhax0r 21 Reputation points
edited an answer 2023-01-27T03:00:37.6166667+00:00
Az Torial 0 Reputation points
0 answers

visual studio 2022 android project create dll and not apk ?

Hello, I have on my computer visual studio 2017 with xamarin and all works fine. I've installed visual studio 2022 and now , when i try to create a android projects and build it create a dll not an apk ... How to find a solution with this ? All android…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
593 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,803 questions
asked 2023-01-20T15:07:35.49+00:00
cristopheB 476 Reputation points
commented 2023-01-27T02:50:57.23+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 10,981 Reputation points Microsoft Employee
0 answers

xamarin android emulator android > 9 ? how to make ?

Hello all, I have vs 2022 entreprise installed on my computer all works fine with emulator below android 9 .. i can push my app , debug ans so on .. I've try to make an android 10 / 11 and so on but impossible to start it ,, Of course i have the sdk who…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,803 questions
asked 2023-01-26T09:28:50.3866667+00:00
cristopheB 476 Reputation points
commented 2023-01-27T02:46:48.3566667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,086 Reputation points Microsoft Employee
1 answer

BrowserLaunchOptions's Style

Hi, Is it possible to set the properties of the BrowserLaunchOptions in the Resources's Style file? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
868 questions
asked 2023-01-05T22:54:32.547+00:00
Jassim Al Rahma 1,046 Reputation points
commented 2023-01-27T02:22:01.74+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 10,981 Reputation points Microsoft Employee
4 answers

How to loop through JSON data?

Hi, I am calling an api and this is the return data. Could you please help me to loop through the JSON data? The JSON string - { "Outputdata": { "@xmlns": "http://xmlns.oracle.com/apps/pa/.......", …

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.
6,905 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,172 questions
asked 2023-01-25T17:43:30.51+00:00
Paul 0 Reputation points
commented 2023-01-27T02:02:48.7666667+00:00
QiYou-MSFT 856 Reputation points Microsoft Employee
1 answer

How to configure Auto update in MAUI application ?

Hi, Consider we have developed a MAUI application, for deployment of this MAUI application in multiple machine we created a setup file / package following this link -…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
868 questions
asked 2023-01-20T05:42:27.7633333+00:00
Sanket Vinod Solanki 0 Reputation points
commented 2023-01-27T01:53:10.0833333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 10,981 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How to clear text box records before or after downloading a file in ASP.NET web application

using (FileStream fs = File.Create(dataDir + xmlFileToConvertTo)) { Byte[] info = new UTF8Encoding(true).GetBytes(xmlData); fs.Write(info, 0, info.Length); …

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.
6,905 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.
385 questions
asked 2023-01-26T04:58:36.0633333+00:00
Roefatin, Ridzuan 20 Reputation points
commented 2023-01-27T01:34:34.4033333+00:00
Roefatin, Ridzuan 20 Reputation points
0 answers

ASP.NET Core app fails to start because of a not unique authentication scheme

I have a ASP.NET Core app that uses to Azure AD sections in. appsettings.json "AzureAdInternal": { "Instance": "https://login.microsoftonline.com/", "Domain": "demo.example.com", …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,515 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,545 questions
asked 2023-01-20T12:44:56.0633333+00:00
Jörg Auberg 20 Reputation points
edited the question 2023-01-27T01:25:43.09+00:00
Grmacjon-MSFT 8,516 Reputation points Microsoft Employee
1 answer

Shell Navigation and setting Parameter Values

I have included the code that I am using to pass parameters from one view to another view using shell navigation. The issue I am having is that I would like to set my model properties using for example the text entry control. Do I do that using a relay…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
868 questions
asked 2023-01-26T16:27:01.2666667+00:00
Ronald Rex 466 Reputation points
answered 2023-01-27T01:07:36.1566667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,086 Reputation points Microsoft Employee
2 answers

Net Maui how to solve memory using problem that is it bug ?

I am working on net maui as a developer I have memory problem that app is closing or freezing itself.. any solution or we have to wait for fixing the bug ? Thanks..

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
868 questions
asked 2023-01-19T02:39:22.9466667+00:00
Sami 101 Reputation points
commented 2023-01-27T01:05:30.7433333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 10,981 Reputation points Microsoft Employee
1 answer

Shell Navigation and passing Parameter Values

Hi friends, I was wondering how to pass multiple parameters. I can pass one parameter for now... ?Name={Name} Thanks Task Navigate() => Shell.Current.GoToAsync($"{nameof(DetailPage)}?Name={Name}",

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
868 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.
6,905 questions
asked 2023-01-26T20:32:49.7633333+00:00
Ronald Rex 466 Reputation points
edited an answer 2023-01-27T01:03:55.4+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,086 Reputation points Microsoft Employee
0 answers

How to fix Windows Sandbox failed to initialise. Error 0x800736b3. The referenced assembly is not installed on your system

I want to run Azure Synapse Analytics labs but the button for the Sandbox does not appear. When I try to run the App directly I get the error indicated in the Title. I have installed Windows 11 Pro Insider Preview. What I have already done to try to…

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
2,599 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning:
111 questions
asked 2023-01-25T14:33:03.9033333+00:00
Joao Monteiro 0 Reputation points
commented 2023-01-26T23:31:51.66+00:00
KranthiPakala-MSFT 32,891 Reputation points Microsoft Employee
0 answers

Does XAML (UWP) Visual Designer in Blend for Visual Studio 2022 work on Windows 10?

I am trying to design a C# Maui UI in XAML. I read that you can use Blend for Visual Studio to visually program XAML code. So, I loaded a new C# Class project in Blend to attempt an XAML visual edit, though the "Design" tab says "Visual…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
868 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,384 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.
557 questions
Universal Windows Platform (UWP)
asked 2023-01-26T20:24:50.2266667+00:00
Eli Blankenship 0 Reputation points
commented 2023-01-26T22:56:17.9833333+00:00
Rob Caplan - MSFT 4,016 Reputation points Microsoft Employee
1 answer

Changing IIS application pool identity causes issues

Hello, I am currently in the process of changing the user running the application pool for my IIS .NET 6 website. I am switching it from a domain user to another domain user with identical rights and group memberships. Although my website appears to be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,515 questions
Internet Information Services
asked 2023-01-26T12:15:24.2466667+00:00
randylaheydev 0 Reputation points
answered 2023-01-26T21:47:00.02+00:00
Bruce (SqlWork.com) 27,846 Reputation points
1 answer

.NET error in Event Viewer, "filenotfoundexception" "typeinitializationexception"

I'm at the end of my rope here. Details: Using Microsoft Visual Studio Installer Projects Windows 10 is the target system, x86 is the build target, x64 is the windows machine. I've built and deployed this installer with my projects into this machine…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
593 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,885 questions
asked 2023-01-17T18:30:35.1266667+00:00
nope no 1 Reputation point
commented 2023-01-26T21:38:49.62+00:00
Michael Taylor 37,326 Reputation points
1 answer

Unable parse Json

Can any body help me parse the below json in ASP.net C# i need the grantedTo": email and Id also. I have tried many ways but unable to parse. Can anybody…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,172 questions
asked 2023-01-26T19:22:34.45+00:00
Pradyut Sinha 6 Reputation points
answered 2023-01-26T21:22:12.5033333+00:00
Bruce (SqlWork.com) 27,846 Reputation points
2 answers

How to find the index of a newly added item in a ListView collection

I have a ListView element using a GridView. The ListView.ItemsSource property is bound to a CollectionViewSource. When I add a new item to the collection, the item appears successfully in the grid but I cannot determine the index at which it appears…

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.
6,905 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,169 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.
557 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
593 questions
asked 2023-01-12T15:00:24.92+00:00
Charles Burkitt 10 Reputation points
commented 2023-01-26T21:21:44.7433333+00:00
Charles Burkitt 10 Reputation points
2 answers

VB.NET Winform HttpWebRequest / XmlDocument Error: The remote server returned an error: (403) Forbidden.

So the below code works on my home network but at work .NET application gets a 403 Forbidden. I believe ZScaler firewall is blocking traffic, but I can view XML via browser without issue just not in a .NET application. I have read that it's trying to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
593 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,823 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,384 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,314 questions
asked 2023-01-25T16:52:26.0466667+00:00
jim brown 251 Reputation points
commented 2023-01-26T21:17:08.87+00:00
jim brown 251 Reputation points
0 answers

Upload a File One drive using MS Graph API in C#

when I am Uploading a File using Onedrive MS graph API in C# the file get Uploaded but every time i got a mail to that one drive account. I have set all notifications off from the one drive settings but still i am getting an email on every time file…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,172 questions
asked 2023-01-26T18:56:59.4+00:00
Pradyut Sinha 6 Reputation points
1 answer

Loop through Controls in ScrollView and Get the Data

Hi, In below XAML: <ScrollView x:Name="ScrollViewDetails" Grid.Row="1"> <VerticalStackLayout> <VerticalStackLayout x:Name="StackLayoutPhones"> <BindableLayout.ItemTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
868 questions
asked 2023-01-20T21:11:41.77+00:00
Jassim Al Rahma 1,046 Reputation points
commented 2023-01-26T18:54:32.6833333+00:00
Jassim Al Rahma 1,046 Reputation points