4,232 questions with ASP.NET Core tags

Sort by: Updated
2 answers

Getting right view from two razor libraries

I'm writing ASPNET Core web page. I created two razor view libraries and in each one I created file List.cshtml and controller: WebPage.Users List.cshtml UsersController.cs WebPage.Clients List.cshtml ClientsController.cs Both controllers…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 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,363 questions
asked 2021-02-10T19:31:08.66+00:00
Niki Kante 1 Reputation point
answered 2021-02-18T07:28:27.867+00:00
Michael Wang-MSFT 1,051 Reputation points
2 answers One of the answers was accepted by the question author.

Getting Invalid http header / Invalid Data when trying to GET

I am getting an Invalid http header when I try to implement a GET in C#. This GET works when I try it in Postman. But when I run the program, I get the error message below. This is what the code looks like: public static void getObjects(string…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-15T03:25:31.95+00:00
Elba 141 Reputation points
accepted 2021-02-18T04:13:32.953+00:00
Elba 141 Reputation points
6 answers

Deploy asp net

Hello i am new at using asp net .. I have created website using asp net web app (.NET Framework) i don't not wanna add it on server i wanna work with it locally but not on same laptop i have created it on, is that possible to deploy it locally and use…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-03T09:40:06.387+00:00
Nada Botros 1 Reputation point
commented 2021-02-18T01:42:09.107+00:00
Bruce Zhang-MSFT 3,736 Reputation points
4 answers

Microsoft.NET on Microsoft Windows 10.

The following commands were suggested for repairing damage to IIS 10, caused by typing in "ServiceModelReg -i" at the Microsoft Windows 10 ( Home ) Edition command prompt ( in elevated mode ): cd\Windows\Microsoft.NET\Framework64\v4.0.30319…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-15T20:30:30.817+00:00
Russell Willis 1 Reputation point
answered 2021-02-17T02:20:29.567+00:00
Bruce Zhang-MSFT 3,736 Reputation points
1 answer One of the answers was accepted by the question author.

How to migrate App Service to an Azure Function?

We want to change App Service to an Azure Function but we have old apps that point to the .....azurewebsites.net url. How can we do this and preserve the current url of the app or redirect from the app service link to the new azure function endpoint.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,359 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-11T15:12:48.157+00:00
a.sujeta 21 Reputation points
accepted 2021-02-15T11:06:26.4+00:00
a.sujeta 21 Reputation points
0 answers

I would like to set the AddMicrosoftIdentityWebApp based on the request url (B2E, B2C) type to achieve authentication in Statup.cs

he code we are trying in ConfigureServices(IServiceCollection services) method in Statup.cs //Based on request type the code should pick the configuration needed…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 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,130 questions
asked 2021-02-15T10:57:06.093+00:00
Amit Singh Rathore 0 Reputation points
1 answer One of the answers was accepted by the question author.

Logging CRUD operations ASPNET Core, AspNetUsers, AspNetUserRoles

Hi, I want to log and create UI where logs of CRUD operations could be viewed. It can be which user updated what fields or columns The Users are ASPNETUSERS Can we get such logging ? I am using EF ASP.Net Core MVC Thanks, Regards.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-12T12:47:23.217+00:00
murtaza gandhi 81 Reputation points
accepted 2021-02-15T08:38:10.153+00:00
murtaza gandhi 81 Reputation points
2 answers

I have issue with while column of datatable is false in columndef

Hi, My issue is when I set false in datatables "visible": @(User.IsInRole("Admin") ? "true" : "false") when it is false it throws error while editing the model from edit.cshtml since automatic null value…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-12T11:43:26.477+00:00
murtaza gandhi 81 Reputation points
answered 2021-02-15T06:13:16.997+00:00
Michael Wang-MSFT 1,051 Reputation points
2 answers

HttpClient.PostAsync - System.Net.Http.Formatting exception

