Microsoft Q&A

.NET

13,950 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,950 questions with .NET-related tags

Sort by: Updated
0 answers

How to Open Files on Xamarin Android Using FilePicker

using Xamarin.Essentials; (at the top of the file) async Task<FileResult> PickAndShow(PickOptions options) { try { var result = await FilePicker.PickAsync(options); if (result != null) { string Text…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,919 questions
asked 2023-03-21T13:53:33.71+00:00
Ronald GANS 136 Reputation points
commented 2023-03-23T01:30:27.5933333+00:00
Ronald GANS 136 Reputation points
1 answer

.NET Maui How to convert a byte array image to a .NET maui image

Hi There seems to be some difference between the System.Drawing.Image and the Microsoft.Maui.Controls.Image, and I have failed implementing any of the solutions found online. I have a test page created with this Xaml code: <?xml…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-21T11:21:53.2733333+00:00
Peter Karlström 1 Reputation point
commented 2023-03-23T01:25:16.12+00:00
Peter Karlström 1 Reputation point
0 answers

Is there a way we can integrate .NET MAUI onto existing swift code project

I have an project which was developed in Swift using Xcode. Is there a way we can integrate .NET MAUI on to existing Swift project ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-23T01:01:48.7966667+00:00
Sam 0 Reputation points
edited the question 2023-03-23T01:22:16.3433333+00:00
Rob Caplan - MSFT 4,156 Reputation points Microsoft Employee
0 answers

.net Maui is installed but is not shown in viusal studio 2022

i update visual to 17.5.3 but maui is installed but not shown in visual studio , what's problem ? by the way , when i updated visual i have two errors can this have is effect ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 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,755 questions
asked 2023-03-22T17:33:31.8433333+00:00
Mahdi Elahi 21 Reputation points
commented 2023-03-22T23:35:20.99+00:00
Mahdi Elahi 21 Reputation points
1 answer One of the answers was accepted by the question author.

SqliteDB location

I have an application in xamarin forms and I use SQLite to create a database and store all my data but I can't find my database. I've tried using adb but when I am pulling the file that was meant to have my database the adb says pulled successfully 0…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,919 questions
asked 2023-03-21T12:55:48.2333333+00:00
MohamediAIJH-8327 221 Reputation points
accepted 2023-03-22T22:08:02.1633333+00:00
MohamediAIJH-8327 221 Reputation points
0 answers

Problem with changing SSAS Tabular model by TOM

Hi! I try develop SSAS Tabular model by TOM API and C# language. Unfortunately, I have some problem with change model. We have ready model in project, that was developed with using VS 2019 UI interface. I haven't problem with get information about model…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,814 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,517 questions
asked 2023-03-22T19:51:33.07+00:00
User_Serachev 0 Reputation points
edited the question 2023-03-22T20:53:04.66+00:00
User_Serachev 0 Reputation points
4 answers

Weird errors problem with dotnet watch with blazor/wasm.

I have a really annoying problem with dotnet watch and blazor/wasm. I have a solution in which I have multplie projects, for example an API, a blazor/wasm project and some common classlibraries. I start the API part with CTRL+F5, and I start the Blazor…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
876 questions
asked 2022-02-28T10:45:49.527+00:00
Tendenz Noord 6 Reputation points
commented 2023-03-22T20:30:29.7833333+00:00
Faroeq Alves 0 Reputation points
2 answers

Unhandled exception rendering component: '<' is an invalid start of a value

Hi, I used blazor wasm and I just want rendering a datagrid via the controller. Below you will find the detail of the code . Have you an idea how I can fix this problem? Thanks in advance Data is located in LocalDb "ConnectionStrings": { …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
876 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,517 questions
asked 2023-03-22T17:54:40.82+00:00
sblb 831 Reputation points
answered 2023-03-22T20:13:34.0266667+00:00
Bruce (SqlWork.com) 31,021 Reputation points
0 answers

Blazor MAUI blank screen on iOS

I have a Blazor Hybrid MAUI App that works great on Android. However, when I compile my code (both from VS and from dotnet publish in Azure Pipeline) to iOS the app just shows my splash screen and then shows a blank white screen (both on Simulator and on…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
876 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
863 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 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,517 questions
asked 2023-03-11T21:32:28.0133333+00:00
The Blazor Engineer 0 Reputation points
commented 2023-03-22T19:22:15.3066667+00:00
Maxwell Dreytser 0 Reputation points
1 answer

icon image modification in visual studio

In the visual studio, In the solution explorer, I should change the icon images for each file format. (the images that appear next to each file in the solution explorer For example, the inscription program.cs and a small picture next to it to the left.…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,755 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
863 questions
asked 2023-03-17T21:46:01.92+00:00
uiop 0 Reputation points
commented 2023-03-22T19:09:54.53+00:00
uiop 0 Reputation points
2 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
commented 2023-03-22T18:57:02.7733333+00:00
tbelvin 1 Reputation point
1 answer

Poptrox-popup + Net.Core 6. How do I create my own itemlist under the picture (div or iframe)?

Hi! I use a free Parallelism template (you can download and see the code) for the site: https://html5up.net/parallelism Poptrox: https://www.jqueryscript.net/demo/Highly-Configurable-Responsive-Content-Lightbox-Plugin-For-jQuery-poptrox/ …

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
507 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,814 questions
asked 2023-03-22T14:18:52.74+00:00
Volk Volk 241 Reputation points
answered 2023-03-22T18:26:48.56+00:00
Volk Volk 241 Reputation points
1 answer

How to implement <select multiple> in blazor server?

Please see https://github.com/siegfried01/BlazorSvrGitPlay/blob/DemoHTMLSelectProblems/BlazorSvrGitPlay/Pages/Index.razor and…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
876 questions
asked 2023-03-09T21:42:19.02+00:00
Siegfried Heintze 1,391 Reputation points
commented 2023-03-22T17:31:31.8933333+00:00
Siegfried Heintze 1,391 Reputation points
0 answers

Http chunk encoding miss end of chunked encoding("0\r\n") or tailer("\r\n") on IIS 7.5

I create a simple ASP .NET Application and write a generic web handler (HelloFilterWithClose.ashx). HelloFilterWithClose.ashx ProcessRequest with setting a HttpResponse.Filter(MyFilter), and it response to http client with write a PDF file to http…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,318 questions
Internet Information Services
asked 2023-03-22T09:35:26.2833333+00:00
linq.x 1 Reputation point
commented 2023-03-22T17:30:58.2233333+00:00
Viorel 88,321 Reputation points
2 answers

How do you impersonate as a different user/service id and then try and connect to sql server using windows authentication?

This is my connection string Data Source =server;Initial Catalog=Database;Trusted_Connection=True;MultipleActiveResultSet=true;Integrated Security=SSPI; After establishing the connection string I am trying to test connection and here instead of it…

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,517 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.
9,057 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,318 questions
asked 2023-03-22T06:16:56.6766667+00:00
Adithyan 0 Reputation points
edited an answer 2023-03-22T16:56:58.8733333+00:00
Bruce (SqlWork.com) 31,021 Reputation points
1 answer One of the answers was accepted by the question author.

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,517 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
724 questions
asked 2023-03-21T20:05:04.97+00:00
AppDev 20 Reputation points
commented 2023-03-22T16:50:34.3266667+00:00
AppDev 20 Reputation points
2 answers One of the answers was accepted by the question author.

HasDefaultValueSql("getutcdate()").ValueGeneratedOnAdd(); not working as expected

I configure my model as follows: public class CampaignConfiguration : IEntityTypeConfiguration<Campaign> { /// <inheritdoc /> public void Configure(EntityTypeBuilder<Campaign> builder) { builder.HasIndex(new[] {…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
asked 2023-03-19T18:40:51.34+00:00
David Thielen 666 Reputation points
commented 2023-03-22T16:39:09.4433333+00:00
David Thielen 666 Reputation points
0 answers

Best approach to learning database queries with MVC Core and EF

What's the best way to learn MVC Core/EF DB queries in C#? I'm learning on my own, and I read through whatever I can find online. I know T-SQL very well, but I don't know how to translate that into a Core project. For example, I know the following…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
863 questions
asked 2023-03-22T16:32:20.91+00:00
Coreysan 901 Reputation points
1 answer

Turning off cascade deletes

I have a case where I need to turn off cascading deletes (two different models are both wanting to cascade delete and so one needs to be turned off). I think I have this right but I saw numerous different answers all over the place and so want to…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
asked 2023-03-19T18:37:30.1933333+00:00
David Thielen 666 Reputation points
commented 2023-03-22T16:01:58.37+00:00
David Thielen 666 Reputation points
0 answers

Entity Framework, nullable, and no warnings or hacks

I am trying to get my model constructors written so that nullable works, with no warnings, and no having to assign default! - in other words, to do it all right. BTW, if I'm wrong on any of this, please let me know. I'm mostly there. What's left is…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
asked 2023-03-19T18:39:22.8866667+00:00
David Thielen 666 Reputation points
edited a comment 2023-03-22T16:00:37.0266667+00:00
David Thielen 666 Reputation points