24,029 questions with .NET-related tags

Sort by: Updated
2 answers

How to Create simple HTML/CSS project in Visual Studio 2022

I'm so used to creating simple HTML projects in 2019. How do I do the same thing in 2022? I don't want Core at all, just a project that will launch from a basic index.html. I can't even find a way to add an HTML file to an empty project. What's the best…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,401 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 questions
asked 2024-05-07T19:07:57.77+00:00
Coreysan 1,631 Reputation points
answered 2024-05-07T22:54:50.0966667+00:00
Albert Kallal 4,731 Reputation points
3 answers One of the answers was accepted by the question author.

Blazor Server: It is possible get Current Loged User In DbContext

Hello, I build blazor server multi tenant application and I wants to use HasQueryFilter in entity framework DbContext for predefined filter with TenantId. But I cannot get Current Loged User in DbContext. I inject to DB Context…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 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,399 questions
asked 2021-03-17T08:54:54.227+00:00
Jan Mucha 101 Reputation points
edited a comment 2024-05-07T22:50:36.6+00:00
Bruce (SqlWork.com) 56,846 Reputation points
0 answers

SQL Connectivity Issue From Cloud app to on-prem server

hi, I have deployed a .net core MVC app in azure app service as a webapp. I have to connect to a on-prem sql server to retrieve data. I have setup Azure relay/hybrid connection for the same. Also I have installed hybrid connection manager in on-prem…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 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,774 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,929 questions
asked 2024-05-07T10:38:07.05+00:00
Santhi Dhanuskodi 145 Reputation points
commented 2024-05-07T22:46:12.8266667+00:00
Grmacjon-MSFT 16,191 Reputation points
0 answers

Azure AD B2C returns 401 Unauthorized when accessing controller

I am building a Blazor WASM app, in .NET 8, which I intend to protect using Azure Active Directory B2C. I created an AAD B2C app registration, and exposed an API from it. Then I created another app registration to serve as a client, and gave it the…

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,399 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,911 questions
asked 2024-05-07T21:57:34.52+00:00
Lazar N 0 Reputation points
edited the question 2024-05-07T21:59:04.5+00:00
Lazar N 0 Reputation points
1 answer

What NuGet package to I use for Microsoft.Office.Interop.Excel?

I maintain an old ASP.NET WebForms application, which is at .NET Framework level 4.5.2. The original developers incorporated an Excel report in this application. I'm trying to get the app to build using a GitHub Self-Hosted Runner running on one of our…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,482 questions
asked 2024-05-07T21:01:02.6533333+00:00
Falanga, Rod, DOH 80 Reputation points
answered 2024-05-07T21:34:06.88+00:00
Michael Taylor 48,656 Reputation points
0 answers

.Net Maui ViewModel and MVVM

Currently I have a shell application with a Tabbed Page with several Content Page Views. Instead of using one big Model (Populated with Data from a Database) in my ViewModel for all these Content Page Views, what is the best practice to separate…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,908 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,291 questions
asked 2024-05-07T20:27:49.38+00:00
Tom Meier 80 Reputation points
edited the question 2024-05-07T20:59:13.8233333+00:00
Tom Meier 80 Reputation points
2 answers

Cannot create BindableProperty in my project

I have a code snippet to create BindableProperties, (not used often). When I use it I get an error with the accessors. It does not recognize the GetValue/SetValue with a The name 'SetValue' does not exist in the current context. So I took sample code…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,908 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,291 questions
asked 2024-05-07T20:41:44.6066667+00:00
Lloyd Sheen 1,386 Reputation points
answered 2024-05-07T20:50:40.1033333+00:00
Lloyd Sheen 1,386 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,199 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,774 questions
asked 2024-05-07T17:35:39.8066667+00:00
Juan A. Reyes Paulino 20 Reputation points
answered 2024-05-07T20:42:31.8533333+00:00
Bruce (SqlWork.com) 56,846 Reputation points
0 answers

Azure Adb2c External IDP Authentication Browser Back Button Click redirects to External IDP Again

We have AD B2C Authentication with .NET 8 MVC Web Application. We configured Open Id Provider with Custom Policy in Adb2c. The authentication is working successfully. But the problem is, after the External IDP successful authentication, the provider…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,597 questions
asked 2024-05-07T09:47:53.4+00:00
Logesh Palani 1 Reputation point MVP
commented 2024-05-07T19:58:35.9766667+00:00
James Hamil 21,851 Reputation points Microsoft Employee
1 answer

Which is best web framework of the C#

