Can I use Microsoft.AspNetCore namespace in my project.
Hello, I have a project that implements MVVM pattern. Project locates at my repository https://github.com/daviatorstorm/BibaViewEngine. I want to use Microsoft.AspNetCore namespace as a root namespace...
View ArticleHow to Get Body From Response in OnActionExecuted and ActionFilterAttribute
HII want to Get Body in OnActionExecuted from ActionExecutedContext and add Some Text or HTML To It and write again My Result to Response Body ///How Can I do It?? for Example : public override void...
View ArticleShow login page for every URL when not authenticated
My application needs users to be authenticated from the start. There is no public area. The very first thing that the user needs to do is log in. So this should be done right from the start page. It...
View ArticleProblem with ViewDataDictionary retaining model type causing error
I am working in AspNetCore 1.1. I have reviewed my code in my controller and view several times to make sure I am calling the correct model type. Controller public IActionResult Index() {...
View ArticlePartial View - Use a partial view from a view in one contreller, and partial...
Please help,I have a partial view in ASP.Net MVC 5, like this, and I need to use the same thing in ASP.Net Core:@{Html.RenderAction("LogEntries", "LogEntries", new { entityFormalNamePlural =...
View ArticleGenie - Code Generator
Genie is a code generator that can generate a data access layer for a ,net application . I did this as a side project. this is being used in some enterprise projects also...
View ArticleEF Core 2.0 Invalid Column Error from ASP.NET Core UserManager
Have started new ASP.NET Core 2.0 and EF Core 2.0 project. The project uses the built in Identity table schema. Every time I make any call to the built in UserManager that uses any of the Roles or...
View Article.net core 2.0 - access file on one server from another server.
I'm sorry if this has been asked before. I just cannot seem to find anything.In my .net core 2.0 project I have it running on IIS on one server (utvm06-06). When the project runs it needs to access an...
View ArticleASP.NET Core (2.0.3) - Unstable and inconsistent behavior (OOM using docker)
Hi!I have created a small asp.net core API, which has one endpoint that resolves OpenGraph tags and sends back its results.You can get the full source code...
View ArticleHow to rename controller
[?("HelloController")]publicSomeController:Controller{}I want to change the name of the controller. But their is not option to change the name of the controller
View ArticleHow can I add a database and a data model to a core 2 project
Hello, Im at my last challenge of the devu.com site I decided to look if I can do this with core 2.0 and some webforms because I did not learn razor till now. He uses webforms to learn c# So I made a...
View ArticleOData Data Service Support in ASP.NET Core?
Is there a way to build an OData data service in ASP.Net Core similar to how we'd build one in .NET Framework?
View ArticleHow to edit a recored that stores image address in a field
Hey guys.I am working on edit page, i have a table like this :Id, Title, ImageAddressint, string, stringall are required.I upload image in a folder and save its address in ImageAddress field.So i have...
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 ArticleCode Maps in VS 2015 on a ASP.NET 5 project
I can't see on my ASP.NET 5 project the code map options in context menu, and if I create a Code Map for my solution (which has more ASP.NET 5 projects), I can only see the projects (without...
View ArticleAccess dbcontext in custom class
Hello,I was trying to do some custom validation. and need to access dbcontext or usermanager in custom class. Can anybody help me to find the correct way of doing so.public class ExistingUser :...
View ArticleGetting Google profile pic by ASP.NET MVC Core 2 after login.
Good day every body,I could easily login with my Google ID in my ASP.NET Core 2 MVC app by GoogleAuthentication facilities, but now, I am so interested in getting the Google Profile especially the...
View ArticleConditional Middleware
If I have [Authorize] turned on for all controllers and methods via configuration and have a custom middleware that I have up and running as well.What I would like, is to make a particular middleware...
View ArticleSpecific Names For Arguments Only? [ public async Task OnPostDeleteAsync(int...
Hi,While learning the CRUD I find that the Delete works only when the OnPostDeleteAsync is carrying a variablenamed id? i.e. it works like the following example: public async Task<IActionResult>...
View ArticleHashAlgorithm : System.PlatformNotSupportedException error
Dear all, I am trying to work in the .net core 2 application, and trying to generate the HashAlgorithm object with SHA512The code is getting created without any errors, but at the runtime i am getting...
View Article