Microsoft Q&A

.NET

13,934 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,934 questions with .NET-related tags

Sort by: Updated
0 answers

How do I fix APT206 - failed linking file resources and APT2259 'textEnd' is incompatible with attribute iconGravity errors?

I have a Xamarin Forms application that I am migrating to MAUI and I am getting the following 2 errors during compilation. APT2259 'textEnd' is incompatible with attribute iconGravity (attr) flags [start=1, textStart=2]. APT2061 failed linking file…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,060 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
378 questions
asked 2023-03-20T05:08:57.3866667+00:00
Gorimar, Behzad 0 Reputation points
edited the question 2023-03-21T23:30:31.7+00:00
Gorimar, Behzad 0 Reputation points
3 answers

Once again when will MS fix VS 2022

So I have now spent another couple of hours trying , pleading with Visual Studio to get it together. Notice the status msg, "All Succeeded" meaning no errors but VS shows errors and I have not been able to get rid of them. Clean, Rebuild,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,060 questions
asked 2023-03-14T15:46:18.4+00:00
Lloyd Sheen 856 Reputation points
edited an answer 2023-03-21T23:03:56.09+00:00
Rob Caplan - MSFT 4,156 Reputation points Microsoft Employee
1 answer

How to localizae application display name of iOS developed with .NET MAUI?

Display name is localized on android in (Resources\values) folder and it works as expected. However, I can't get it to work with iOS. What have been done: In info.plist make sure there is this code …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,060 questions
asked 2023-03-16T12:23:51.11+00:00
Muhab Abdulraheem 1 Reputation point
commented 2023-03-21T22:57:34.95+00:00
Muhab Abdulraheem 1 Reputation point
15 answers One of the answers was accepted by the question author.

Blazor app crashes when debugging after windows secutiry updates

Afert 2023 march 14 updates my app stop debugging. If I start it without debugging it works ok, if I start it debugging it crashes at startup. The error is the following: Microsoft.WebAssembly.Diagnostics.DevToolsProxy[0] DevToolsProxy::Run: Exception…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
875 questions
asked 2023-03-15T11:27:48.58+00:00
Rossend Bruch 230 Reputation points
answered 2023-03-21T22:15:18.6833333+00:00
Lufe Barreto 1 Reputation point
1 answer One of the answers was accepted by the question author.

printing a pdf file embedded on web page

