23,497 questions with .NET-related tags

Sort by: Updated
0 answers

Error Microsoft.AspNetCore.Components.ComponentFactory+<>c__DisplayClass9_0.<CreatePropertyInjector>g__Initialize|1(IServiceProvider serviceProvider, IComponent component)

Im getting this error in my WASM project: InvalidOperationException: Cannot provide a value for property 'AuthService' on type 'WebApp.Client.Pages.Login'. There is no registered service of type 'RWebApp.Client.Authentication.IAuthenticationService'. …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,267 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,081 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,352 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,101 questions
asked 2024-03-29T15:58:07.4033333+00:00
Megsra 0 Reputation points
2 answers

Nuget and The package manager on VS 2022 Community edition cannot find the Microsoft.EntityFrameworkCore

Typing Microsoft.EntityFrameworkCore into the Nuget package manager returns nothing and instead displays the NO package found message. The PM console prints the following error text when NuGet\Install-Package Microsoft.EntityFrameworkCore -Version 8.0.3…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
689 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,081 questions
asked 2024-03-25T19:29:09.87+00:00
Jason Starbuck 0 Reputation points
answered 2024-03-29T15:23:00.86+00:00
Bruce (SqlWork.com) 53,506 Reputation points
1 answer

Problem building .NET Framework 4.8 project with .NET Standard 2.0 reference in Atlassian Bamboo

(apologise if this is the wrong forum, first time posting)   Hello, We use Atlassian Bamboo for our CI/CD needs and I'm having trouble with one solution.   There is a .NET Framework 4.8 project with a reference to another project that is .NET Standard…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,267 questions
asked 2024-03-29T15:03:38.91+00:00
JohnyG 0 Reputation points
answered 2024-03-29T15:13:51.1633333+00:00
Michael Taylor 45,996 Reputation points
0 answers

MAUI .Net8 Android stuck at SplashScreen

Hello, I'm working with MAUI to develop a mobile application for Android/iOS. Since migrating to .NET 8 on Android, the application launches without crashing but remains stuck on the splash screen. On iOS, there are no issues. I've tested in both debug…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,275 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,751 questions
asked 2024-03-29T14:39:18.4933333+00:00
Cyrille 0 Reputation points
0 answers

How to change the ios bundle id in vscode for maui

In Visual Studio, Xamarin Forms apps the Bundle Id is changed by opening the info.plist file and selecting the Application dropdown. The Bundle Id is on that page to change. I need to know how to do the same thing in vscode using the vscode maui…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,751 questions
asked 2024-03-27T17:21:12.47+00:00
Tony Pitman 20 Reputation points
edited the question 2024-03-29T14:34:54.62+00:00
Tony Pitman 20 Reputation points
0 answers

Upload & download an excel file from Onedrive using C# razor page

I am trying to upload & download an excel file to Onedrive using c# razor pages and have tried following code snippets, // Install Microsoft.Graph SDK // Install Microsoft.Identity.Client (MSAL) SDK // Authentication var…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,081 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
775 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,101 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,103 questions
asked 2024-03-28T11:24:47.2+00:00
Amit Patil 0 Reputation points
edited a comment 2024-03-29T14:25:20.7433333+00:00
Amit Patil 0 Reputation points
0 answers

How to save session id and validate it with another session id when user log in to the application from new browser

Hi Support, I want to save the UserId and SessionID. When the user logs into the application with the same URL in another browser then I need to validate that the SessionID is not the same when logging into the application in another browser. I tried…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,222 questions
asked 2024-03-29T08:17:36.3533333+00:00
Tushar Gupta 1 Reputation point
commented 2024-03-29T14:14:53.2566667+00:00
AgaveJoe 25,866 Reputation points
1 answer

How to check if a razor component is called by WPF-Blazor hybrid or Blazor application?

As a razor component can be called in a WPF blazor hybrid or Blazor server/wasm project. Is it able to check if current running application is WPF or Blazor in the razor component? Thanks!

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,648 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,352 questions
asked 2024-03-29T06:07:40.87+00:00
William Liu 186 Reputation points
answered 2024-03-29T13:45:51.6066667+00:00
Zhi Lv - MSFT 31,946 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

.NET Desktop Runtime 6 - Download

Is there a direct link that never changes for .NET Desktop Runtime (x64) At the moment it is currently version 6.0.7 and you download it by going to this link https://dotnet.microsoft.com/en-us/download/dotnet/6.0 If you hover over the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,267 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,109 questions
asked 2022-07-27T09:47:33.923+00:00
Curtis Blunt 56 Reputation points
answered 2024-03-29T12:47:10.4633333+00:00
awir123456789 0 Reputation points
0 answers

Update a contact - Maui Android/Ios app

I have an app which is to run on Ios and Android. I use VS 2022 17.9.4 app for Android (which is my problem right now) targets And33 with min ver 23 The maui helper…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,275 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,751 questions
asked 2024-03-29T11:23:42.39+00:00
john murray 11 Reputation points
commented 2024-03-29T11:28:46.8866667+00:00
john murray 11 Reputation points
0 answers

