23,790 questions with .NET-related tags

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

Xamarin navigate to page throws "Object reference not set to an instance of an object."

I'm trying to navigate and pass data to an edit page when I select a row. I select a row in the checklistpage and what to pass that rows data to the treeinfopage. (has two points of entry 1 from menu and 1 from ChecklistPage) the page structures are as…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,291 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,578 questions
asked 2024-04-10T23:23:39.3666667+00:00
tim 60 Reputation points
commented 2024-04-19T21:35:43.31+00:00
tim 60 Reputation points
1 answer One of the answers was accepted by the question author.

How do I find the method calling Entity Framework that led to an exception

I believe this call is coming from the ASP.NET Identity Library. However, it may be coming from my Blazor code. The below is the entire exception written to the log. How do I find out what method (Identity library or my Blazor code) is calling this? …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 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,378 questions
asked 2024-04-19T20:39:54.0166667+00:00
David Thielen 2,231 Reputation points
commented 2024-04-19T21:29:36.8466667+00:00
David Thielen 2,231 Reputation points
2 answers

Mac question

I don't understand why in Mac is not possible to open all windows Mac does not support programmatic activation of windows. First of all, I would like to inform you that the user has to touch the screen to active a session on iOS/MacCatalyst. Please…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,844 questions
asked 2024-04-18T03:19:31.0133333+00:00
Eduardo Gomez Romero 185 Reputation points
answered 2024-04-19T21:10:28.0533333+00:00
Bruce (SqlWork.com) 55,041 Reputation points
0 answers

.net MAUI is there a way to have an entry field have focus on load but not show the soft keyboard?

so ive worked on an android app in VS2019 and in that app its not a problem for me to have a screen load up, set focus to the first entry field( in that case its an EditText) but not show the soft keyboard. it will only show the soft keyboard if the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,844 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,204 questions
asked 2024-04-19T20:56:32.3766667+00:00
Min T 41 Reputation points
3 answers

How to upload file and view those file in modal popup using gridview

I need help in gridview. i am using normal add, edit and delete functionalities in gridview. This is working fine. Initially i am saving the records using textbox controls and save button. This contains including file upload also. After saving the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 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,204 questions
asked 2024-04-17T14:56:04.6833333+00:00
Gani_tpt 1,506 Reputation points
edited an answer 2024-04-19T20:18:08.6966667+00:00
Albert Kallal 4,646 Reputation points
2 answers One of the answers was accepted by the question author.

FCM V1 notifications are not delivered from Azure Notification Hub

I am following this Microsoft Guide to migrate from GCM/FCM notifications to FCM v1. From the guide, I - Configured the Firebase Service Account Credentials in Azure Notification Hub Updaeted backend and app (Xamarin) to use FCM v1 platform during…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
260 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,291 questions
asked 2024-04-16T12:06:03.7033333+00:00
Hiran Desai 25 Reputation points
accepted 2024-04-19T20:05:08.3833333+00:00
Hiran Desai 25 Reputation points
1 answer

XmlSerializer Exceptions on start up when debugging after Upgrading Visual Studio 2022 to v17.9.0

After upgrading Visual Studio 2022 to version 17.9.0, xml serialization exceptions are displayed on the console and output windows when starting to debug a .NET 6 Web API solution. The prior versions of Visual Studio 2022 do not have the issue with the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 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,578 questions
asked 2024-03-01T19:59:38.64+00:00
Hatoum,Mark 5 Reputation points
commented 2024-04-19T19:45:02.66+00:00
Hatoum,Mark 5 Reputation points
0 answers

Microsoft.Azure.WebJobs.Host: Error indexing method

Hello, I'm working with an AzureFunction(CosmosDBTrigger), everything was working ok but suddenly the function stop working. When I want to Run the function I got the following errors: my host.json: { "version": "2.0", …

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,212 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
asked 2023-09-08T17:47:55.2533333+00:00
Roberto Lopez Colin 0 Reputation points
edited a comment 2024-04-19T19:43:55.08+00:00
JT Bruch 0 Reputation points
1 answer One of the answers was accepted by the question author.

Is it possible to create and set styles and/or template for combobox in c# only?

Hi, I'm trying to setup a app frontend in C# only. I'm more practiced with c# then XAML, but also have the feeling that I can make the app windows/pages more parametric in this way. Thus far I'm succeeding in this, however when I tried setting up…

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,667 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,204 questions
asked 2024-04-12T14:03:37.46+00:00
Reinder Weenink 20 Reputation points
commented 2024-04-19T19:37:26.1033333+00:00
Reinder Weenink 20 Reputation points
1 answer

Should I install an older version of Visual Studio to work on an old ASP.NET app?

