23,892 questions with .NET-related tags

Sort by: Updated
1 answer

Location tracking while app is in suspended state

Hi, I am developing a location tracking app for drivers. We need to track locations in particular intervals and send it to server. We are able to track locations when app is active or in background. How can we get locations for both android & iOS…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-24T09:56:59.74+00:00
ann 0 Reputation points
edited a comment 2024-04-26T08:13:08.5666667+00:00
ann 0 Reputation points
0 answers

How to fix StackOverflowException after upgrading from .Net 6 to .Net 8

Hello,   I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2024-04-26T06:39:38.71+00:00
Abhishek, Burra 0 Reputation points
edited the question 2024-04-26T07:36:48.4033333+00:00
Jiachen Li-MSFT 26,506 Reputation points Microsoft Vendor
0 answers

How to add a placeholder with ability to change placeholder color to DatePicker and TimePicker in Dot Net MAUI?

Previously in Xamarin.Forms I used below code to do that? [assembly: ExportRenderer(typeof(CustomDatePicker), typeof(CustomDatePickerRenderer))] namespace MyEstateLife.Droid.CustomRenderers { public class CustomDatePickerRenderer :…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-25T14:22:16.44+00:00
Ruvindra Senevirathne 1 Reputation point
commented 2024-04-26T07:21:38.88+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,651 Reputation points Microsoft Vendor
0 answers

Returning consistent errors in .NET Web API

I have a backend .NET Core Web API application and React App on the front. I would like to be able to return errors from the API and display them in the app. The problem I'm facing is that some classes return errors differently. For example, I'm using…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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.
297 questions
asked 2024-04-25T13:01:35.0233333+00:00
Sebastian Meckovski 25 Reputation points
commented 2024-04-26T06:45:10.9933333+00:00
JasonPan - MSFT 4,281 Reputation points Microsoft Vendor
3 answers

Using SQL Server Read/Write Image Ever Day With A Table

I've a case that need to save Image in database, than user can search/upload site(DB) to site(DB) ever day from winform. Every image size average 250kb - 350kb, The total usage with image perhaps growth 110GB/year without delete form database. I'll…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
asked 2024-04-25T12:58:15.02+00:00
LRC1006 0 Reputation points
edited the question 2024-04-26T06:27:27.8433333+00:00
romungi-MSFT 42,116 Reputation points Microsoft Employee
0 answers

Access denied error when installing .MAUI sideload misx package

I published .NET MAUI Windows MSIX to sideload that is signed with a valid certificate. When I click .msix file, nothing happened because msix extension was not known on windows 10 by default. It seems that I have to install App Installer from Microsoft…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2022-09-08T00:18:16.98+00:00
Muhammad Kamran 1 Reputation point
commented 2024-04-26T06:22:05.72+00:00
Szilard David 0 Reputation points
0 answers

Recurring Crash Issue When Opening Same App in Maui Project

I'm encountering an issue with two apps, let's call them A and B. When I open app B from app A, then close app B, and subsequently reopen app A, it crashes. To identify this issue, I created a new project, let's call it C. Interestingly, when running app…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-25T05:19:51.1733333+00:00
Sarfaraz Sable 20 Reputation points
commented 2024-04-26T05:47:43.51+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 Reputation points Microsoft Vendor
0 answers

I'm trying to read excel from sharepoint by using asp.net but its giving me following error fail: PowerBi_Report.Controllers.HomeController[0] An error occurred while processing the request: The remote server returned an error: (401) Unauthorized.

I have all the permissions for excel present in sharepoint still I'm getting same error can someone please help me out on this I'm pasting my code below using System; using System.Diagnostics; using System.Net; using Microsoft.AspNetCore.Mvc; using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 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,249 questions
asked 2024-04-25T10:50:08.6333333+00:00
Rathor, Pradnya 0 Reputation points
edited the question 2024-04-26T02:57:44.18+00:00
XuDong Peng-MSFT 10,101 Reputation points Microsoft Vendor
1 answer

Enable a button after scrolling to the bottom of the webview

I am trying to enable a button when the user has scrolled to the bottom of a webview , i tried using navigated , it does not work. In xamarin, we used a customRenderer to achieve this , Can we do this in a simpler way in MAUI? Platform : Android ,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-25T16:11:38.03+00:00
Manickam, Suraj 220 Reputation points
answered 2024-04-26T02:48:56.96+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
2 answers

Custom ApiController Model Binding type conversion error

According to the Model Binding documentation: In an API controller that has the [ApiController] attribute, invalid model state results in an automatic HTTP 400 response. So when I send an invalid type in the request body (e.g. int instead of string),…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,249 questions
asked 2024-04-24T10:30:29.13+00:00
iKingNinja 40 Reputation points
edited a comment 2024-04-26T02:38:26.13+00:00
Ping Ni-MSFT 2,085 Reputation points Microsoft Vendor
1 answer

Error with mso99Lwin32client.dll when running WeldingIOTApplication.exe

I received an error message when running WeldingIOTApplication.exe which says "Faulting module name: mso99Lwin32client.dll, version: 16.0.5041.1000, time stamp: 0x5f0562ec". The full error message along with the application and module paths,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
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,672 questions
asked 2024-04-25T11:14:20.84+00:00
Omkar Khamkar 0 Reputation points
answered 2024-04-26T02:35:26.99+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Hotfix for Microsoft .NET Framework 4.0

Hello! I need this file please   Hotfix for Microsoft .NET Framework 4.0 (KB2390372).

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,075 questions
.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
2 questions
asked 2024-04-19T15:48:15.7033333+00:00
Mohamed Khalifa 20 Reputation points
commented 2024-04-26T02:31:11.23+00:00
Pradeep M 240 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Create, Reference and use a Razor class library.

Hello! I'm training on Microsoft Learn. My current stage is the following module: https://learn.microsoft.com/en-us/training/modules/blazor-build-reusable-components/3-create-razor-class-library First of all, this exercise starts saying that it uses…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 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,391 questions
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.
1 question
asked 2024-04-24T15:49:23.6733333+00:00
Rafaeleliasgri 20 Reputation points
accepted 2024-04-26T01:06:37.9533333+00:00
Rafaeleliasgri 20 Reputation points
1 answer One of the answers was accepted by the question author.

Help me understand this please!!!!

Hello, im a programmer stundent im doing a project about Cua(Queue in catalan), its a dynamic queue where the data are stored in Nodes, and i want to understand why, in the next code i can use the .Count to get the total of the nodes linked in the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
asked 2024-04-25T21:48:04.65+00:00
isaac girones ribas 20 Reputation points
accepted 2024-04-26T00:04:26.2666667+00:00
isaac girones ribas 20 Reputation points
1 answer

Localize 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 make it work with iOS. What has been done: My solution : In info.plist : In InfoPlist.strings : In csproj : When I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-25T23:11:33.74+00:00
Omar H 0 Reputation points
commented 2024-04-25T23:28:15.8233333+00:00
Omar H 0 Reputation points
1 answer

Why => is called token?

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-operator is => a Token?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 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,249 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,119 questions
asked 2024-04-24T23:59:48.6466667+00:00
LAN SHUHAO 0 Reputation points
edited an answer 2024-04-25T23:17:45.64+00:00
Bruce (SqlWork.com) 56,026 Reputation points
2 answers One of the answers was accepted by the question author.

Error loading report.rdlc,Unable to copy bin\debug\

Good afternoon again, I have already searched for information online, but I have not been able to find the error. The error is the following: An error occurred during local report processing. The report definition has not been specified, the file is not…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,799 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,249 questions
asked 2024-04-24T20:48:56.4066667+00:00
Roberto Carlos Melgar Dorado 60 Reputation points
accepted 2024-04-25T20:02:00.6933333+00:00
Roberto Carlos Melgar Dorado 60 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix vite error in Angular ASP.NET project?

I have started my Angular ASP.NET project and ended up with the following error, just want to find out how to fix it: Thank you!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 questions
asked 2024-04-24T03:07:40.3233333+00:00
Yardley Estiverne 20 Reputation points
commented 2024-04-25T17:49:06.5466667+00:00
Yardley Estiverne 20 Reputation points
1 answer

How to include in my App on Android text files

Hi to All. I've done a App for Android. This App uses particular files in old format MSDOS. First: how can include with the app on the tablet this files? (i.e. in the same directoy of the App).Second: the code page of MSDOS is quite different with…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
asked 2024-04-24T08:20:46.5966667+00:00
Paolo Mossa 161 Reputation points
commented 2024-04-25T17:23:15.7966667+00:00
Paolo Mossa 161 Reputation points
1 answer One of the answers was accepted by the question author.

Bluetooth Plugin.Ble not showing any device.

I am using visual studio 2022 Maui, installed latest update and bluetooth Plugin.Ble ver 3. Also added all permission #if ANDROID public override (string androidPermission, bool isRuntime)[] RequiredPermissions => new List<(string Permission,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-01-18T17:10:48.73+00:00
Babu R 81 Reputation points
commented 2024-04-25T13:47:22.11+00:00
Babu R 81 Reputation points