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

Request with size over 64KB fails to complete (ASP.NET Core)

I already posted this problem/question on Stack Overflow, but I haven't received any helpful response so far. That's why I chose to pose the same question here.Link to Stack Overflow questionTo...

View Article


Sending many unique emails at the same time

Hi, I have an asp.net core app that needs to send many emails at the same time where each email having a different message.I installed Mimekit and i supply my email settings accordingly. In my app the...

View Article


how to use other language option in localizer

Hi,how to use other language option in localizer ? I need to use two language same time. other language option is changeable. namespace MIS.WebUI.Controllers { public class HomeController : Controller...

View Article

ASP.NET Core application Consuming more memory

I have migrated ASP.net MVC application in to .NET Core self-contained application, while hosting them in to the Production environment it occupying more memory and for every request causes the memory...

View Article

How to communicate with an Exchange Server using ASP.NET Core 2.0

Hello, I'm trying to create an ASP-NET Core 2.0 application that is meant to be used to communicate with an on-premise Exchange server. I need to be able to get calendar-events-data from all the...

View Article


Need Code references for .net core 2.O MVC

Hello Guys, I am building a web application of company payroll management, Where multiple companies will register and payroll will be maintained. I also have to use ESB for the security of the...

View Article

In case of simple SQL Connection in WebAPI

Hello,I was build a Simple Web API in ASP.net core. And i want to use simple database connection from SQL server 2012. So please help for build Sql connectivity of Web API.Regards,Vineet 

View Article

Getting 404 error instead of 401, when token is expired or when token is not...

I created Asp.net-core 2 project and addedapi controller authorized by Bearer token. mvc controllers authorized by CookieAuthenticationDefaults.AuthenticationScheme.When i tried to call api published...

View Article


what cms systems are available for .net core

What cms systems are available to use on a pure asp.net core(mvc 6) web site. Right now i am learning umbraco and know my choices are limited. I also seen orchard2. Are there others and what is the...

View Article


One-Zero-one relationship prevents the primary table from inserting data!

I have those two entities, public class PatientRegistry { [DatabaseGenerated (DatabaseGeneratedOption.Identity)] [Display (Name = "Record Id")] public long RecordId { get; set; } [Key,...

View Article

Roles and RoleManager in ASP.NET Core 2

My next step in this journey is to create some roles and a simple user.  Unfortunately, I get an error regarding my tables not having primary keys as shown below.  I don't understand how to fix it.  I...

View Article

CRUD operations

Hi,could someone give me some hints about where to find information (internet links, books) about how to realize an easy application, containing the most common CRUD operations, eg. using ".net core 2"...

View Article

one-to-many relationship include and where

Hi Everyone,var products = unitOfWork.Products.GetAll() .Include(i => i.ProductDetails).Where(d=>d.ProductDetails.Any(i=>i.LanguageId==2)).ToList(); I have these two tables. I want to write...

View Article


Entity Framework Core: The transaction operation cannot be performed because...

In the process of creating a Web API. While testing I've ran into some problem when loging requests to the database. The problem happens when I spam the API with many requests.I will try to include as...

View Article

How to redirect access denied login based on the URL on ASP.NET Core 2 Identity?

I am using Identity as the authentication for my website. I would like to have 2 login path corresponding to 2 different path, which they are used for different purposes.www.mysite.com/Account/Login...

View Article


Create a Tree Structure from scratch...

I must create a tree structure from scratch on my MVC VIEW page.   This is for a folder tree within my web page.  What I need to know is how to create a dynamic table that indents based on the data...

View Article

Nested resources best practices (WebAPI, REST)

How should I design the API like:/player/5/items/Should I define the GetPlayerItems method inside PlayerController and setup routing there or define it in ItemController?if I do it in PlayerController,...

View Article


MVC View Page -- Link with ID

How to create an ActionLink with record ID and redirects to the same page with that ID?Controller Name = "FileDirectory"String or Link Name = "My Documents"Action Name = "MyDirectory"ID = 15

View Article

asp.net core webapi works on my local machine but does not work on remote...

Hi I need help with asp.net core webapi. please see highlighted code snippet. The highlighted code seem to work fine on my local development machine but does not work on remote ubuntu production...

View Article

Convert codes into a button...

How do I convert the following code into a button instead of link?<p>Folder-close icon on a styled link button:     <a href="#" class="btn btn-info btn-lg">            <span...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>