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 ArticleDashboard 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 ArticleRequest 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 ArticleHow 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 Articlemy 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 ArticleInsert 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 ArticleAuthorizeAttribute 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 ArticleASP.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 ArticleApplication 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 ArticleEF Core 2.0 New Features
What are the EF Core 2.0 new features ? To separate Console Applications .
View Articlerequiring 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 Articlewhy 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 ArticleASP.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 ArticleWhat 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 ArticleRedirectToAction - 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 ArticlePossible 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 ArticleApparently 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 ArticleEF 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 Articleoutlook 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 ArticleASP .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