Microsoft Q&A

.NET

12,989 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,989 questions with .NET-related tags

Sort by: Updated
0 answers

String interpolation using $ throws System.NullReferenceException on .Net7

We have in my team just upgraded to .net 7 from 6, but we have run into a issues with string interpolation using $"Text {sample}" We are all developing on Intel Macbook Pro's using both Visual Studio or JetBrains Rider. But since the upgrade…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
624 questions
asked 2023-02-02T23:08:22.8133333+00:00
Morten Starck 0 Reputation points
edited the question 2023-02-02T23:09:04.55+00:00
Morten Starck 0 Reputation points
7 answers

How to convert xml to style so that browser can render html from xml when using RSS

I have downloaded a app called MessageBoard and trying to configure RSS Feed to output serialised data to browser. The result display a error message with code written in xml format. This XML file does not appear to have any style information associated…

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.
403 questions
asked 2023-01-30T01:05:53.09+00:00
peter liles 371 Reputation points
answered 2023-02-02T22:55:38.47+00:00
peter liles 371 Reputation points
1 answer One of the answers was accepted by the question author.

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.
902 questions
asked 2023-01-20T21:11:41.77+00:00
Jassim Al Rahma 1,086 Reputation points
accepted 2023-02-02T22:54:52.3533333+00:00
Jassim Al Rahma 1,086 Reputation points
0 answers

Help with CommunityToolkit.MVVM

Hi, I am trying to use the CommunityToolkit.MVVM but when setting the two values in my sample vcard and color it's not getting Binded later on. the Popup as you can clearly see in the sample. https://www.softnames.com/temp/MVVMApp.zip Kindly…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
asked 2023-02-02T22:53:31.4766667+00:00
Jassim Al Rahma 1,086 Reputation points
0 answers

Visual Studio giving errors about incompatible packages that are not installed

I have an ASP.NET Blazor server-side solution that I (and other team members) have been working on for months. I just pulled the code from source control onto my lap top. However, VS gives errors like this... Package Microsoft.Win32.Registry…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
624 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,429 questions
asked 2022-11-20T14:52:38.523+00:00
Yossu 6 Reputation points
edited a comment 2023-02-02T22:51:49.4166667+00:00
Lord Asrothear 0 Reputation points
0 answers

How to query the device twin graph using the built-in `LastUpdatedOn` property from the BasicDigitalTwin?

The BasicDigitalTwin holds a built-in property LastUpdatedOn. As a developer, I want to run a query to find all the stale or fresh twins, example: SELECT * FROM DIGITALTWINS WHERE LastUpdatedOn > '{yesterday}' This query is syntactically correct but…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 questions
Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
122 questions
asked 2023-02-02T22:50:47.77+00:00
Uriel Kluk 21 Reputation points
1 answer

Max size of System.IO.MemoryStream

Im trying to fetch a .bak file of 3GB size and upload to my blob storage using the SSH.NET package. I get an System.IO.IOException: stream was too long error! I cant find the max size of handeled streams for the System.IO.MemoryStream anywhere. Do…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,403 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,602 questions
asked 2023-02-02T10:46:56.6733333+00:00
August Asheim Birkeland 20 Reputation points
edited an answer 2023-02-02T21:06:59.63+00:00
SaiKishor-MSFT 15,001 Reputation points Microsoft Employee
0 answers

error when I tried to findBy string in API

Hello, currently, I'm learning Swagger, when I tried to create find by username ,I got the below error [HttpGet] [Route("{fullname:string}")] public async Task<IActionResult> signIn([FromRoute] string…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 questions
asked 2023-02-02T20:50:37.62+00:00
ahmed omar 61 Reputation points
1 answer

error when I tried to findBy string in API

Hello, currently, I'm learning Swagger, when I tried to create find by username ,I got the below error [HttpGet] [Route("{fullname:string}")] public async Task<IActionResult> signIn([FromRoute] string…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 questions
asked 2023-02-02T20:42:16.4033333+00:00
ahmed omar 61 Reputation points
answered 2023-02-02T20:49:48.9466667+00:00
Michael Taylor 37,946 Reputation points
0 answers

How do I add HATEOAS support to a .NET Core 6 OData enabled API

