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

Build Failed

O great! I followed instructions for building an MVC project according to Freeman's book "Pro ASP.NET Core MVC 2" (7th ed. APress), andwhen I typed this:> dotnet ef migrations add InitialI get...

View Article


Dashboard layout template in mvc core

HiAnyone can advise how to write a code in mvc core to create a dash board style home page. Is it possible to download dashboard template in mvc core technology to downloadPol

View Article


Request doesnot exist in the current context

HiIn my following code asp.net mvc core , Error message is coming 'Request doesnot exist in the current context'@if (Request.IsAuthenticated) 'Request doesnot exist in the current context'  . Please...

View Article

How to preserve previous screen state/results with ASP.NET Core 2 MVC/Razor...

Hi,I have an application using ASP.NET Core 2 MVC and Razor views, with some minimal jQuery. What I have trouble with is preserving contents from previous screens. I believe in older versions of...

View Article

my stylesheet reference is not working Error This localhost page can’t be found

HiI am using the following style sheet in my program in the folder <link href="~/Content/login/css/style.css" rel="stylesheet" />. But it always shows yellow colour and style is not working. When...

View Article


Insert into db from controller

Hello I have a controller action that uploads an image, how do I add an insert into an mssql db after the upload ? Thanks

View Article

AuthorizeAttribute usage on action without string parameter in asp.net core 2...

Hello!Please, give me simplest attribute usage like mvc 5 in which I can use FormsAuthentication.SignOut(); and FormsAuthentication.SetAuthCookie. I have read this article...

View Article

ASP.Net Core 2 Razor page error

Dear All,I get these set of errors each time I create and compile a new Razor Page in a web application project as follows:Severity Code Description Project File Line Suppression State Error CS0234 The...

View Article


Application variables and Lock Action Controller

Hello, i want to lock my action in controller, because in this action i read and write a .json file saved in my website.if action is "lock"  go in for loop with System.Threading.Thread.Sleep, there is...

View Article


EF Core 2.0 New Features

What are the EF Core 2.0 new features ? To separate Console Applications . 

View Article

requiring a certain date format in a field

How can I require a user to enter a date in a certain format on a view? I've looked online but haven't came across an answer yet.

View Article

why not to create table __efmigrationshistory for mysql

Hi all,I am using asp.net core 2.0  + entity framework core to create new project, the database is mysql. when I run the project and then it can automatically create an new database, but it  cannot...

View Article

ASP.NET Core 2 - What is the reason to use claim? Why not simply check...

Hello all!I have read this doc https://docs.microsoft.com/en-us/aspnet/core/security/authorization/claims but don't understand purposes of claim usage. Please, explain it.

View Article


Image may be NSFW.
Clik here to view.

What is different between preview and release Version of Visual Studio 2017

HiToday i downloaded "visual studio 2017 15.6  preview 3" and i don't know is it good version for make a project and sell it to a My Customer  Or I should download  "visual studio 2017 15.5.6 release"...

View Article

RedirectToAction - strange behaviour?

Hi,I have a message form sending a confirmation after successfully sent.//Redirect after successfull sending return RedirectToAction("Sent"); public IActionResult Sent() { return View(); }I can't...

View Article


Possible WebSocket/ntdll Bug Crashes dotnet.exe

I would post this in the issues of ASP.NET Core GitHub, but I wanted to post it here first to get some thoughts.I'm running an ASP.NET Core 2 site on Windows Server 2012 R2 in IIS 8.5.  The site can...

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


Image may be NSFW.
Clik here to view.

EF Core with an Existing Database Puy method does not work!

Hi All,I've applied this topic at this link:https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-dbbut for web api project and when I try to apply put method by using fiddler as...

View Article

outlook Rest API for ASP Core

Cansomeone point me to sample for outlook Rest API (ASP Core)? I have created theAzureActiveDirectory(B2C).I have the Application ID and Password. Afterthat, I am lost. 

View Article

ASP .NET Core 2 with Identity - Cookie Timeouts

I'm having difficulty getting a MVC web application to sign out when the user remains idle too long.  The desired outcome is that if the user is idle for X amount of time, they will be automatically...

View Article
Browsing all 9386 articles
Browse latest View live


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