Microsoft Q&A

.NET

12,836 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,836 questions with .NET-related tags

Sort by: Updated
0 answers

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,906 questions
asked 2023-01-26T20:32:49.7633333+00:00
Ronald Rex 466 Reputation points
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
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
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,383 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,906 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
asked 2023-01-26T20:24:50.2266667+00:00
Eli Blankenship 0 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,882 questions
asked 2023-01-17T18:30:35.1266667+00:00
nope no 1 Reputation point
commented 2023-01-26T19:37:11.0433333+00:00
Michael Taylor 37,326 Reputation points
0 answers

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
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
1 answer One of the answers was accepted by the question author.

What is Best Practice for where to place Javascript for a View

In my views, if I need to include Javascript for that specific view only, I will code the page, then just place the Javascript at the bottom, like this: <div class="blabla" onclick="bleep()"></div> <script…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
573 questions
asked 2023-01-25T18:59:22.02+00:00
Coreysan 781 Reputation points
commented 2023-01-26T18:24:34.4733333+00:00
Coreysan 781 Reputation points
2 answers

How to fix "The target process exited without raising as CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core"

My application console application is build on .net core 7 and gave error when running on docker container, several other console applications running properly but one gave problem. Docker container logs given below: Targer OS is linux. I have tried…

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
asked 2023-01-24T11:56:16.52+00:00
Faisal suleman 0 Reputation points
answered 2023-01-26T17:11:12.6666667+00:00
Bruce (SqlWork.com) 27,846 Reputation points
1 answer

MFA\2FA website authentication

would like to setup MFA authentication for users accessing my site on the internet. is there a way to embedd in my web site a start up code is there any solution ready for that perpse the site is public , so meany clients can ping it so ...

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
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
573 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-25T08:21:43.1+00:00
Eyal 0 Reputation points
answered 2023-01-26T17:03:07.58+00:00
Bruce (SqlWork.com) 27,846 Reputation points
1 answer

In C# Blazor Server How Can I Send a 404 From A Static Method?

After much work, I finally found a way to get the IP Address of the client in Blazor Server. To do this, I had to use a site called ipify: <script> function GetAddress() { var script = document.createElement("script"); script.type…

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,906 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.
781 questions
asked 2023-01-26T15:17:28.5433333+00:00
Data Juggler 146 Reputation points
answered 2023-01-26T16:55:49.5766667+00:00
Bruce (SqlWork.com) 27,846 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…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,821 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,383 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
593 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
answered 2023-01-26T16:53:42.7+00:00
Limitless Technology 8,891 Reputation points
0 answers

Xamarin.Forms Speakerphone Stop Activating Suddenly on Android 10

I have App that has been working for years on Android 10 now it works sometimes on Inbound calls but never on Outbound calls. Here is a simple Broadcast Reciever and MainActivity. [BroadcastReceiver(Enabled = true, Exported = true)] [IntentFilter(new[]…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,803 questions
asked 2023-01-17T22:27:57.81+00:00
Universal Camera 286 Reputation points
commented 2023-01-26T16:43:17.94+00:00
Universal Camera 286 Reputation points
0 answers

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
edited the question 2023-01-26T16:34:50.91+00:00
Ronald Rex 466 Reputation points
1 answer One of the answers was accepted by the question author.

Questions about MAUI's Entitlement.plist

Hi, How important is the Entitlement.plist in MAUI? and why it's not added by default? so does this mean I don't need to for example to set the Push Notification capabilities? Kindly advise.. 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-24T13:19:41.7666667+00:00
Jassim Al Rahma 1,046 Reputation points
accepted 2023-01-26T15:39:57.72+00:00
Jassim Al Rahma 1,046 Reputation points
0 answers

MauiSplash to fill the screen

Hi, Using: <ItemGroup> <MauiSplashScreen Include="Resources\Splash\splashscreen.svg" /> </ItemGroup> How can I make the splash image to fill the screen vertically and horizontally? 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-25T21:51:19.36+00:00
Jassim Al Rahma 1,046 Reputation points
commented 2023-01-26T15:38:07.8566667+00:00
Jassim Al Rahma 1,046 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,906 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
593 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
asked 2023-01-12T15:00:24.92+00:00
Charles Burkitt 10 Reputation points
commented 2023-01-26T15:36:41.51+00:00
Michael Taylor 37,326 Reputation points
0 answers

How to implement zoom in, Zoom out and scrolling functionality for GraphicsView element?

Currently I'm trying on Dot Net 7 only for android and iOS platforms. I am trying to zoom in on GraphicsView. Zoom in zoom out functionality is working fine but getting issue for scroll vertical and horizontal. scroll is not working. I want to scroll…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
868 questions
asked 2023-01-25T04:31:29.35+00:00
S GAIKWAD 206 Reputation points
commented 2023-01-26T15:24:12.75+00:00
S GAIKWAD 206 Reputation points
1 answer

SsdtHelper.DeployDacPacWithOptions() fails with System.MissingMethodException: Method not found: 'Void Microsoft.SqlServer.TransactSql'

I have a .NET Framework 4.6.1 (upgrading to 4.6.2 doesn't solve it) project that uses DacServices to deploy my database's SSDT on a Docker container. This eventually uses the following code: using (var fileStream = new FileStream(dacpacPath,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
593 questions
asked 2023-01-23T12:08:46.3933333+00:00
Ron Anoshi 0 Reputation points
answered 2023-01-26T15:12:07.54+00:00
Ron Anoshi 0 Reputation points
0 answers

Connect programmatically to a wifi network

Hi, I'd to know how can I connect do a wifi network with hide ssid programmatically? Thanks. Renan Paiva

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
868 questions
asked 2023-01-26T14:35:19.6533333+00:00
Renan Paiva 1 Reputation point
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,906 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
edited a comment 2023-01-26T14:30:46.12+00:00
Reza Aghaei 2,521 Reputation points Microsoft MVP