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

Can not find compilation library location for package!

Hello: In my ASP .net Core 1.1 application that's using the .NET framework 4.6.2, I have references to my legacy .NET dlls.. say "XXXX.dll"Now, I upgraded my project to ASP .NET Core 2.0.0. I fixed all...

View Article


asp.net core on Ubuntu with Windows AD Auth

I want to setup server on ubuntu with my app, what use Windows Auth. All users works on Windows 10/7 Pro workstations on Domain.On IIS and WebListener on Windows host all works fine.Is any one know how...

View Article


Core MVC

Hi, I have created an Allowance table in my project.However I am unable to get the Create and Edit working for this table completly.The code is here - https://github.com/DotNetDS/Allowance.gitIf I add...

View Article

Consuming .NET Core API from a Framework Web App?

Hey there guys!Is it possible to consume an API made in .NET Core from a Framework Web App?I'm currently making a Web App using Umbraco for its CMS capabilities and I'd like to use an API made in .NET...

View Article

error CS7069: Reference to type 'AuthenticationOptions' claims it is defined...

I'm using Asp.net Core 2 and trying to add OAuth2 support, I'm following this example here: https://www.codeproject.com/Articles/1185880/ASP-NET-Core-WebAPI-secured-using-OAuth-Client-CreUnfortunately...

View Article


EFC Unittesting without InMemory Database using NSubstitute for mocking

For unit testing I want to use the more common way creating a mock for my DbContext. To get this working I created a FakeDbSet that implements DbSet<TEntity>, IQueryable<TEntity> and...

View Article

Migration Error - Not sure why

I have been working on this for a while, and this is the third migration I am doing.This is still an area I struggle with.  However in this case I am trying to update without deleting my database as I...

View Article

Razor Datepicker

I have this property [DataType(DataType.Date)] public DateTime Dob { get; set; }and the HTML for it is<label asp-for="PatReg.Dob" class="col-md-3 control-label"></label><div...

View Article


After my PC is upgraded to Windows 10, my web app is blocked from my web api

I have been developing a web application that communicate with my Web Core API via AJAX.After my PC has been upgraded from windows 8.1 to windows 10 it no longer does so.The error messages are letting...

View Article


Image may be NSFW.
Clik here to view.

Migration 1.1 to 2.0 : Scaffold multiple problems

Hi,I recently migrate from core 1.1 to core 2.0 on my ASP web project. I managed to make it work fine except for the Scaffold part, I personnalized the supplied templates for my 1.1 core project (they...

View Article

error while updating the database

Error Number:2714,State:6,Class:16 There is already an object named 'AspNetUsers' in the database.

View Article

Image may be NSFW.
Clik here to view.

Binding a Model multiple times

Hello,I have two models: Machine and Devices.The relation between them is: A Machine has a collection of Devices.How the PostAction should work: When the user creates a new Machine, he will also...

View Article

Not Helpful Error on Scaffold Request

I am trying to add a new controller to my existing application which VS decided to upgrade to 2017 from 2015 and since the update I am getting a very helpful error every time I try and run the tool to...

View Article


asp.net 4.7 route setup -> asp.net core 2.0 route setup

hi alli'm having a bit of trouble trying to setup the routes in a asp.net core project as i'm trying to port an existing .net 4.7 project acrossbasically i am trying to route every URL to 1 controller,...

View Article

populate a data transfer object from a related model

I have these two models,public class PatReg { public Int64 FileId { get; set; } [Required, Display(Name = "First Name")] public string FName { get; set; } [Required, Display(Name = "Middle Name")]...

View Article


asp.net core mvc - user specific fields edit with many dropdownlists and...

My Models:public class Profile { public Profile() { FieldStatuss = new List<FieldStatus>(); } public int ProfileId { get; set; } public string OwnerID { get; set; } public string Name { get; set;...

View Article

Can not find compilation library location for package!

Hello: In my ASP .net Core 1.1 application that's using the .NET framework 4.6.2, I have references to my legacy .NET dlls.. say "XXXX.dll"Now, I upgraded my project to ASP .NET Core 2.0.0. I fixed all...

View Article


CORE2 Changing Connection String from DBContext DI at runtime

The user connect using the regular ApplicationDbContext and now I want to set my other DContext => ApplicationDataContextto another Database based on what is the user role.The User1 may have to use...

View Article

Technology like React

I have never done an MVC type development but have decided that asp.net 5 is a great place to start.I read often about Javascript libraries like React and Angular but I don't know where they fit in...

View Article

Bootstrap Styling for DropDownList

I'm still learning .NET (and .NET Core), and am having trouble trying to style a DropDownList. So I was hoping someone can help point me in the right direction.Here's the (rough) code I've got in my...

View Article
Browsing all 9386 articles
Browse latest View live


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