I am running a .NET Standard 2 project. I have added the Microsoft.AspNet.WebApi.Client (5.2.7) package. My call to HttpClient.GetAsync are working fine, but as soon as I try HttpClient.PostAsync, HttpClient.PostAsJsonAsync (or event the PutAsync…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 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.
304 questions
asked 2021-02-13T11:55:39.693+00:00
Craig Muckleston 161 Reputation points
answered 2021-02-14T13:15:42.71+00:00
Duane Arnold 3,216 Reputation points
2 answers

Web Application Without Model

Is there any other way to create an ASP.NET Web Application .NET Framework (as Frontend) without using a Model class? I'm using ASP.NET Core Web Application as Backend.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-11T03:03:27.207+00:00
Jela 1 Reputation point
answered 2021-02-13T20:39:17.573+00:00
Duane Arnold 3,216 Reputation points
1 answer One of the answers was accepted by the question author.

access shared folder from Tow IIS server.

i am using .net core 3.1.18 web api hosted in IIS. i have load balancer hosting the api on two windows server. i am writing a file since i need to access the file from from two server i am using UNC path for folder sharing. i need to access a shared…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,306 questions
asked 2020-11-20T03:11:24.67+00:00
Somnath Shukla 411 Reputation points
accepted 2021-02-13T04:20:00.67+00:00
Somnath Shukla 411 Reputation points
2 answers

Asp.net get visitors screen

I need get visitors screen I want to see and watch visitors screens real time I searched very long but I not found any document If there is any document or sample code related to this subject, can you post it ?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,306 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,363 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,602 questions
asked 2021-02-10T08:19:54.837+00:00
kaan faruk 21 Reputation points
commented 2021-02-12T07:55:38.99+00:00
Yijing Sun-MSFT 7,071 Reputation points
1 answer

UDP receive in asp.net web application SignalR

I want to receive a realtime data in a web application and display that realtime data in web form. I have heard about the signalR. I tried to put UDP receive codes as shown below in the hub class. But it gives error . Please suggest any solution so that…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-10T17:42:34.933+00:00
cdeo 1 Reputation point
answered 2021-02-11T05:49:25.74+00:00
Michael Wang-MSFT 1,051 Reputation points
0 answers

.Net Core SignalR 1.1.0 (GET /hub) call showing performance issue in Application Insights (AI).

.Net Core SignalR 1.1.0 (GET /hub) call showing performance issue in Application Insights (AI). Min time - 19 sec, Max time - 1.2 hours When client calls SignalR hub Send method (Hub method which broadcast messages to all connected clients), SignalR…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-10T11:18:10.977+00:00
Shailesh 6 Reputation points
0 answers

SaaS (.net core) and Azure Ad B2C - What is the best approach to handle user defined authorization policies?

Hi there, I'm trying to find the best (or most common) approach to a feature implementation. Scenario: A multitenant WEB app (SaaS) using Azure AD B2C as the identity provider. The SQL database will have an user table with some columns that…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,677 questions
asked 2021-02-01T20:00:01.743+00:00
Emerson Brito 21 Reputation points
commented 2021-02-09T17:03:11.037+00:00
JamesTran-MSFT 36,476 Reputation points Microsoft Employee
1 answer

Classic asp Comapatibilty

Hi, Is it possible for you to confirm if Classic asp is supported in below mentioned windows instances or not? windows 2012 instance windows 2016 instance windows 2019 instance Thank You Debasish Nandi

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,449 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2020-12-30T18:01:22.843+00:00
Nandi, Debasish 1 Reputation point
commented 2021-02-09T13:27:40.497+00:00
Nandi, Debasish 1 Reputation point
1 answer One of the answers was accepted by the question author.

Restrict access to Web API using Blazor WASM

I'm working on a project for a financial application and after a lot of thought decided to create a web API (using JWT) and, initially, a Blazor frontend. Eventually we will add mobile apps. So my first idea was to use Blazor WASM. Then thinking about…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 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,413 questions
asked 2021-02-07T19:58:16.4+00:00
Oliverio Díaz Abood 21 Reputation points
accepted 2021-02-09T01:57:08.147+00:00
Oliverio Díaz Abood 21 Reputation points
1 answer

How to dispose variables in Custom Http Client Handler?

Team, I have made an api in .net core 3.1 and created a custom HTTP Client Handler to manage dynamic certificates per http call but unable to understand the procedure to write and execute dispose pattern. Startup.cs--> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 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,363 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,130 questions
asked 2021-02-04T20:18:25.677+00:00
Tanul 1,251 Reputation points
commented 2021-02-08T14:42:02.847+00:00
Tanul 1,251 Reputation points
1 answer

Get-IISCentralCertProvider : Object reference not set to an instance of an object.

Powershel help says this should work but i get the following error import-module WebAdministration Get-IISCentralCertProvider Get-IISCentralCertProvider : Object reference not set to an instance of an object. At line:1 char:1 …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,403 questions
asked 2021-02-07T02:42:09.38+00:00
vTech 6 Reputation points
answered 2021-02-08T03:14:39.577+00:00
Sam Wu-MSFT 7,046 Reputation points Microsoft Vendor
6 answers

access website hosted in IIS on windows 10 from any pc

Hello ... i have created my website using asp net web app (.Net framework) it is my first one i wanna deploying it locally and give the access from another pc in different place (not on same network to use it ) but i don not understand a lot in this part…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
asked 2021-02-04T17:11:53.873+00:00
NALB 61 Reputation points
commented 2021-02-07T08:37:57.353+00:00
Bruce Zhang-MSFT 3,736 Reputation points