23,875 questions with .NET-related tags

Sort by: Updated
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,371 questions
asked 2024-04-26T06:39:38.71+00:00
Abhishek, Burra 0 Reputation points
2 answers

how do I find the working area of my uwp app in .net using C#

This is a simple question but I'm having a rough time finding an answer. What I want to find is the working area of my application. I'm working in Visual Studio 2022 and have created the basic project. Searches on the internet result in many answers…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 questions
Universal Windows Platform (UWP)
asked 2024-04-24T13:23:16.3+00:00
Joe Babb 0 Reputation points
answered 2024-04-26T06:35:13.9033333+00:00
Junjie Zhu - MSFT 14,751 Reputation points Microsoft Vendor
0 answers

How can I prevent window titles from overlapping in a Maui app with shell navigation and modals?

I'm developing a Maui app with shell navigation and modals, and I'm encountering an issue with overlapping window titles. When navigating from the main page to another page using shell navigation, a back button appears, causing the window title to shift…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2024-04-25T16:52:05.36+00:00
Ansh 0 Reputation points
edited a comment 2024-04-26T06:34:50.5+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,316 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,828 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 41,961 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,866 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

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,866 questions
asked 2024-04-25T14:22:16.44+00:00
Ruvindra Senevirathne 1 Reputation point
edited the question 2024-04-26T06:08:13.9666667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,571 Reputation points Microsoft Vendor
0 answers

connected Device Get Service always return null

I want to connect bluetooth device (JDY-23) for serial communication and my device is connecting and shows id also. But when I tried to get service it always return null. Is there any problem with my code below var adapter =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2024-04-25T08:22:03.87+00:00
Babu R 81 Reputation points
commented 2024-04-26T05:54:15.0733333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,471 Reputation points Microsoft Vendor
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,866 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,316 Reputation points Microsoft Vendor
1 answer

xamarin control changing button invisible true false in code

How can I control if a button is visible in code. <buttons:BindableButton BindingContext="{Binding Close_Page_Clicked}" HorizontalOptions="EndAndExpand" IsVisible="{Binding…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
asked 2024-04-26T00:40:13.3866667+00:00
tim 80 Reputation points
answered 2024-04-26T05:39:29.7133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,571 Reputation points Microsoft Vendor
4 answers

How to copy big file 5g with task and within impersonation

Hi, How to copy big file 5G from source to destination using impersonation: WindowsIdentity.RunImpersonated( ImpersonationHelper.Token Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2024-04-18T08:06:36.18+00:00
Dani_S 2,726 Reputation points
edited a comment 2024-04-26T05:02:28.06+00:00
Dani_S 2,726 Reputation points
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,161 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,238 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
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,371 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 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.
294 questions
asked 2024-04-25T13:01:35.0233333+00:00
Sebastian Meckovski 25 Reputation points
edited the question 2024-04-26T02:56:24.16+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,866 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,471 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,161 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,238 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
0 answers

how to install APP in android in maui?

I will download new version update and install it in my android device.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2024-04-26T01:06:26.5333333+00:00
mc 3,681 Reputation points
commented 2024-04-26T02:36:27.2033333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,571 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,371 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,671 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,067 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 165 Reputation points Microsoft Vendor
1 answer

Looking for suggestion on storage

I am look for a suggestion on file storage with .net Maui. In my existing .net Android app, I am reading/writing files to a custom folder in the device root basicall /myfolder, this allows the user to connect and transfer files to/from the device…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2024-02-05T16:22:48.54+00:00
Phunction 206 Reputation points
commented 2024-04-26T01:46:09.5166667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,571 Reputation points Microsoft Vendor
1 answer

can I upgrade my system.web.mvc from 4.5 to 5.0

Hi, I have a couple of related threads about this out there, but it is cluttered, so i created this one I am initially using vs2019. I have an MVC project called Mbsa. It is my primary project. I am using the runtime version v4.0.3.319. It uses .net…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2024-04-25T21:44:22.7566667+00:00
iqworks Information Quality Works 196 Reputation points
edited the question 2024-04-26T01:40:46.6966667+00:00
Anna Xiu-MSFT 25,626 Reputation points Microsoft Vendor
2 answers

EditForm in Blazor does not work on submit

Below is the source code, brand new blazor project vs2022 , Version 17.9.5 put a break point on string breakpointhere = "z"; examine xx variable - for the model, you will see that the MyTitle string is always null. Such basic stuff…

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,386 questions
asked 2024-04-20T15:03:25.1633333+00:00
Rob Bertora 0 Reputation points
edited an answer 2024-04-26T01:20:41.4066667+00:00
JasonPan - MSFT 4,201 Reputation points Microsoft Vendor