Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

ASP.NET MVC – example of RequiredRouteConstraint (:required) use

I am not sure about RequiredRouteConstraint use. The definition sais“Constraints a route parameter that must have a value.” and”This constraint is primarily used to enforce that a non-parameter value...

View Article


Getting User Info - windows authentication

Hi,I am using ASP.Net Core and Entity Framework 6.0.I am trying to get the windows user info, which will be checked against the application database for authorization access.I am having problems with...

View Article


ASP.NET Core (1.1) web application behaving differently depending on target...

I have an ASP.NET Core 1.1 web application (simple web API) and an Angular client application. I'm using Azure Active Directory B2C as my auth provider and I've deployed my applications to three...

View Article

ASP.NET Core routing works in VS IIS Express but not in IIS 10

I am developing ASP.NET Core web api. here i have a situation like i have to use multiple get functions which get data from sql server db. So for that i'm doing custom attribute routes. below are my...

View Article

Asp.Net Core 1.1 Dropdown issues

Hello,   I am having two issues with the Select tag helper in my project.  In both the Edit and Create views the validation for the Select tag helper is not working.  Also the view is not setting to...

View Article


Captcha appear and disappear

Hello, I have a captcha problem.it was working before net core (framework) template 1.1 and now it just appear for a second and disappear ( chrome and opera )any idea ?Controller.........Bitmap s_image...

View Article

Why the concurrent performance of my server(ASP .net core + MySQL) is very...

I used asp.net core and MySQL.  the connector I used is connector/net. I use apache bench to test, reques per second is only 4.06 Is this normal? I use java spring to test, the request per second is...

View Article

Doubts about the access from the WAN on site asp.net core ...

Hello to all, Icreated a websitewithasp.net1.1coreMVCI havemade all the necessaryconfigurations, i can connecttothe home pageonly ifI map"127.0.0.1"or "public IP"withvirtual sitename in the hosts...

View Article


Asp.net Core Data Annotations failing to decorated multiples of the same...

I'm using a partial view to create a security question and answer view using a model. Besides the issue of naming each one with a index number. That is a whole seperate issue all together. I want 3...

View Article


Dynamic Model Binding with Repeating Inputs

Is there a "proper" way to setup model binding for dynamically adding, editing, and deleting elements in .NET Core? I came across this article...

View Article

Project Hierarchy, What Technologies to use?

Hi,I want to write application separated to 3 parts. Client Service, Service, Web.Let's say we have for example 5 computers and 1 server. Each computer will run Client Service. Server will run Service...

View Article

Environment Variable in Class Library

Hi!I'm trying to create a class library in my solution, and I want it to access the Environment Variable, so I can choose the correct db connection string.  Does anybody know how to do that?  Since my...

View Article

Redirect page is not working in Unauthorized Access ( 401 )

Hi,How we can ridirect the current page When user access the Unauthorized content. Index PageWhen I click on the "Click" button in Index Page, Then It will redirect to Home controller.<div...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core application not freeing memory

I have an ASP.NET Core application running behind IIS in production that is not freeing memory on its own until the application pool recycles itself.  Every request causes the memory to increase.  I am...

View Article

VS2017 Scaffolding error Microsoft.VisualStudio.Web.CodeGeneration.Utils

I am trying to just do an controller scaffolding on a ASP.NET Core application I and I get the following errorUnhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly...

View Article


Need Help On C# Multi Threading(Dynamic Threads)

hello ,i have a asp.net application which pulls data from oracle database and load data into ms sql database . currently we are using year based static Threads. but the problem is when every year...

View Article

How to display title from user control ascx file

Hi,I have a Aspx page in that user control is loaded based on the user selection. Here i want to display the page title from Usercontrol ascx file (not from code behind). how can i achieve this. Please...

View Article


Microsoft.AspNet.Razor 3.2.3 is not compatible with netcoreapp1.1

HelloWhen I use VS Community 2017 and try and install some new dependencies via NuGet Package manager (specifically, Razor tools, Static file and MVC) I get the following error: Package...

View Article

"DRY" form tag uniformity in one component or partial view

I have a number of form tags that look similar:<form asp-area=@ViewBag.Area asp-controller=@ViewBag.Controller asp-action=@ViewBag.Action asp-route-returnurl="@ViewData["ReturnUrl"]" method="post"...

View Article

System.IdentityModel.Metadata and X509SecurityToken not available in ASP.NET...

I'm currently trying to get signing keys from Azure Active Directory based on the signing key rollover guide over at Microsoft docs in order to authenticate HTTP requests on an ASP.NET Core Web API...

View Article
Browsing all 9386 articles
Browse latest View live