16,693 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Saving files to "/storage/emulated/0/MyApp"

Hello, I have been using this code to create and use a directory for storing my files, and reports. public async Task<string> CreateSavePath(string path = null) { var filePath =…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked Mar 4, 2022, 2:57 AM
Jesse Knott 686 Reputation points
commented Jun 11, 2025, 6:48 PM
Antonio Pastore 0 Reputation points
0 answers

Severity Code Description Project File Line Suppression State Error MSB4100 Expected "$([System.String]::Copy('%(Identity)').EndsWith('.resources.dll'))" to evaluate to a boolean instead of "$([System.String]::Copy('C:\Users\tarek\OneDrive\Desktop\StoreAp

Severity Code Description Project File Line Suppression State Error MSB4100 Expected "$([System.String]::Copy('%(Identity)').EndsWith('.resources.dll'))" to evaluate to a boolean instead of…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 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.
1,672 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,141 questions
asked May 8, 2024, 3:16 AM
م.طارق علي 0 Reputation points
commented Jun 11, 2025, 5:14 PM
MariMars 0 Reputation points
3 answers One of the answers was accepted by the question author.

Old .NET versions automatic uninstallation/removal

Hello, How are you removing old versions of .NET from your devices? Is there a way to automate this? To better clarify our issue, please see the screenshot below. We just installed the latest version (6.0.35) for both: .NET Runtime and Desktop Runtime…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,597 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,262 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,597 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,262 questions
asked Oct 22, 2024, 2:36 PM
Mark Marco 25 Reputation points
commented Jun 11, 2025, 4:47 PM
KenDeEuphrates-4177 0 Reputation points
3 answers One of the answers was accepted by the question author.

Old .NET versions automatic uninstallation/removal

Hello, How are you removing old versions of .NET from your devices? Is there a way to automate this? To better clarify our issue, please see the screenshot below. We just installed the latest version (6.0.35) for both: .NET Runtime and Desktop Runtime…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,597 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,262 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,597 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,262 questions
asked Oct 22, 2024, 2:36 PM
Mark Marco 25 Reputation points
commented Jun 11, 2025, 4:47 PM
KenDeEuphrates-4177 0 Reputation points
2 answers

System.IO.Ports only availble on windows, but im using windows - .NET6

So i'm trying to read arduino serial from c#, but it shows me the folowing exeption when i try to open the port: System.PlatformNotSupportedException: 'System.IO.Ports is currently only supported on Windows I am currently using windows 11. Also i tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 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.
11,536 questions
asked Mar 17, 2024, 4:58 PM
Borda Ákos 20 Reputation points
commented Jun 11, 2025, 3:59 PM
Borsányi Gábor 0 Reputation points
6 answers

XA0137: The 'run-as' command failed with 'run-as: couldn't stat /data/user/0/com.test.demo: No such file or directory '.

Hi all, My app not installing in release mode, Even I tried generating apk and installing but app is crashing every time. I'm getting following error Start debugging Android application failed Start debugging Android application ... am start -a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked Sep 17, 2021, 4:33 PM
Nagarjuna Gadikota 1 Reputation point
commented Jun 11, 2025, 11:48 AM
Daniel Towers 0 Reputation points
3 answers

Maui, files go locked and even Resource Monitor cannot find what is locking it

Severity Code Description Project File Line Suppression State Error MAUI0000 System.IO.IOException: The process cannot access the file 'C:\Visual Stuido Stuff\Maui\DEVEXFullProject\obj\Debug\net6.0-android\resizetizer\r\drawable-xxxhdpi\nhllogo.png'…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,141 questions
asked Sep 5, 2022, 8:16 PM
Lloyd Sheen 1,486 Reputation points
commented Jun 11, 2025, 11:46 AM
Daniel Towers 0 Reputation points
0 answers

How to improve tapping feedback in Maui

Hello. Please. how to improve the feedback of tap recognize on a label of one character because the tapping area is small the tapping feedback is lower. In my app I have a grid row with 10 columns and in each grid cell I have a one character label with…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,141 questions
asked Jun 11, 2025, 7:37 AM
Haviv Elbsz 2,071 Reputation points
edited the question Jun 11, 2025, 7:52 AM
simo-k 9,755 Reputation points Volunteer Moderator
2 answers

When I try to deploy to an iPhone 6 running iOS 12.5.7 I get: error MT1006: Could not install the application ... on the device 'iPwn Nova': Device is invalid (0xe8000084).

A couple of my apps and also a brand new created test app all get the same error when I try to deploy to either of my iPhone 6 devices. It also takes a very long time for the error to finally occur and the build to stop. I can say the following things…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,141 questions
asked May 31, 2025, 4:12 AM
Kevin Anderson 0 Reputation points
commented Jun 11, 2025, 6:49 AM
Saideep Anchuri 8,075 Reputation points Microsoft External Staff Moderator
2 answers

Cannot Build iOS on Real Device: Error resolving type specified in JSON

Not getting this on other projects, but the project files look effectively the same and I'm not using any special nugets that shouldn't be cross platform... Any ideas? Copilot says this is a "known issue" and that I need to ensure XCode is up…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,141 questions
asked Jun 9, 2025, 10:53 PM
Auri A. Rahimzadeh 11 Reputation points
commented Jun 11, 2025, 6:47 AM
Saideep Anchuri 8,075 Reputation points Microsoft External Staff Moderator
0 answers

How to create a directory so I can register my blazor web app and add login with Microsoft Account

Why cant I create a directory so I can add login with Microsoft account for my Blazor web app

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
37 questions
asked Jun 10, 2025, 6:01 PM
Luka Vojvodic 0 Reputation points
commented Jun 11, 2025, 5:01 AM
Pradeep M 9,285 Reputation points Microsoft External Staff Volunteer Moderator
2 answers

Inserting data in many to many relation ship in EF core

i have two tables 1-Employees (ID ,EmpName) 2- Project (ID,ProjectName) data is already inserted in boh tables ,there is many to many relationship between these two so middle table created in table i.e EmployeesProject now i want to insert data (keys of…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 questions
asked Jun 5, 2023, 3:28 PM
Erum Mirza 6 Reputation points
edited an answer Jun 10, 2025, 4:24 PM
Bruce (SqlWork.com) 77,321 Reputation points Volunteer Moderator
1 answer

ExportToCsv Library Not Working in .NET 8 (Could not load type 'System.Web.HttpContext' from assembly 'System.Web' Exception)

Hi, I'm currently migrating a WinForms application from .NET Framework 4.7.2 to .NET 8, and I'm getting an exception with the ExportToCsv library, we were using it to export tabular data of Order Book, Trade Book to CSV files. In .NET Framework, we used…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
30 questions
asked Jun 10, 2025, 10:21 AM
Aman Agrahari 20 Reputation points
answered Jun 10, 2025, 2:10 PM
Pradeep M 9,285 Reputation points Microsoft External Staff Volunteer Moderator
1 answer One of the answers was accepted by the question author.

dynamic tabbar in xamarin.forms shell?

ok can it be changed dynamiclly? the title icon route and contentTemplate?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked Nov 23, 2020, 2:18 AM
mc 5,406 Reputation points
accepted Jun 10, 2025, 12:33 PM
mc 5,406 Reputation points
1 answer One of the answers was accepted by the question author.

how to divide Path by line in .net android?

I am using .net android canvas. and how to divide Path into two paths by line? there is Path which by many lines. and I want to dive the shape into two paths by the green one. but actually the line is the orange one

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,141 questions
asked Jun 8, 2025, 12:35 AM
mc 5,406 Reputation points
commented Jun 10, 2025, 12:32 PM
mc 5,406 Reputation points
1 answer

[chromium] [INFO:CONSOLE(0)] &#34;Failed to load module script: The server responded with a non-JavaScript MIME type of "";. Strict MIME type checking is enforced for module scripts per HTML spec

Steps to reproduce the problem: Using Xamarin Webview to load URL. Facing problems on Android APK < 30 with lower chrome version. Unable to load Webview. Problem Description: Trying to launch a Xamarin.Android WebView using…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked Aug 17, 2022, 5:11 PM
edited the question Jun 10, 2025, 11:59 AM
TP 123.1K Reputation points Volunteer Moderator
2 answers One of the answers was accepted by the question author.

CSS style loading failed after RCL library release ?

hi, I have created a new RCL library. (RazorClassLibrary1 .net 9.0) Component1.razor : @page "/test1" <div class="my-component"> This component is defined in the <strong>RazorClassLibrary1</strong>…

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
37 questions
asked Jun 7, 2025, 5:44 PM
929Free 641 Reputation points
commented Jun 10, 2025, 6:12 AM
Pradeep M 9,285 Reputation points Microsoft External Staff Volunteer Moderator
1 answer One of the answers was accepted by the question author.

How to get a copy of the .NET Upgrade Planner

I would like to use the .NET Upgrade Planner from this link but access is denied when trying to download https://apisof.net/upgrade-planner Are there any alternatives places to get the download? Thank you.

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,262 questions
asked Jun 9, 2025, 1:16 AM
James Dunlop 20 Reputation points
accepted Jun 10, 2025, 1:04 AM
James Dunlop 20 Reputation points
1 answer

at StreamJsonRpc.JsonRpc.d__154`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndD

|at StreamJsonRpc.JsonRpc.d__154`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at …

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,262 questions
asked Jun 8, 2025, 11:11 PM
Piersall, Scott 0 Reputation points
edited an answer Jun 9, 2025, 4:28 PM
Bruce (SqlWork.com) 77,321 Reputation points Volunteer Moderator
1 answer One of the answers was accepted by the question author.

Migration from .Net Web Application (Framework 4.7) into .Net Core Web 8.0

Hi, I would like to migrate my application from .Net Framework 4.7 to .Net Core 8.0 as I would like to have my application in the latest version. My application is in MVP architecture and web pages are aspx (UI part). Is there any easy way to migrate it…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,597 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.
11,536 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
441 questions
asked Jan 29, 2025, 3:37 AM
Banu 40 Reputation points
accepted Jun 9, 2025, 7:15 AM
Banu 40 Reputation points