4,157 questions with ASP.NET Core tags

Sort by: Updated
0 answers

SignalR implementation in ASP.NET Core Application using .NET Client to receive message.

I am following the below article for implementing SignalR in my ASP.NET Core web application to receive messages from Server. Initially, it was working and able to receive the message from the SignalR server Hub but after a few days, it is not receiving…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-04-10T06:44:41.37+00:00
satya karki 986 Reputation points MVP
commented 2022-04-11T05:38:53.597+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
13 answers

Why js,css,lib didn't load from wwwroot?

I made a simple ASP MVC (Net Core 3.1) , I leave it as standard, and deploy it under a subfolder of the Apache (/var/www/html/myapps/app/v1) I started the kestrel without any errors, I access the page (ie. https://example.com/myapps/app/v1), it shows…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-04-05T14:25:27.84+00:00
Dondon510 221 Reputation points
answered 2022-04-11T02:34:50.153+00:00
Dondon510 221 Reputation points
1 answer

Is there an alternative to generate a class diagram from an existing model in an ASP .NET Core project?

I found an article about how design and view classes and types with Class Designer. But it is written that Class Designer is not available in .NET Core projects. What is the best alternative ? (if an alternative exist in Visual Studio)

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-04-08T11:48:44.017+00:00
Syagush 1 Reputation point
answered 2022-04-11T02:33:48.073+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
1 answer

(wrong?) Temp folder on Linux / docker performance poorly on Net Core (Umbraco) in Azure Web Apps

Hi readers, The latest Umbraco CMS is fully .net core compatible. Locally I have it running in a Docker (Linux container) smooth as butter! I've tested locally using a Linux container in Docker and the performance was normal. When deploying the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,865 questions
asked 2022-04-08T08:53:40.46+00:00
Ambert van Unen 1 Reputation point
answered 2022-04-11T01:27:07.387+00:00
brtrach-MSFT 15,251 Reputation points Microsoft Employee
1 answer

Request.Url fail in a Razor page (VS2022 / .Net 6)

I use Microsoft Learn sample code in my Razor page. But I get CS1061 error message from VS2022. Is there any wrong? Or how can I get current URL in the same environment. Thanks. --------------------------- Code------------------------- …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-03-24T09:11:19.647+00:00
William He 1 Reputation point
answered 2022-04-11T00:16:14.063+00:00
Lohith GN 511 Reputation points
2 answers

How to access User.Identity in BaseController

When accessing the current user in my Windows authenticated .net core mvc app, User.Identity.Name returns Domain\Username. I am trying to implement a custom base controller so that I can change the User.Identity.Name to just Username and save it to a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-04-07T17:57:15.173+00:00
BCC_DEV 1 Reputation point
commented 2022-04-09T10:05:58.763+00:00
AgaveJoe 26,191 Reputation points
0 answers

Draw on Canvas by sketch jQuery plugin not work in Mobile

In ASP.NET MVC project,I am using this jQuery plugin to make free drawing over a canvas. It work fine on computer, but in Mobile or IPad not work properly, In Mobile or IPad, when I draw something and if I touch canvas again with pin, the old drawing…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 questions
asked 2022-04-09T05:53:20.917+00:00
mostafa ahmed 21 Reputation points
commented 2022-04-09T09:39:20.7+00:00
AgaveJoe 26,191 Reputation points
1 answer

32-bit COM Assembly Doesn't Work With x86/AnyCPU Target Platform in Visual Studio 2022

I have a web app which has list of projects, all under single solution. Many of them refers the COM DLLs which is 3rd-party provided. Project X1 refers 32-bit COM DLL and its target platform set as AnyCPU, whereas the start-up project's target platform…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 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,602 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,119 questions
asked 2022-03-04T05:28:15.48+00:00
Ashish Vora 1 Reputation point
commented 2022-04-09T03:05:57.533+00:00
Albert Kallal 4,651 Reputation points
1 answer One of the answers was accepted by the question author.

Logs are not generating on publish

I configured Microsoft Logger in Blazor Wasm with Asp.net core web APi but after publishing to server the logs are not generating in logs folder. on local I seen logs running in console Windows after running the project but not on server. I also…

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,157 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,385 questions
asked 2022-04-05T16:39:21.997+00:00
Prathamesh Shende 376 Reputation points
accepted 2022-04-08T13:16:23.447+00:00
Prathamesh Shende 376 Reputation points
1 answer

Razor Class Library wwwroot content access

I have a Razor Class Library which contains some razor views, and some content within its wwwroot folder. When I import the compiled DLL file into a .NET Core web project using Visual Studio (Add Project Reference), all works well. However, if I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-04-05T00:33:07.347+00:00
James Todd 1 Reputation point
commented 2022-04-08T11:44:25.647+00:00
James Todd 1 Reputation point
1 answer

.Net Core 3.1 to .Net 6 breaks model validation

Good morning, I have a MVC view that was working fine in .Net Core 3.1. The view is essentially three sections. An input box for the name, a row of radio buttons, and field of checkboxes. This worked perfectly fine. I made no changes to my ViewModels,…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-03-11T16:00:38.73+00:00
Michael Mastro II 51 Reputation points
commented 2022-04-08T05:48:08.07+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
2 answers

Asp.Net Core 5.0 SignalR with SQL Dependency

Hello everyone and thanks for the help in advance. I am porting older Asp.Net 4.5 application to .Net Core 5. A few of these applications have SignalR with SQL Dependency notification which I ahve been unsuccessful in porting to the new platform. IN…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 questions
asked 2022-03-01T20:28:42.117+00:00
Kmcnet 691 Reputation points
commented 2022-04-08T05:40:46.943+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
2 answers

Web api azure 400 Bad Request

A strange thing happens to me, I have published an api with swagger, in a post method I have a body with some properties that are a string, in my api I check if one of them is null, in my local everything works fine, both in swagger and postman, but when…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,865 questions
asked 2022-03-18T14:31:52.947+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
answered 2022-04-08T04:50:08.63+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
1 answer One of the answers was accepted by the question author.

MVC - Checkbox list value not passed home controller with existing list

I have a checkbox populated based on the List “DayList”, in Timesheet.cshtml @if (Model.TimeSheet.DayList != null) { for (var i = 0; i < Model.TimeSheet.DayList.Count(); i++) { @azzedinehtmlsql .HiddenFor(x =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,252 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,234 questions
asked 2022-04-05T22:07:43.897+00:00
Shri-6058 326 Reputation points
accepted 2022-04-08T04:32:02.013+00:00
Shri-6058 326 Reputation points
2 answers

asp.net core 3.1 HttpClient Error while copying content to a stream.

we have old file server with post and get requests to work with files. Now we need to bind our web server with old file server. But i'm getting Error while copying content to a stream. when PostAsync. What i'm doing wrong? [HttpPost] public async…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2020-12-10T08:08:20.82+00:00
astheras 1 Reputation point
answered 2022-04-08T01:59:23.347+00:00
Nijil N 1 Reputation point
1 answer

error al depurar con visual studio 2012

Me sale el siguiente mensaje al ejecutar el visual studio 2012

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-04-07T18:30:59.5+00:00
Gian gutierrez blas 1 Reputation point
answered 2022-04-08T01:55:43.09+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
0 answers

WebApplicationFactory for Multiple Interconnected web applications

Hello, I almost have similar scenarios (like the link below)... Let me explain first: I have WebAPI Application1 which has DoSomethingUsingBarApi() to communicate to WebApi of Application 2. I want to test the round trip. 1) My First Web…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
328 questions
asked 2022-04-07T17:43:59.96+00:00
Chandresh Sanghavi 1 Reputation point
2 answers

VS 2022 stable does not have emmet in razor

Hi, i just installed Visual studio 2022 and it doesn't have emmet in "cshtml" files. Thanks

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2021-12-19T08:36:42.113+00:00
Abbas Sheikhider 1 Reputation point
commented 2022-04-07T16:16:40.317+00:00
Mike953 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to lock page while loading data correctly

In my ASP.NET Core MVC project when the user fills the form and hits send button, a message is shown to the user and the button is locked. The problem is even without filling the form on hitting the button it shows the message. I have client-side…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-04-07T04:42:12.467+00:00
amin khosravi 21 Reputation points
commented 2022-04-07T16:12:11.35+00:00
amin khosravi 21 Reputation points
4 answers

ViewBag in asp.net core

Do you know how to activate ViewBag in PageModel (x.cshtml.cs files) of asp.net core 3.1? Thanks

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-04-01T12:06:37.027+00:00
S A 81 Reputation points
answered 2022-04-07T14:34:10.677+00:00
S A 81 Reputation points