Entity framework core : particular many to many relation
Hi,I have the following Model class :public class Terminal { public int id { get; set; } public string serialNumber { get; set; } public string model { get; set; } public virtual...
View ArticleConvert HTML to Image or PDF.
Hi,Could you give me an advice how can I convert HTML to Image (JPEG or PNG) or PDF?I read something about wkhtmltopdf but I don't would like to install any tool (if it is necessary I will install)....
View ArticleUncaught Error: Bootstrap tooltips require Tether
I've created an ASP .Net Core 1.1 MVC web app, and I notice that when I run it, and I look at the developer tools in my web browser (F12), it complains about this:Uncaught Error: Bootstrap tooltips...
View ArticleViewComponent not rendering using TagHelper
I'm in the process of getting to grips with ASPNET CORE [version 1.1, using VS2017 Community, version 15.1 (26403.3)]I've created a working ViewComponent calledUserDetails (abbreviated...
View ArticleMultitenancy
Hi, has anyone had experience of setting up multitenancy?i.e. so clients can set up an account automatically and database tables are created for them?Thanks,
View ArticleUsing Bearer/Jwt authorization without use of Entity Framework
I'm want developing a Web API with .Net core api 1.1 and reading some documents about Web API realize I need Bearer authorization. After searching I can't find any document or sample that use...
View ArticleMultiple applications .NET Core Centos 7
Hi.I have configure a centos 7 server to run .NET Core applications. With one application works well. Can I start more than one application at same a time? Thanks.
View ArticleDisplaying object ToString() value in View
I have an ASP .Net Core MVC 1.1 web app. In it, I have a view - Details.cshtml which simply displays a selected record:@model InspectionsData.Models.House @{ ViewData["Title"] = "Details";...
View ArticleVisual Studio 2017 and dotnet restore
I'm building an ASP Core MVC app in VS 2017. I have libraries organized in solution folders. Anyway, every time I add a project library through solution explorer, I have to CD to the project...
View ArticleAssembly Information - Under Project properties
HiI am new to this and found out that under application properties we can save the release information of the project under assembly information.Major version,Minor Version, Build number, Revision.I am...
View ArticleWhere do I find ServerVariables("REMOTE_USER")?
I used Request.ServerVariables("REMOTE_USER") in classic ASP to get the id of the logged in user. I can't figure out where to get the information in ASP.NET Core. I've reviewed the HttpRequest class...
View ArticleIs it possible to share Session object between ASP.NET (4.6) and ASP.NET CORE
Hi all I'm working with a Webforms app (framework 4.6.2) and the idea is to migrate to ASP.NET CORE. Before this we need to think how we can share the session between both platforms. Now I'm using SQL...
View ArticleAuthentication and Authorization in ASP.Net Core, specially in Active Directory
Hi All,How we gonna implement authentication and authorization in asp.net core, Admin group user able access all pagesSpecialized group user able to access only mapped page.Need to navigate error page...
View ArticleCookieAuthentication stopped working
This was working fine in my application last week (I deployed it to a server last week and that version is working fine), however it's not working in Visual Studio now.In startup.cs I have :...
View ArticleHow on Earth do I reference a class library in my ASP.NET Core project?
Hi all,I'm having trouble getting my head around how project.json works, and the limitations. My setup is:Xamarin Client Model.dll (.NET 4.5.2) ASP Core Web API I'd like to reference my Model.dll so...
View ArticleHow to set up .net core in RHEL7 offline mode
This is for a company offline RHEL7 server, no internet access.Does any one know how to set up .net core in this case?Thanks
View ArticleMissing type/namespace in ASP.NET Core MVC
I've created an empty ASP.NET Core Mvc project in visual studio for Mac, added a few dependenciesMicrosoft.AspNetCore.Mvc (1.1.2) Microsoft.AspNetCore.Mvc.Core (1.1.2) and also imported the namespaces....
View ArticleEdit Blog, moving on or tryig to.
Hi. I am new to MVC Core. I have been attempting to get an edit blog working. The code is at - https://github.com/DotNetDS/CoreMVC10052017a.gitIf I type in http://localhost:50260/blog/edit/1,2,3 etc....
View Article.Net Core Scaffolding - Timeout expired. The timeout period elapsed prior to...
Can anyone suggest why I get the following when trying to reverse engineer the models for a .Net Core Web API? The Scaffolding text does not throw an error if the database is small.Scaffold-DbContext...
View ArticleASP.Net Core Publish: HTTP Error 500.19 - Internal Server Error
Hi All,I created ASP.Net Core application(Windows only), got below server 500.19 response while accessing signed package from Windows server. I used Windows Server 2008R2, It works in my Windows 7 IIS...
View Article