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

Image may be NSFW.
Clik here to view.

If you connect two libraries, then debugging does not work?

I add two class libraries to the "solution". I am running debugging. Chrome starts up. In Chrome, the start page `\Home\Index.cshtml` appears. After `~10` seconds, debugging automatically stops....

View Article


Swagger Page Doesn't Display Example Schema

Hello,I am having Asp.Net 3.1 application where I use swagger UI to display the API documentation but In my case previously I was using [DataMember] Attribute for the properties and in that case...

View Article


Deploy ASP.NET CORE IN TO IIS

Hi,Do we need really need to include following code in Program.cs ..UseIISIntegration(),.UseKestrel()For deploying Asp.net core application in to IIS.Regards,krrish

View Article

NotFound Page in Asp.net Core

Hi,i want design 404 page in my project and i have use culture root ,my startup app.Use(async (context, next) => { await next(); if (context.Response.StatusCode == 404) { context.Request.Path =...

View Article

How to Use WIX installer with net core Web app?

Hello all,I want to use WIX installer with Dot Net Core Application along with that I want to integrate IIS hosting and SQL express in wix installer with net core web application. Currently I have...

View Article


cycles or multiple cascade paths in ef core

Hi,i have this error in update database , whats problem ?ProductInfo.cs [Key] public int ProductInfo_ID { get; set; } [InverseProperty("ProductInfo")] public virtual IEnumerable<SimilarProduct>...

View Article

Dynamically adding/removing HTML table entries

I am developing a SPA using ASP.NET Core 3.1 Razor.In one of the Create Model screens, I have a nested collection E.g "Create Customer" screen has to allow the user to add a collection of his/her Cars...

View Article

Missing optional routing argument not null

Hi!I have a simple route with an optional "version" argument:routes.MapRoute(name: "pages", template: "{action=Index}/{version?}", defaults: new { Controller = "Pages" });and corresponding action...

View Article


where to find trirand web.ui.controls

http://trirandcore.azurewebsites.net/demo/gridusing Microsoft.AspNetCore.Http; using System; using System.Collections.Generic;using Trirand.Web.Core; namespace CoreDemo.Models { public class...

View Article


Spike in CPU usage.

Hello,I am using ASP.NET Core 2.2. We are facing an issue from the last few days that there is sudden spike in CPU usage of my application after 8-10 hours. Then the system is required to be restarted...

View Article

Dynamic web application with ASP.NET core

Hi, I want to add a dynamic page loading feature to my website, basically I want to load more content on my website page when someone reaches the end or when user presses the load more button. for eg...

View Article

Fault Tolerant Background Job

I have a service worker up and running in my ASP.NET Core 2.2 app. I am exposed to a problem that I want to solve which is to create a fault-tolerant background service. I have a shared table on which...

View Article

Image may be NSFW.
Clik here to view.

asp.net core static file caching doesn't work

I am using the Angular project template with ASP.NET Core. ReferenceThe caching should be enabled by default, to be sure I have added an StaticFileOptions object to the StaticfileMiddleware:public...

View Article


RedirectToPage() not working from AJAX handler

I'm using Razor Pages and have a handler called OnPostDeleteAsync(). The handler is working but, after the item is deleted, I want to refresh the page.I could refresh the page from my JavaScript code...

View Article

Page Routing based on a custom value

Hello:I need to authorize MVC pages based on a combination of custom values that I obtain from the user logged in, for example:A logged in user will see a certain page(s) if they have a code value of...

View Article


Type or namespace error in startup.cs doesnt make sense

I have a Net Core 3.1.1 (Blazor) app that i have generated a "reverse engineer" configuration via EntityFramework PowerTools  for. This generates dbcontext and allows me to assign tables from my dbase...

View Article

pulling a numerical value out of a dropdown box html

Looking for some help on how to pull out a numerical value from a drop down box back into an if statement in a  controller:Dropdown box:<div class="form-group"><select class="form-control"...

View Article


Dependency injection in HostedService failing

Hi,I am busy on a asp net core application where I need to perform a background task on my database once a day. So reading...

View Article

My MVC Core new website is showing Directory lIsting

I am new to Asp net core. I Made new web Site in MVC Core , Created an instance of EC2,Configured IIS in it then i Created a new website and deployed the application there . It  is showing directory...

View Article

How to sanitize inputs for Html.Raw on server side

I have several views where I use @Html.Raw and would like to sanitize rich text inputs. Possibly what the Rich Text Box may emit and take a white list type of approach to the tags/attributes that the...

View Article
Browsing all 9386 articles
Browse latest View live


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