I prefer to use Visual Studio 2022, because I've been working with newer, .NET projects. However, I may be assigned to do some maintenance on an older, .NET Framework ASP.NET WebForms application. I've been familiarizing myself with the app this morning…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 questions
asked 2024-04-18T17:00:47.3866667+00:00
Falanga, Rod, DOH 60 Reputation points
commented 2024-04-19T19:02:13.9366667+00:00
Falanga, Rod, DOH 60 Reputation points
1 answer

Blazor Title

Hello, I have a Blazor 8.0 project that has been giving me trouble when it comes to Title. I have a <PageTitle> tag on every page but it remains the Home no matter on which page I am redirected. Is there a solution for this problem? Thank you

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 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,378 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 questions
asked 2024-04-19T09:30:14.7833333+00:00
Kuler Master 246 Reputation points
commented 2024-04-19T18:58:10.3633333+00:00
Kuler Master 246 Reputation points
0 answers

Dangerous site - attackers on the site you're trying to visit might trick you

I have an intranet site. This site is hosted on our internal server 2019 on IIS version 10.0. This website is just a web page that enables the employees to fill out their information and then populates a .pdf file from the information that they fill out.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 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,204 questions
asked 2024-04-19T18:56:41.28+00:00
Anjali Agarwal 1,366 Reputation points
1 answer

Fixing issues with AOT compilation

Hello! I have a .NET MAUI 8 app that I target for Android, WinUI and iOS. I'm using EF Core (context is in separate project) and SQLite DB that gets created on app launch. The issue is with the iOS version and I'm suspecting the issues is with AOT…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,844 questions
asked 2024-03-28T04:42:41.8566667+00:00
MKinOZ 11 Reputation points
edited a comment 2024-04-19T18:29:37.27+00:00
Bruce (SqlWork.com) 55,041 Reputation points
2 answers

Is it able to upload a folder with blazor wasm client and minimal api server?

I want to upload files and folders recursively throught the wasm client to minimal api server. I have learned that I can use IFormFile or IFormFileCollection to receive files in minimal api.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 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,378 questions
asked 2024-04-19T06:48:37.5933333+00:00
William Liu 246 Reputation points
answered 2024-04-19T17:59:33.5666667+00:00
Bruce (SqlWork.com) 55,041 Reputation points
1 answer

Xamarin Cross-Platform MSAL Authentication: Invalid keystore format

I followed this guide "https://damienaicheh.github.io/azure/xamarin/xamarin.forms/2019/07/01/sign-in-with-microsoft-account-with-xamarin-en.html" for setting up authentication for Xamarin android and ios msal. Everything seemed to going fine…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,291 questions
asked 2024-04-18T01:27:01.74+00:00
Craig 0 Reputation points
answered 2024-04-19T17:56:21.7933333+00:00
Craig 0 Reputation points
2 answers One of the answers was accepted by the question author.

Trying to figure out why ocx file wont load form.

Program is able to run perfectly fine, but when trying to edit the form you get: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))Class not…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
asked 2024-04-15T19:15:47.7333333+00:00
Zach M 0 Reputation points
accepted 2024-04-19T17:56:13.59+00:00
Zach M 0 Reputation points
4 answers

saving the Identity token in the Aspnetusertokens table

Hi I created an Asp.net core 6 project and I added the Identity framework for authentication and authorization, I would like to add token management and while doing research I realized that Identity also manages the management of tokens because it…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
607 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,451 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 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,204 questions
asked 2023-11-07T11:19:50.1566667+00:00
Marnelle M'BENGUET 20 Reputation points
edited an answer 2024-04-19T17:53:03.2366667+00:00
Bruce (SqlWork.com) 55,041 Reputation points
8 answers

How to fix Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine

After trying to follow several solutions online none seem to be working. I'm using 64bit Microsoft access and 2019 visual studio and have already installed the engine from https://www.microsoft.com/en-au/download/details.aspx?id=13255. I've tried running…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
asked 2021-03-03T03:33:06.02+00:00
Rhys Mckinnon 31 Reputation points
commented 2024-04-19T17:46:53.06+00:00
Mich 0 Reputation points
0 answers

Dynamically pass the B2C sign-in policy in .NET 8

I am developing the web application using .NET 8 with Asp.NET MVC and using Azure B2C tenant for Authentication. And it will be hosted in the Azure App services that configured with two domain urls. Based on the requested Urls, I wanted to pass the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
asked 2024-04-19T16:58:01.86+00:00
Ragupathy p 0 Reputation points
0 answers

Maui .Net 8 XCode 15.1 and 15.2 NativeAOT Error in Testflight

Hello, I have an Maui app built with XCode 15.2 and .Net 8. I am using Microsoft.EntityFrameworkCore.Sql V8.0.4 When I install it on my iPad with test flight I get: Model binding is not supported when publishing with NativeAOT. Use a compiled model. I…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,844 questions
asked 2024-04-19T16:55:14.02+00:00
Grant Schaffer 0 Reputation points