24,698 questions with .NET-related tags

Sort by: Updated
0 answers

How to find where .pkg file store the installed app

I Use the following command to create a .pkg: .NET CLICopy dotnet publish -f net8.0-maccatalyst -c Release Publishing builds the app, and then copies the .app to the bin/Release/net8.0-maccatalyst/ folder or the .pkg to the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,113 questions
asked 2024-06-25T09:23:23.6533333+00:00
Dani_S 3,186 Reputation points
commented 2024-06-29T05:08:00.2433333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,246 Reputation points Microsoft Vendor
1 answer

Problem with DependencyService in .NET MAUI for iOS: Cannot get an instance of IFileHelper, always return null

I'm working on a .NET MAUI application that uses DependencyService to get the local path to a file on iOS. Although I have followed the instructions to correctly register my IFileHelper implementation, I always get an exception stating that an…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,113 questions
asked 2024-06-28T08:50:23.5133333+00:00
Gerson Jose Rodriguez Quintero 51 Reputation points
answered 2024-06-29T04:20:30.33+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,246 Reputation points Microsoft Vendor
1 answer

Why I have no output ?

In the test the application section after I did all the steps before, when I debug my app it's shown blank with no output, I did all the steps again but no results. This question is related to the following Learning Module

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,559 questions
asked 2024-06-27T19:32:16.0633333+00:00
walid fikri 0 Reputation points
edited the question 2024-06-29T02:58:24.8666667+00:00
Pradeep M 1,385 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to resolve InvalidCastException error in sample code listed in "Use an EventCallback to handle events across components" Blazor training module.

This question is related to the following Learning Module

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
16 questions
asked 2024-06-28T09:12:00.0733333+00:00
Ade Ade-Hall 5 Reputation points
edited the question 2024-06-29T02:01:21.3733333+00:00
Pradeep M 1,385 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

https://try.dot.net not working?

Hi, I'm following the tutorial and link to https://try.dot.net from page https://video2.skills-academy.com/en-us/training/modules/dotnet-introduction/4-build-your-first-app isn't working. This question is related to the following Learning Module

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
7 questions
asked 2024-06-27T15:11:34.16+00:00
Dessauvages Cathy 0 Reputation points
edited the question 2024-06-29T01:55:50.9866667+00:00
Pradeep M 1,385 Reputation points Microsoft Vendor
1 answer

The background color of my LaunchScreen.storyboard is not displayed on my iPad

I have created a launch screen in my iOS project on my iMac. After that I have copied my iOS project to my Windows 11 laptop. But the problem is that the background color of my launch screen is not displayed when I debug my game on my iPad. The…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,812 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,113 questions
asked 2024-06-26T22:05:42.0566667+00:00
Kim Strasser 791 Reputation points
commented 2024-06-29T01:35:48.36+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,246 Reputation points Microsoft Vendor
2 answers

How to detect a device

Hi, I'm currently working on .net core web API project . There is a moment that I can't figure out. I had to detect the device which user used when signed in. I used "user-agent" first but this only says if its smartphone, Desktop etc. And only…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,324 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.
10,551 questions
asked 2024-06-27T20:25:13.6533333+00:00
Atilla Rüstəmli 20 Reputation points
commented 2024-06-29T00:27:08.61+00:00
SurferOnWww 2,326 Reputation points
0 answers

.Net Maui, use gestures on tabbed page

Hi, I have a tabbed page with 2 tabs, on one tab I have and image that I would like the user to be able to use touch to pinch zoom and pan the image around. I use this to show the image: <Grid x:Name="imageView"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,113 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.
10,551 questions
asked 2024-06-28T23:38:06.1833333+00:00
Phunction 226 Reputation points
edited the question 2024-06-28T23:38:49.7933333+00:00
Phunction 226 Reputation points
1 answer One of the answers was accepted by the question author.

Navigation help with .Net Maui app

I am trying to figure out a way to navigate. Right now I have the main page as a shell page with some content, from here I launch Tabbed Page sections, there are several and each page contains 5-6 tab pages. This does not work in Android as you can't…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,113 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.
10,551 questions
asked 2024-06-27T20:48:22.0333333+00:00
Phunction 226 Reputation points
accepted 2024-06-28T23:30:30.77+00:00
Phunction 226 Reputation points
1 answer

How to fix this error: The package reference 'Microsoft.NETCore.Targets' should not specify a version.

I am reaching out to seek assistance with a challenge I've encountered during the migration of our projects to the .NET 8.0 isolated worker model and Azure Functions v4. Despite following the provided documentation closely, the build process is not…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,540 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,559 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,324 questions
asked 2024-04-23T21:41:22.9733333+00:00
Venkata Sridhar Perepu 10 Reputation points Microsoft Vendor
commented 2024-06-28T22:24:56.36+00:00
Kumar, Ganesh 0 Reputation points
2 answers

How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?

