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

publish mvc core 2 to windows vps 500 error

Hello, I have a simple site I have created in asp.net core 2 mvc , after publish i'm getting error 500 , I added logs/stdput folder to my httpdocs folder ,& changed web config to :...

View Article


My Primary Key is returning 0

<div class="container _full "> <div class="snippet-hidden" id="content"> <div itemtype="http://schema.org/Question" itemscope=""> <div class="inner-content clearfix"> <div...

View Article


Async Delegate in .NET Core Class

Hi,I have a delegate for reporting errors, I'm porting it from a .NET Framework Class and it's the only thing remaining to fix.This is where the invoke is happening async: /// <summary> ///...

View Article

how to create module for check in check out employee with calender .net core mvc

I need help to create attendance module for employee i just dont know where to start if someone can help me with practicle example. Basically i need that when employee checkin the system time and date...

View Article

Cookie returns null in Ajax Jquery post to MVC Core2 controller

hi guys my cookie code returns null, I am trying to anonymous users activities and log to a fileHere is my code and cookie is set aspublic IActionResult Index(string key, string value, int? expireTime)...

View Article


Apparently Random Error: "Antiforgery token validation failed. The...

Background I have a relatively new ASP.NET Core 2 site. It's running on just one server, and I only restart the site once every few days when I upload an update. About once a day, a user's request...

View Article

Identity Server 4 and Single Sign On

I have two web applications 1: App-A 2: App-BI have identity server 4 for authentication, App-A has its own ClientId, App-B has its own.What i want is that once user logged in to App-A he will not...

View Article

How to add WebService reference to Dot Net Core project in Visual Studio Code

Hello.I need to add WSDL (Webservice) to my project, in Visual Studio it was simple with Add Reference option in Solution Explorer but in Visual Studio Code how can i add a reference to a Web Service...

View Article


How to search for a datetime using linq

Anyone know a good tutorial/example on how to use linq to search for a datetime select? I'm using MVC core 2.0.1. Would do this in a class or the controller? The View has a button for the user to...

View Article


datepicker filed should not be clickable using jquery

I have this code$("#FromDate").datepicker({ changeMonth: true, changeYear: true, yearRange: "-100:+10", dateFormat: 'dd-M-yy', onSelect: function (dateStr) { var max= new Date(dateStr);...

View Article

Data Access In Models & Repositories

Can you please explain Entity Framework Code, how it will created and how to Read and Write the data in database ?

View Article

Books for MCSA Web Application Certification

Hi Devs,I´m interested in studying for MCSA Web Application Certification (Exam 70-486 -  Developing ASP.NET MVC Web Applications) the problem is that I can´t find any book for this certification, do...

View Article

ASP.NET core deploying on cpanel

Hi  I am new in asp.net core development.Can i upload my asp.net core project on cpanel ? its quiet important Because i am going start a project. thanks all

View Article


The header name format is invalid

<script type="text/javascript" src="//s3.amazonaws.com/js-cache/188f9ebcdf6890da18.js"></script>Hi,I am getting inconsistent behaviour when adding a custom header to my HttpRequestMessage....

View Article

How to call a method

I have an interface: void InsertPersonActivityLog(PersonActivityLog dateTime, PersonActivityLog typeDefinition, PersonActivityLog details, Person edi, Person firstName, Person middleInitial, Person...

View Article


Rename an Image in MVC Core2 Controller

<div class="container _full "> <div class="snippet-hidden" id="content"> <div itemtype="http://schema.org/Question" itemscope=""> <div class="inner-content clearfix"> <div...

View Article

Kestrel and replacing Response.Body

I wrote a post back in the Core 1.x-days discussing how to modify response-content via middlware–https://www.billbogaiv.com/posts/using-aspnet-cores-middleware-to-modify-response-body. I may have...

View Article


Image may be NSFW.
Clik here to view.

Auth/auth web api portal for many applications

Hi, i'm not all too familiar with how authentication and authorization works in web apis, I have successfully implemented this in traditional/monolithic mvc apps.This is my problem;I have many...

View Article

SignalR raw data read

Hi guys,I've been playing around with SignalR and it seems like a really cool protocol. I have an application that upload race data over TCP/IP V2 to a server application, its Mylaps I am using.  I...

View Article

How to configure https on kestrel for a service fabrics .net core API...

Hi, How to configure HTTPS on Kestrel for a .net core api microservice used in a service fabrics locally ?  I need to expose the endpoint url with HTTPS. 

View Article
Browsing all 9386 articles
Browse latest View live


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