Is there a reason behind only allowing a single IClamesTransformation?
in AuthenticationService.cs the constructor only accepts a "IClaimsTransformationtransform". Is there a reason behind only passing a single IClaimsTransformation in instead of a...
View ArticleExample of how to download a PDF file from local drive
I have a ASP.NET Core MVC application and I need an example of how to download a PDF file from a local drive.I have a web page with a list of pdf files and when a user clicks on one of those links I...
View Articleasp.net core 2 razor pages with webAPI 404 when deployed on IIS
hello everybody,i am puzzled by what i am currently facing with regards to calling webAPI that is integrated with razor pages. here is my setup basically i am using razor pages with angularjs on the...
View ArticleDownload files from other sites and streaming file
Hello.I have a site for download rar files, download links are from other sites:My site is : MySite.ComDownload link: OtherSite.Com/File.rarI don't want to see user original download link and stream...
View ArticleFacing multiple issues with the project created using Generic repository...
Hello all I have created a project using generic repository pattern with UOW which is in github RepositoryUOWFirst issue I am facing is TypeLoadException: Could not load type...
View ArticleWhat's the equivalent of Session_Start in Global.asax file ASP MVC in CORE MVC
I am new to Core MVC.What's the equivalent of Session_Start in Global.asax file ASP.Net MVC in CORE MVC?I am looking for sample code.Thanks
View ArticleDynamic reports in MVC Core 2.0
All,I need to implement reports in MVC Core 2.0. The reports need to be dynamic, in the sense, the user will select what columns need to be in the report and on button click, the report should get...
View ArticleConcat 2 IQueryables
Hello.I want to concat 2 IQueryables :<div> <div>var iq1 = db.Products .Include(p => p.Category) .Include("User") .Include("Event") .Include("Comments") .Include("ProductImages")...
View ArticleLocal Active Directory Integration
Hi,How to integrate local active directory to my .NET Core 2.1 project? We do not use Azure AD. Thank you.
View ArticleHow to secure ASP.NET Core 2.0 Api?
I have two app.1) ASP.NET Core 2.0 MVC App with JWT authentication implemented. 2) ASP.NET Core 2.0 API app.Now I want to secure the API app without using any 3rd party identiti provider. User logged...
View ArticleChart display on rajor pages in asp.net core 2.0 framework
I am looking for any help on how to display charts on asp.net core 2.0 RAZOR pages framework. can any one help on this particular issue??
View ArticleDo mvc exception filters override exception middleware/global exception...
How exactly does it work? When I handle the exception in exception filter the exception won't be printed in the console.What code exactly is responsible for printing exception to console ?I was looking...
View ArticleIs it okay to create generic base controller to get rid of CRUD boilerplate...
https://stackoverflow.com/questions/6119206/what-are-good-candidates-for-base-controller-class-in-asp-net-mvc/6119341#6119341What is your opinion on this?My CRUD controllers mostly look the same, there...
View ArticleNet core Signalr video chat
Hi everyone!I have some students and I want to make video chat with net core and Signalr. All students is going to join room and dicuss about video. Notice the video is load from mp4 file and when...
View ArticleErrors Thrown From View Component don't Show Error Page
I have an Asp.Net Core 2.0 application that is configured to show an Error Page in Production or use DeveloperExeptionPage.If I throw an error directly from a controller, this works fine. However if I...
View ArticleNullReferenceException when posting (razor pages)
<div>I have a small application for arranging events, and wants have a page for sending emails or sms to all participants. Have this code behind: public class MessagingModel : PageModel { private...
View ArticleNew Identity UI Area Custom Route
Hi,Using dotnet version 2.1.300-rc1-008673.Project was created using dotnet new mvc --auth Individual. I added <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools"...
View ArticlePlugin System — Application Parts and Microsoft failure
I tried "to suggest something" in github, but N. Taylor Mullen does not seem capable to give any answer…So I try here.ContextI have built a plugin system, based on Application Parts, for my Asp.Net...
View ArticleAspNetKatana,How to Unit Test " AuthenticationHandler" class
Summary of the problem I am having:I am not able to write the unit test cases for my app class which is inheriting public abstract class AuthenticationHandler<TOptions> : AuthenticationHandler...
View ArticleReplace tags for html content
That's how if I have some content that I want to replace from a tag to html content how do I add html content to the site I've written it takes her.fx:<p> hello world </p><p> hello...
View Article