4,166 questions with ASP.NET Core tags

Sort by: Updated
0 answers

ISession Extension methods

For creating/adding sessions I am using app.UseSession(); // middleware registering services as builder.Services.AddSession(options => { options.Cookie.Name = "Session"; options.IdleTimeout =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-27T10:18:27.713+00:00
net 6 newbie 121 Reputation points
commented 2022-06-27T12:09:31.563+00:00
AgaveJoe 26,201 Reputation points
3 answers

CS0246: The type or namespace name "ProductDto" could not be found(are u missing a using directive or an assembly reference?)

hey anyone give me the solution of this issue https://github.com/GavinLonDigital/ShopOnlineSolution/issues/1

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,390 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,249 questions
asked 2022-06-24T15:28:07.417+00:00
answered 2022-06-27T07:17:16.863+00:00
satya karki 986 Reputation points MVP
1 answer One of the answers was accepted by the question author.

Returning a Vector3 over an ASP.NET Core Web API returns empty JSON

I'm assuming I'm doing something wrong here but whenever I try to return a Vector2/Vector3 over an ASP API it always gives me '{}'. JsonConvert seems to be able to serialize and deserialize it just fine but not over an API. To replicate this create…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-21T14:46:41.687+00:00
Jacob Clinton 26 Reputation points
accepted 2022-06-26T16:41:12.14+00:00
Jacob Clinton 26 Reputation points
0 answers

Asp.net using angular and html

I want get a leave balance of particular leave type using function "GetAllLeaveBalance()" Now i have values in registrar as How to get that value in leavetype =x.leavetypemodel.Name

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-26T07:24:59.253+00:00
rashmitha r 21 Reputation points
commented 2022-06-26T13:30:48.937+00:00
AgaveJoe 26,201 Reputation points
2 answers One of the answers was accepted by the question author.

Need help in Razor Pages in ASP.NET Core ( Loop )

Hi. I've Static Menu as following. I can do in html Parent Menu Child Menu <li class="nav-item"> <a class="nav-link " asp-controller="marketing"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-18T23:51:02.667+00:00
Jerry Lipan 916 Reputation points
accepted 2022-06-24T10:31:33.113+00:00
Jerry Lipan 916 Reputation points
1 answer

OData $select and $expand not working on XML response?

I have been developing an API with XML and JSON responses integrating OData, but I'm having a problem retrieving XML responses with OData $select and $expand methods, but other methods work fine like $top, $filter and $orderby etc... In JSON response…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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.
297 questions
asked 2022-06-17T23:22:33.317+00:00
Ken Martos 36 Reputation points
commented 2022-06-23T22:17:43.453+00:00
Ken Martos 36 Reputation points
1 answer

Setting up VS 2022 ASP.Net Core Web API with Authentication working

I have been trying to get my ASP.Net Core Web API working with an AAD app registration for authentication and I'm not able to authenticate using either the default Swagger page or Postman. At this point, I'm just trying to get the WeatherForecast API…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,473 questions
asked 2022-06-22T17:51:23.247+00:00
David Downing 21 Reputation points
commented 2022-06-23T21:33:09.7+00:00
Bruce (SqlWork.com) 56,026 Reputation points
1 answer

Use API into a WebApi project

I need to call Graph API without user interaction. Users access to a Angular website through ADFS and the backend is served by .Net Core WebApi. Users ask the server to upload/download a file and the server must "self login" to Graph and do…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2021-05-02T02:48:01.963+00:00
Maximiliano Bertoli 26 Reputation points
answered 2022-06-23T20:13:02.857+00:00
Bruce (SqlWork.com) 56,026 Reputation points
1 answer

which vs of visual studio supports .net core 3.1 vs

which vs of visual studio supports .net core 3.1 vs

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
939 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
964 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
92 questions
asked 2022-06-23T10:53:58.12+00:00
Harshali Choudhary 1 Reputation point
answered 2022-06-23T13:05:50.097+00:00
Bruce (SqlWork.com) 56,026 Reputation points
1 answer

Use Multiple Type in Generic T C#

i have this interface base repo with genric type T public interface IRepositoryBase<T> where T : class { void Add(T obj); } and this interfaces heritance from the IRepositoryBase public interface IClass1Repository :…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,249 questions
asked 2022-06-22T19:36:58.513+00:00
TAII EL MEHDI 21 Reputation points
answered 2022-06-23T01:54:26.537+00:00
Bruce (SqlWork.com) 56,026 Reputation points
0 answers