Creating a .NET core 6 based Web API. Looking to support OData features such as $filter, $select, $orderby, $count, and to also provide HATEOAS links in responses. Having a hard time finding a good example of a code pattern that incorporates both OData…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
624 questions
asked 2023-02-02T20:33:30.5033333+00:00
Tony Ambrose 0 Reputation points
0 answers

How to remove shared permission individual wise from an external user using One drive API inc#

I have uploaded a file in one drive using MS graph one drive API. I have also shared this item to external users by using one drive API. These two external users also showing in the manage access section as Link User. i want to remove individual Link…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,195 questions
asked 2023-02-02T20:15:59.9266667+00:00
Pradyut Sinha 16 Reputation points
0 answers

How to Remove Permission for shared item individually in One Drive API in C#

I have uploaded a file in one drive using MS graph one drive API. I have also shared this item to external users by using one drive API. These two external users also showing in the manage access section as Link User. i want to remove individual Link…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,195 questions
asked 2023-02-02T20:12:41.9933333+00:00
Pradyut Sinha 16 Reputation points
1 answer

Best structure for a zero downtime simple ASP .NET / DB web app

This will be a pretty simple app with a lot being read from the DB, display on the web page; submit a web page, write to the DB. With some calls to some standard ML services as part of a query on the DB and evaluate what is submitted. It will be a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 questions
asked 2023-02-02T18:02:52.3366667+00:00
David Thielen 401 Reputation points
commented 2023-02-02T20:04:06.7633333+00:00
David Thielen 401 Reputation points
0 answers

How create a Xamarin Android distro than can be sideloaded?

I have done this before. I believe in Android Porject->Properties->Archive I used to be able to create an APK that could then be sideloaded from a shared Windows server onto an Android device. I am now on VS 2022 and it seems the only Archive…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-02-01T17:24:30.1866667+00:00
Charles Mills 26 Reputation points
commented 2023-02-02T19:54:21.3066667+00:00
Charles Mills 26 Reputation points
1 answer One of the answers was accepted by the question author.

Is there a Event handler available on .Net / c++ /c# for Wireless profile added event and deleted event?

I want to register a Windows app for listening to Wireless profile changes (Addition or Deletion) performed on Windows settings or by executing netsh commands from CMD. Is there any event handler available for the same? If yes, how to register for the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
434 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.
1,895 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
956 questions
.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things:
22 questions
asked 2023-02-01T15:48:01.6966667+00:00
Shivanand Rao A V 0 Reputation points
commented 2023-02-02T19:52:59.21+00:00
Castorix31 65,711 Reputation points
0 answers

Layout design for mobile and desktop (width, height and density)

I want to display data tables in an application on mobile as well as in the web browser or on the desktop and I want it to look appropriate. My idea is to show or hide the table columns depending on the width of the screen ( Note: I can open the row…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 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.
791 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,975 questions
asked 2023-02-02T19:11:41.4033333+00:00
perfect code 161 Reputation points
0 answers

Layout design for mobile and desktop (width, height and density)

I want to display data tables in an application on mobile as well as in the web browser or on the desktop and I want it to look appropriate. My idea is to show or hide the table columns depending on the width of the screen ( Note: I can open the row…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 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.
791 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,975 questions
asked 2023-02-02T19:08:53.2466667+00:00
perfect code 161 Reputation points
0 answers

Add-Migration CreateIdentitySchema

Having difficulty with the Add-Migration CreateIdentitySchema step in the tutorial. Any help would be appreciated: Tutorial:…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
599 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 questions
asked 2023-02-02T19:05:35.5133333+00:00
Dean Everhart 401 Reputation points
0 answers

Add-Migration CreateIdentitySchema

Having difficulty with the Add-Migration CreateIdentitySchema step in the tutorial. Any help would be appreciated: Tutorial:…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,565 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
599 questions
asked 2023-02-02T19:03:35.49+00:00
Dean Everhart 401 Reputation points
0 answers

No funcionan los breakpoint .net 2005 en win11

Recientemente actualice mi computadora a win 11, y tengo instalado el .net 2005, y ahora no funcionan los breakpoint en ningún website que tengo, no me marca ningun error simplemente no los reconoce. Ya intente todas las soluciones que he encontrado…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,195 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,518 questions
asked 2023-02-02T18:53:28.33+00:00
LauER77 0 Reputation points