ASP.NET - xmlformatter

I have software that was developed for me. It is ASP.NET which I have no experience with thus the development. This was delivered a long while ago. I need to make changes and am struggling. This is a webservice with an api that you can call externally…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,222 questions
asked 2024-03-27T19:42:09.1466667+00:00
Darryl Hoar 121 Reputation points
commented 2024-03-29T11:24:36.3366667+00:00
Darryl Hoar 121 Reputation points
10 answers

A connection was successfully established with the server, but then an error occurred during the login process Error from .Net core WebAPI

Hi, I've an application that uses WebAPI in .Net core 6 and uses Kestrel server. When calling HttpPost request, the code tries to inject data in DB but fails with error: The certificate chain was issued by an authority that is not trusted. Inner…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,081 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.
12,489 questions
asked 2021-12-14T12:23:52.077+00:00
Amit Potdar 131 Reputation points
commented 2024-03-29T11:01:41.21+00:00
Precious Ofoyekpene 0 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,751 questions
asked 2024-03-28T04:42:41.8566667+00:00
MKinOZ 1 Reputation point
answered 2024-03-29T09:54:14.7733333+00:00
MKinOZ 1 Reputation point
1 answer

[Question] What is the root cause of Event Code: 3005 HttpException Request format is unrecognized.

I would like to learn and understand more about the error (HTTP Error 503. The service is unavailable) that I am getting when attempting to access the URL. When I checked my IIS, the application was in a Stop state. Did it crash or something? See below…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,081 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,222 questions
asked 2024-03-29T05:34:17.5133333+00:00
homerm 60 Reputation points
commented 2024-03-29T09:50:55.7+00:00
Sam Wu-MSFT 6,876 Reputation points Microsoft Vendor
0 answers

Implementing Vertical Design for Android and iOS, Horizontal Layout for Windows in MAUI: Guidance Needed

Is it possible to implement a vertical design for Android and iOS, while ensuring a horizontal layout for Windows in a MAUI application? If so, could you guide me on how to achieve this?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,267 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,751 questions
asked 2024-03-29T09:48:02.8933333+00:00
Sarfaraz Sable 20 Reputation points
0 answers

IIS CORS Module configuration with Windows Credentials

Hi, Does anyone have a Windows .Net Core API being accessed via Windows Authentication? I have not been able to get this to work. I have an .Net Core API hosted on my Windows 2022 server in IIS with Windows Authentication enabled. We have a on-premise…

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
11,936 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.
286 questions
asked 2024-03-22T19:23:40.2766667+00:00
Charlotte McClellan 0 Reputation points
commented 2024-03-29T09:41:01.23+00:00
Yurong Dai-MSFT 2,771 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to deploy ASP.NET Core with COM module dependencies on Azure

Hello!  We are trying to deploy an ASP.NET Core, .NET 8.0. Web Service to Azure. However, we have trouble registering the COM modules for the deployment process. What we’ve tried: Initially, we tried to deploy the service by publishing it to Azure as…

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
374 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,267 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,081 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,695 questions
asked 2024-03-22T23:12:21.7233333+00:00
wuibb 20 Reputation points
accepted 2024-03-29T09:13:08.17+00:00
wuibb 20 Reputation points
0 answers

UnhandledException not fire in publish(realsed) mode as exe

Hi, Can you please check with sample code in the end of in this link: https://github.com/dotnet/maui/issues/21007 why UnhandledException not work in reeased mode after publish. public partial class App : Application { public App() { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,751 questions
asked 2024-03-25T07:58:43.6333333+00:00
דני שטרית 2,486 Reputation points
commented 2024-03-29T09:00:21.72+00:00
דני שטרית 2,486 Reputation points
2 answers

What Is the Best Way to See Raw Data Stream Being Passed from SQL to .NET Application?

I am running some functions on application startup for my .NET application. This mostly involves running a bunch of scripts on my SQL database to ensure plans are cached. These queries are generated from EFCore-compiled queries. In doing this, I…

Azure SQL Database
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,267 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,081 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.
12,489 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,695 questions
asked 2024-03-14T19:52:31.8+00:00
Mike-E-angelo 441 Reputation points
commented 2024-03-29T08:40:42.5566667+00:00
Mike-E-angelo 441 Reputation points
1 answer

MAUI apps with .NET 8 don't work on android

I'm trying to execute on android the demo app created by visual studio when you create a new MAUI .NET 8 project but I encountered different problems in debug and release mode. Visual Studio version : 17.9.5 When I try to run the app in debug it crashes…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,751 questions
asked 2024-03-28T16:36:19.4466667+00:00
paro_ricc 0 Reputation points
commented 2024-03-29T08:21:09.7566667+00:00
paro_ricc 0 Reputation points