how to create module in asp.net core 2
Hello.I am working with dotnet core and I need to create modules like nuget package or dll to use it in my projects.Let me explain, for example i need menu in all projects and I want to create it like...
View ArticleDevelopment in docker - dynamic compiling
Hello What is the best way of setting up a development environment using .net core and docker? From the examples I've seen, it seems that you have to redeploy everything everytime you make a code...
View ArticleProblem with Routing in MVC Core 2
I have a call @Url.Action("index", "Controller", new {id = 1}) After if concludes, I am calling @Url.Action("Index", "Controller") This method should run with a null id parameter but it is retaining...
View ArticleRemember the email a User signs in with
I have a login page in Asp.Net Core with two simple fields like so:<form method="post" asp-action="SignIn" asp-route-returnUrl="@Context.Request.Query["returnUrl"]"><img class="card-img-top...
View ArticleAdd Controller Error..... Visual Studio 2017 Asp.net Core...
I am unable to add a controller to my project please help me resolve this issue. It's a new project very little code added and I am unable to add new controller.This is the error message, please...
View ArticleIdentity of user and group
I'm just getting started with ASP.net and Identity, I used to develop with PHP. I currently have a database with a Users table and a Companies table. This is a stock system that has about five...
View ArticleVSTS publish project using Docker
Hi,I recently tried to use docker on my VPS server (Debian stretch) to publish my asp project.I have three containers linked by docker-compose :my asp core project + kestrel nginx exposing my project...
View ArticleHelp please..connect or access the connection string in startup...
Please help me solve this issue...How to I access my Asp.Net Core Startup file so for database connection from my Service Contract Class Library?public partial class WebApp_Entity : DbContext {...
View ArticleCachmanager how to d0 couchbase json bucket configuration
Hi , could you please help me , I am using cache manager from (http://cachemanager.michaco.net) how to do json configuration for Couchbase , We are trying to connect couchbase buckets using dotnet...
View Articlehow to generate anti-forgery token in api?
so I followed the instructions here and this what i did so far in my startup.cs services.AddAntiforgery(options => { options.HeaderName = "X-XSRF-TOKEN"; options.SuppressXFrameOptionsHeader =...
View ArticleHow to increase ajax data post limit in .net core
In .net core web application, when the ajax post data is larger, the ajax post throws 404 error. Is there any possible way to send more data through ajax by increasing its limit. Same ajax code...
View ArticleManage IIS App Pools with PowerShell
I am working on an ASP.NET Core project which automatically publishesASP.NET Core sites with PowerShell script. I need to stop and startIIS Application pools of the projects that my website publishes...
View ArticleReplacing FilterAttributeFilterProvider in MVC Core
I'm attempting to implement a filter against the FilterAttributeFilterProviderinterface but find it is missing in MVC Core 2. I've installed Microsoft.AspNetCore.Mvc -Version 2.0.1 and...
View ArticleThe specified framework was not found.
I have a app configurated in ASP.net Core 2.0.3.Publishing, the log file returns: The specified framework 'Microsoft.NETCore.App', version '2.0.0-preview3-25518-01' was not found. Look my file...
View Articlemap all responses to a custom model?
hi in asp.net web API I have been used message handlers to map all API responses to a custom class for example: public class ResponseModel { public object Result { get; set; }...
View Articlehelp setting up ui-bootstrap datepicker in aspnet core
I am attempting to follow the installation pattern at: https://angular-ui.github.io/bootstrap/For me, it doesn't work, the DateTime picker is not showing up.I think (pretty sure) it is my angular...
View ArticleGenerate PDF on server side
Hi, I want to generete PDF on server side. I`m looking for free solution, the biggest problem is that many libraries(e.g. iTextSharp or PdfSharp(for core) ) doesn`t work with asp.net core preview2, so...
View ArticleResource-based vs Custom-Policy-based authorization
Hello, I'd like to know the best approach to solve my problems with authorization.I've got the following non-trivial schema/models (let it be):Asset * -> 1 Site * -> 1 Company * <- 1 Contact *...
View Articlepopulate username and date in 'create' page
I have a 'comments' form in my asp.net core 2.0 MVC application. I want the username in the 'Create New Comment' page to be populated w/ the logged in user. (User must register and log in to post new...
View ArticleApplication Insights Not Running In Local Mode
Hi,While following the beginners' course on MVA I came to know about Application Insights being available for running in local mode. Upon adding the same to my sample project I was surprised to find...
View Article