I have a pdf file embedded on a web page. I want to put a print button the web page so that the end user can print the pdf file. How can I achieve this. below is the code for embedding the pdf file on web browser: using (MemoryStream stream = new…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
721 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,807 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.
7,500 questions
asked 2023-03-20T23:26:04.0566667+00:00
Anjali Agarwal 596 Reputation points
accepted 2023-03-21T21:59:03.0066667+00:00
Anjali Agarwal 596 Reputation points
0 answers

Xamarin forms invoking javascript from webview

The android project in the sample as described in this article does not work. The iOS project works exactly as described in the article. The Android does nothing.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,919 questions
asked 2023-03-21T21:45:34.7833333+00:00
tbelvin 1 Reputation point
1 answer One of the answers was accepted by the question author.

How write this query in EF Core or Linq

Hello, I want to write this query in linq or lambda EF core SELECT LAG(id) OVER ( ORDER BY ID ) AS PreviousWord ,ID ,LEAD(id) OVER ( ORDER BY ID ) AS NextWord FROM sales Please help

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,807 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
477 questions
asked 2021-07-28T16:48:16.987+00:00
Prathamesh Shende 306 Reputation points
commented 2023-03-21T21:19:58.08+00:00
Prathamesh Shende 306 Reputation points
1 answer

.net core 7 mvc web app hosted on IIS 10 inprocess - when using GetServerVariable always null

Converted a .net 4.7.1 mvc web app to .net core 7, hosted on iis 10 , in process. A single sign on service sets a server variable that I need to access. When I use HttpContext.GetServerVariable, the value is always null. I have confirmed using an aspx…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,807 questions
asked 2023-03-21T15:47:41.83+00:00
Jeremy Burkhart 0 Reputation points
answered 2023-03-21T21:18:43.43+00:00
Bruce (SqlWork.com) 30,871 Reputation points
1 answer One of the answers was accepted by the question author.

VS2022 can not see my real android device

I have a Galaxy S10e on Android 11 that has Dev mode turned on and is connected via USB to the pc. Visual Studio 2022 does not see this device. It is not in the list of devices to choose to run on. So, I can't test against a real device. I have deleted…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,919 questions
asked 2021-11-23T19:36:54.48+00:00
WillAutioItrax 186 Reputation points
commented 2023-03-21T20:57:21.0933333+00:00
Kirk Covert 0 Reputation points
0 answers

How to wait to long operation to finish

Hi, I have a long operation like System.IO.Compression.ZipFile.ExtractToDirectory(sourcefile,destination). And later I have some code. How do I finished the long operation,I don't know how long ? And later to do code after.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
861 questions
asked 2023-03-21T20:37:21.6533333+00:00
דניאל שטרית 331 Reputation points
0 answers

Route to a particular page based on a Cascading Value. (Similar to how AuthorizeRouteView works)

In the following code example, I am using the AuthorizeRouteView to send users to the LoginRedirect page if they are not authenticated. If they are authenticated, I would then like to route them based on a value in my CascadingAppState. I've tried…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
875 questions
asked 2023-03-21T20:32:28.0733333+00:00
Jeremy Champion 0 Reputation points
0 answers

The model item passed into the dictionary is of type 'DSDB_V1.Models.DSDB_STORE_TBL', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[DSDB_V1.Models.DSDB_STORE_TBL]'.

Hi All I am so confused by this thing. One type of list work... a list with a find or where statement creates an error. No really understanding why. This is the mvc below is the source codes... maybe some one can help. What it is that I am trying to do.…

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.
7,500 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
721 questions
asked 2023-03-21T20:05:04.97+00:00
AppDev 0 Reputation points
edited the question 2023-03-21T20:13:01.4966667+00:00
AppDev 0 Reputation points
1 answer

How to share Cosmos Document DB Container with Blazor Server App And Cosmos Change Feed Function App using Entity Framework (EF)?

I have a Blazor Server App that uses Entity Framework Core to manipulate my Cosmos Container and I want to incorporate an azure change feed. I have created an Azure Change Feed Function App using the Visual Studio 2022 (Preview). This is configured with…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
875 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
974 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
477 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,778 questions
asked 2023-03-17T20:34:26.8333333+00:00
Siegfried Heintze 1,391 Reputation points
commented 2023-03-21T19:57:07.58+00:00
Oury Ba-MSFT 10,171 Reputation points Microsoft Employee
0 answers

Unable to launch IIS Express Web server

I copied a Visual Studio 2022 ASP.NET MVC project that I was working on from my desktop machine to my laptop. When I attempted to test/run the app in debug mode from within Visual Studio 2022, I got an "Unable to launch the IIS Express Web…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,756 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
721 questions
asked 2023-03-21T19:23:22.15+00:00
Richard Rosenheim 21 Reputation points
0 answers

How can I use a class declared in a ViewModel as DataType in XAML (MAUI)

Hey everyone! So I'm making a recipe creation tool that uses SQLite in order to learn MAUI. I'm at the point where I'm trying to use different models for ViewModels, the SQLite data, and I want to have separate models per views as well that are declared…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,060 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.
597 questions
asked 2023-03-21T19:19:40.7033333+00:00
David de Jonge 0 Reputation points
0 answers

Cookie(OICD authentication) is not removed when Browser is closed in ASP.NET Core App

Hello, I have an older ASP.NET Core App that uses OICD Authentication and it's Cookie. Problem is that when old .NET Core 2.1 was updated to .NET Core 3.1 that Cookie stayed to live in Browser although Browser was closed. E.g. Logging into App and then…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,807 questions
asked 2023-03-15T08:11:06.07+00:00
Tapsa 0 Reputation points
edited a comment 2023-03-21T18:34:40.6166667+00:00
Tapsa 0 Reputation points
0 answers

Why is Maui's "Colors.xml" not found building with Visual Studio Mac but is with Visual Studio Windows?

Using VS Mac 17.6 Preview 2, building a MAUI application, it is responding with "Resource "Resources/Styes/Colors.xml" not found (XFC0124)" as an error. Building the exact same code, just copied to the Mac for its build, with VS…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,060 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,756 questions
asked 2023-03-21T18:20:33.5833333+00:00
Marc George 66 Reputation points
0 answers

simpler RowDefinitions

Hi, I have the following RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" How can I make it simpler to have 12 Auto Rows? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,060 questions
asked 2023-03-21T18:17:39.2066667+00:00
Jassim Al Rahma 1,166 Reputation points
0 answers

HorizontalScrollView not Scrolling to Unrendered RecyclerView Items

I have a HorizontalScrollView that contains a RecyclerView. However, the HorizontalScrollView only lets me scroll far enough to see the items that are already or partially visible. I believe this is because RecyclerView does not render items until they…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,919 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
861 questions
asked 2023-03-19T23:16:52.9566667+00:00
Nathan Sokalski 4,051 Reputation points
commented 2023-03-21T18:00:09.18+00:00
Nathan Sokalski 4,051 Reputation points
0 answers

Writing a "Reader" Application

I am trying to plan the development of an application which would likely run as a service. This service would connect to a number of "devices" (RFID, Cameras, etc.) and listen/pull the data from these devices to then process in any number of…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,756 questions
Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
110 questions
Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
273 questions
asked 2023-03-21T17:35:13.4466667+00:00
Nicholas Coppola 0 Reputation points