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 Articleasp.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 ArticleCore 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 ArticleConsuming .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 Articleerror 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 ArticleEFC 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 ArticleMigration 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 ArticleRazor 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 ArticleAfter 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 ArticleMigration 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 Articleerror while updating the database
Error Number:2714,State:6,Class:16 There is already an object named 'AspNetUsers' in the database.
View ArticleBinding 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 ArticleNot 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 Articleasp.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 Articlepopulate 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 Articleasp.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 ArticleCan 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 ArticleCORE2 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 ArticleTechnology 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 ArticleBootstrap 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