A process serving application pool 'xxxx' failed to respond to a ping. The process id was '26636'. Event ID 5010

I am facing this error from sometime. Our application hosts multiple application pools in IIS, but this issue happens only with one/single app pool. All the app pool settings are same across the application pools. Moreover this failed to respond to a…

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,166 questions
asked 2021-07-20T17:05:11.303+00:00
chandan vysyaraju 21 Reputation points
commented 2022-06-22T16:56:16.76+00:00
Hitesh Sachdeva 1 Reputation point
0 answers

Web Config use

I have a typical requirement. We have several WCF services using NetHttpBinding. We are developing a new Core Web API for a new project. We plan to use the existing WCF DLLs in new web API that. one of the DLLs is data layer that uses connection…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-21T20:37:31.4+00:00
Balu Raju 76 Reputation points
commented 2022-06-22T16:20:14.21+00:00
Bruce (SqlWork.com) 56,026 Reputation points
1 answer

SQL Server 2017 connection problems with Asp.Net core runtime 6.0.x

We have an application running on Asp.Net Core 3.1.x runtime. Recently the application is moved to Asp.Net Core 6.0.x runtime. After the upgrade, we are facing issue while connecting to SQL Server 2017 database when application is running from…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-21T12:30:57.993+00:00
Rohit Bhise 1 Reputation point
commented 2022-06-22T13:49:37.2+00:00
Michael Taylor 48,281 Reputation points
2 answers One of the answers was accepted by the question author.

How return the format of the size file in datatable

Hi, In the class FilePath I've a class public class FilePath { //.. public Int64 Size { get; set; } //.. } This class is based to the View [dbo].[FilePath] in Sql The datatable is returned via…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-21T20:08:47.223+00:00
sblb 1,166 Reputation points
commented 2022-06-22T07:27:18.453+00:00
sblb 1,166 Reputation points
1 answer One of the answers was accepted by the question author.

bootstrap modal form validation with slect2

I am using partialview in modal form. In this form there is a select2 option list which working fine. But when press submit button, required fields as per model are not validating i.e. not showing error. I have used lots option from internet, but…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-20T06:00:18.16+00:00
anil kumar 46 Reputation points
commented 2022-06-22T05:20:21.083+00:00
anil kumar 46 Reputation points
1 answer

How to set up server variables for URL Rewrite through Appcmd for site

Hi, I am currently trying to create the rewrite URL for my site using Appcmd.exe. I have managed to create the rules, conditions, patterns as like below. system("C:\WINDOWS\system32\inetsrv\appcmd.exe set config ""Check""…

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,166 questions
asked 2022-06-21T14:29:47.407+00:00
Jagadeesh Mohan 1 Reputation point
answered 2022-06-22T01:47:09.537+00:00
Bruce Zhang-MSFT 3,736 Reputation points
1 answer

How can I run javascript codes, css files and javascript files into wkhtmltopdf in asp.net core api project?

I use the Chart.js library to draw charts, but I use the wkhtmltopdf library to convert pdf. But my javascrip codes and css codes are not working. How can I make it work?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2022-06-17T14:40:58.073+00:00
levent koman 1 Reputation point
answered 2022-06-21T19:41:48.813+00:00
Bruce (SqlWork.com) 56,026 Reputation points
1 answer

<span asp-validation-for can not trigger if html is appended.

If I use jquery.html(""); append html <input type="text" asp-for="MyValue" /> <span asp-validation-for="MyValue" ></span> it can not validate for it.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-21T10:05:44.497+00:00
mc 3,681 Reputation points
answered 2022-06-21T18:38:12.243+00:00
Othusitse Seth Dylan Phefo 1 Reputation point
2 answers One of the answers was accepted by the question author.

Convert DateTimeOffset to Date format in aspnet core

Hi, In the class FilePath I've a class public class FilePath { [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy/MM/dd}")] public DateTimeOffset Created { get; set; } } This…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-06-20T19:28:58.027+00:00
sblb 1,166 Reputation points
accepted 2022-06-21T16:34:45.057+00:00
sblb 1,166 Reputation points
1 answer

Dependency Conflicts after Upgradation

I've upgraded my Webform application from 4.8 .NET Framework to .NET Core 6.0. Now the main issue is that my system is not reading the .dll which were used in the older version, for e.g System.Web is unavailable in the newer version. Is there any…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2022-06-21T07:00:31.06+00:00
Saad 1 Reputation point
answered 2022-06-21T14:30:36.26+00:00
Bruce (SqlWork.com) 56,026 Reputation points