I want to learning an web framework by C#. I have knowledge HTML, CSS and CSS other framework. Now which is better for me from ASP.NETCORE? The serial should be HTML CSS JS ----/--- ----/--- ----/---

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
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.
6 questions
asked 2024-05-07T18:16:57.1633333+00:00
Shahid ullah 0 Reputation points
answered 2024-05-07T18:46:24.59+00:00
Michael Taylor 48,656 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.
617 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,548 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 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,291 questions
asked 2023-11-07T11:19:50.1566667+00:00
Marnelle M'BENGUET 20 Reputation points
edited a comment 2024-05-07T17:33:51.2333333+00:00
Bruce (SqlWork.com) 56,846 Reputation points
1 answer

ASP.NET Core web app with Microsoft SSO via Azure Microsoft Entra ID and not manage secrets - is it possible?

In the Azure Portal, I create a resource Microsoft Entra ID and then add an app registration. In the app registration I can specify redirect URIs for Microsoft logins (SSO) via "Authentication" for my .NET web app: Authentication button on side…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,597 questions
asked 2024-05-03T13:15:34.5066667+00:00
Shubash Chumber 0 Reputation points
commented 2024-05-07T17:19:31.6933333+00:00
Shubash Chumber 0 Reputation points
3 answers

How to pass values from a Razor page to an Asp.Net MVC controller

I am working on an Asp.Net Core MVC project. The identity was scaffolded and uses Razor pages. When the user enters the username and password, if they are valid, they will be redirected to an MVC controller where they have to answer a security question.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 questions
asked 2024-05-07T02:32:23.82+00:00
Sherpa 161 Reputation points
commented 2024-05-07T16:57:05.75+00:00
Sherpa 161 Reputation points
2 answers

running asp.net intranet application on localhost asking for authentication

I have an intranet application written int ASP.net core, when I run this application on localhost, I get a pop window asking me to authenticate and once I enter my domain name\my username and password then it authenticates me and lets me run the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 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,291 questions
asked 2024-05-06T23:53:29.4066667+00:00
Anjali Agarwal 1,386 Reputation points
commented 2024-05-07T16:11:38.88+00:00
Anjali Agarwal 1,386 Reputation points
1 answer

Use streaming in ASP.NET Core SignalR can stream video in room in realtime?

I read this article [Use streaming in ASP.NET Core SignalR] When client A play the video, I will convert the blob file to the byte array. and then send it to the server using streaming in SignalR as described in the article. staying at client B in the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
asked 2024-05-07T06:59:55.42+00:00
Hoài Nam Nguyễn 41 Reputation points
answered 2024-05-07T15:56:56.69+00:00
Bruce (SqlWork.com) 56,846 Reputation points
0 answers

Solution: Custom SignalR Endpoints (Hubs) in a Blazor Server Application using Azure B2C When Deployed to Azure

Posting this in case I need it myself... Issue: Using custom SignalR endpoints (for example a /chat hub) with Authentication in a Blazor Server application that uses Azure B2C will not work when deployed. It will work fine on your local machine (using…

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,399 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
120 questions
asked 2023-01-15T08:30:23.1666667+00:00
Michael Washington 911 Reputation points MVP
commented 2024-05-07T14:06:24.0733333+00:00
Michael Washington 911 Reputation points MVP
0 answers

Unable to bypass the certificate validation when trying to access APIs from a web application which has its own certification

Unable to bypass the certificate validation when trying to access APIs from a web application which has its own certification Hi All, I m facing issue when I m trying to access a Service management API to create/ fetch a ticket through my web application…

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.
301 questions
asked 2024-05-07T14:02:15.3033333+00:00
nitar_prof 0 Reputation points
3 answers

Where Can I Find the Remoted iOS Simulator for Windows PC?

Where can I find the Remoted iOS Simulator for Windows PC?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2024-05-06T08:53:53.8966667+00:00
R9I1 1 Reputation point
edited the question 2024-05-07T13:53:20.0466667+00:00
Wesley Li-MSFT 4,376 Reputation points Microsoft Vendor
0 answers

How to perform a pivot grid in maui?

Hi, i want to display data from observablecollection in a pivotgrid using .Net Maui 8 like in the picture below. the columns are generated programatically. i write this code in the viewmodel: Stockstcviews =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,908 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,291 questions
asked 2024-05-03T16:24:46.6+00:00
Kaouthar GR AOUICHAOUI 40 Reputation points
commented 2024-05-07T13:41:14.23+00:00
Kaouthar GR AOUICHAOUI 40 Reputation points
1 answer One of the answers was accepted by the question author.

Xamarin MSAL Azure AD ADFS AcquireTokenInteractive error

Hi I just seen this error in our app , ERROR Web page not Available The web page at https://adfs.srm.com/adfs/ls/wia?client-request-id=########## Could not be loaded because : net::ERR_HTTP_RESPONSE_CODE_FAILURE Normally the user enter their email…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 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,548 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,597 questions
asked 2023-09-18T17:06:38.9333333+00:00
hernandoZ 46 Reputation points
commented 2024-05-07T13:29:48.65+00:00
Raman, Udhayakumar 0 Reputation points