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

Identity not working with MySQL

Hello, i have a problem working with Identity using MySQL, when the program enter the _userManager.CreateAsync(newUser, userModel.Password); line its from Identity, it always give an error: "connection...

View Article


Authorization with JWT

Hi,I would like to use JWT for webapi but would like to find out if there is a way not to use the traditional username and password for login.My idea is to use a generated PIN number to replace...

View Article


ViewData and ViewBag

I know this has probably been talked about alot around here, but I'm always confused about this.So I want to be able to show a message to the users of my app when something has happened or an action is...

View Article

Object reference not set to an instance of an object - Sort of Error

I was having a look at why scaffold option is missing from my controllers options and found some information on additional references I didn't have in my references.  Added and updated to remove...

View Article

What is meant by .NET Core plugin , what is its download link and name. Regards

What is meant by .NET Core plugin , what is its download link and name.Regards

View Article


EF Core 2.0 Cannot specify primary key for model

It could very well be trivial, but I can't see what's missing in the following snippet:using System; using System.ComponentModel.DataAnnotations; namespace Intro.Models { public class Todo { [Key,...

View Article

Static assets are not loading while hosting an ASP.NET Core application

Hi Folks,I have hosted an ASP.NET Core application in IIS by following this article and I face some challenges while browsing the application after hosting.Static assets (Styles , Java script files)...

View Article

Concatonate values to the subject of eamil, instead of write to file

Hi,    if I press a link to create an email form one page (PLC Blocks).Which runs an email function in the Home Controller.How can I concatonate PLC Block table record values into the subject?Like -...

View Article


ASPNetCore MVC interferes with Let's Encrypt installation/automatic renewal

See this post :: http://www.westerndevs.com/Tools/Lets-Encrypt-ASPNET-Core/The developer had to create a "WellKnownController" to be able to handle Let's Encrypt Installation.My issue :: I can't use...

View Article


get referrer UseStatusCodePagesWithRedirects

When a user goes to a non existing page, I refer to the standard login page :public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) {...

View Article

Could not load type '' from assembly 'mscorlib, Version=4.0.0.0,...

I have added project of version 4.5 in Asp.Net Core 1.1. There was compatibility issue then I have installed packageInstall-Package Microsoft.NETCore.Portable.Compatibility -Version 1.0.1 After package...

View Article

Develop simple app in asp.net core

Hii need to create simple application to create in Asp.net Core ( Web API) which receive some data's from the client then manipulate the data's then send back to the client.Should develop in windows...

View Article

deploy the mvc app

i just created simple test mvc application with visual studio code , i don't know how to deploy it on the server machine?can i deploy this app like asp.net web site or need to follow some special steps...

View Article


Object array in Wep Api

Hi folks,In Console App:Staic Void(.....){ // rest omitted while (ienum.MoveNext()) { LdapAttribute attribute = (LdapAttribute)ienum.Current; string attributeName = attribute.Name; string attributeVal...

View Article

Link pointing to other site don't work

I have a simple link that does not work. Clicking on it defaults to adding the linkt to the current controller directory:the @Model.Webside is just a string with a website adress. like...

View Article


JSON Models with Children

I'm still learning .NET (and .NET Core), and am having problems wrapping my brain around something. So I'm hoping someone can give me a nudge...I'm trying to return some JSON data from a Controller...

View Article

Image may be NSFW.
Clik here to view.

Possible to hide Key and Value display in Json?

Hi folks,Here is my code:List<KeyValuePair<string, string>> attributeList = new List<KeyValuePair<string, string>>(); while (ienum.MoveNext()) { string attributeName =...

View Article


Choosing MVC 5 OR Core 1.0 OR Core 2.0

Friends,We will be planning to create ASP.NET MVC applications on-premise then moving to Windows Azure using Visual Studio Team Services.Our objective as below.1. Calling restful web services 2. SAML...

View Article

Step through records of a table

Hi,    how to step through the records of a table and write concatonation of each record to seperate line in body of email.Thanks,

View Article

call AntiForgeryToken api

hi i have created no authentication asp.net core mvc app, i added api controller,  tested using postman working fine then i enabled AntiForgeryToken after this i can't consume the api from postman ....

View Article
Browsing all 9386 articles
Browse latest View live


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