I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…

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,703 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.
2,490 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.
10,551 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,607 questions
asked 2024-06-23T21:10:17.6933333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-06-28T22:24:38.2733333+00:00
MERUN KUMAR MAITY 531 Reputation points
1 answer

Access network folder and files from .NET Core application in IIS

Greetings, I have an application deployed in IIS with .NET Core 7 and SQL Server, I want to access a network path, write and read files within a folder in the path (\path\folder) What steps should I follow to achieve this?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,324 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.
13,162 questions
asked 2024-05-07T17:35:39.8066667+00:00
Juan A. Reyes Paulino 20 Reputation points
commented 2024-06-28T20:48:45.5933333+00:00
Erland Sommarskog 104.7K Reputation points MVP
7 answers One of the answers was accepted by the question author.

asp.net core web application not showing in visual studio 2019

asp.net core web application not showing in visual studio 2019 Hi, i have installed visual studio 2019, with asp.net and .NET core features. Problem/Issue: while creating new project,"asp.net core web application" not showing, its showing…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,324 questions
asked 2023-03-09T14:09:34.9833333+00:00
qasimidl 106 Reputation points
answered 2024-06-28T20:11:12.62+00:00
Jennifer2112 0 Reputation points
0 answers

System.AccessViolationException: Attempted to read or write protected memory at TorchSharp.PInvoke.LibTorchSharp.THSGenerator_manual_seed

I was trying to reproduce the example of ML.Net in GitHub: machinelearning-samples/samples/csharp/getting-started/MLNET2/SentenceSimilarity and I got the following error : Fatal error. System.AccessViolationException: Attempted to read or write…

.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
154 questions
asked 2024-06-28T18:50:15.2266667+00:00
Carlos Balseiro 0 Reputation points
1 answer

Deploying MAUI Android but getting iOS errors!

I am porting a project from XF to MAUI. I am trying to build a Signle Project Class Library that has TargetFrameworks of <TargetFrameworks>net8.0-android;net8.0-ios</TargetFrameworks> I have Android and iOS specific files under…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,812 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,113 questions
asked 2024-06-28T17:08:33.76+00:00
Pat Long 36 Reputation points
answered 2024-06-28T17:17:27.96+00:00
Bruce (SqlWork.com) 59,721 Reputation points
1 answer

Scripts inside local html is not working with webview Eval in UWP Xamarin forms

Tried to update the html elements using script with webview Eval, its working fine in android and iOS but it is not working with UWP Xamarin forms. 1.webview.Eval to update the script : Script inside local html :

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,317 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
918 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.
10,551 questions
asked 2024-06-13T05:22:24.0766667+00:00
Keerthana Sathiyanathan 0 Reputation points
answered 2024-06-28T17:12:46.0533333+00:00
Bruce (SqlWork.com) 59,721 Reputation points
1 answer

how to recognize invoice/tax image using camera ?

I am using .net ios. I want to use invoice /tax recognize image . you may say I can use VisionKit. but it require IOS 16. I want to use may iOS 11? how to do it in oc(not swift)?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,113 questions
asked 2024-06-28T15:28:37.0866667+00:00
mc 3,986 Reputation points
edited the question 2024-06-28T17:04:51.7466667+00:00
Rob Caplan - MSFT 5,427 Reputation points Microsoft Employee
1 answer

.NET 8 upgrade issue for functions using Durable functions and Orchestrator

I have upgraded Function which uses Orchestrator and Durable functions from .Net 6 to .Net 8 (isolated model) and after upgrade when I am trying to run the function, I am getting the error. An unexpected failure occurred while processing instance…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,540 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,559 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.
10,551 questions
asked 2024-06-28T11:40:03.35+00:00
Vivek Nirale 0 Reputation points
answered 2024-06-28T16:28:55.2866667+00:00
Bruce (SqlWork.com) 59,721 Reputation points
1 answer

updateDeviceProfileAssignment returning 200 OK and not 204 No Content

The following issue I am having is that when trying to change the enrollment profile of an iOS device using .net and httpclient, I am getting back a 200 response with an empty object. I have tried both in my code and with in Graph Explorer. Just last…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,559 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,186 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.
10,551 questions
Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,299 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,640 questions
asked 2024-06-28T14:11:09.5+00:00
Timothy Dowling 0 Reputation points
accepted 2024-06-28T16:26:49.97+00:00
Timothy Dowling 0 Reputation points
1 answer

How to change code "Foreach" to Loop.

@page "/" @rendermode InteractiveServer @inject NavigationManager Navigation <h1 style="color: blue;">Anda!!</h1> <p></p> Welcome to your new app. <p></p> @foreach (var image in images) { …

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,469 questions
asked 2024-06-28T14:53:36.5233333+00:00
MIPAKTEH_1 240 Reputation points
edited an answer 2024-06-28T15:59:21.7766667+00:00
AgaveJoe 27,171 Reputation points