Access to configuration without dependency injection
I was wondering if there was a way to access Configuration (Microsoft.Extensions.Configuration) without the use of dependency injection. Only examples I see are through constructor injection (using...
View ArticleWhere can I get the new Identity Database for ASP.Net Core 1.0?
Hello,I'm building a fresh ASP.Net Core project with Authentication (Identity). I have to generate the old Authenticate table taken from my ASP.NET 4.6 web application.I run the Core project and select...
View Articleapp.UseDeveloperExceptionPage(); not working
I have a clean ASP.Net Core Project but the middleware UseDeveloperExceptionPage() is not working at all,If I request a non-existing url, the page is blank. :(I have to add another middleware...
View Articleunable to see design
i m not able to open the design of my website..i have created a design of my website feww week before.becoz of some reasons i formatted my laptop n installed again visual studio but not able to open...
View ArticleCan I do “dotnet watch” for Asp.Net Core web application targeting “dotnet...
Looks like "Microsoft.DotNet.Watcher.Tools" is compatible with only application targeting framework (.Net Core).I have a asp.net core web application (web api) that target framework (dotnet 4.6.1), Is...
View ArticleHow to use Web Grid in asp.net core 1.0
Hi, I want to use web grid in asp.net core 1.0, please give me a solution how to use it.Regards,Prabhu
View ArticleUnload dynamically loaded DLL in runtime
Hi guys, i searched a lot off site to resolve my problem but i didnt see good result.Since when AppDomain disappear i dont know how to unload dynamic loaded dll.Successfully i loaded dynamic assembly...
View ArticleHelp understanding runtime identifiers (RIDs)
When I publish a project I can specify a RID (in fact, it appears, since I am targeting net452, one is defaulted (win7-x64) if I do not choose one). I have a few questions about RIDs and...
View ArticleView Model classes not updated in azure
My site is down now as I have updated RegisterViewModel and tested it locally and it worked fine. I added a new field 'Notifications' however after publishing to azure my site crashes with the...
View Article“Include in project” option missing for Asp.Net core project
I've created an Asp.Net core project in VS 2015 Update 3 and added 'twitter bootstrap' using npm. When I tried to include "bootstrap" folder into project, I couldn't find "Include in project" option in...
View ArticleIncorrect version of jQuery
I have created brand-new ASP.NET Core Web Application with standard template (File ->New -> Project -> .NET Core -> ASP.NET Core Web Application). I decided to update jQuery with Bower...
View ArticleASP.NET Core and log4net
I have been using log4net for the last 7 years and I can say I am totally satisfied. I started working on an asp.net core project and I want to use it as well but I cannot find any example. Does anyone...
View ArticleDI in webapi: InvalidOperationException: Unable to resolve service for type X...
Am I doing this right? Looking at the source, it seems that the configure extension function calls ServiceCollection.AddInstance so I'd be able to use the class for DI?startup.cs:publicvoid...
View Articledotnet watch with webpack
Does anyone know if I can use dotnet watch with webpack in one process? IE I want my dotnet watch to run webpack on each rebuild and restart. I am using preview 4 and the csproj project format. For...
View ArticleConfused on Service Start Calls and Defaults
In the latest .net Core (1.0.0-preview2-003131), I'm confused about the services that get started and also what their defaults might be.In specific, I notice that on a new core web project, AddMvc() is...
View ArticleHow to use *.js files in views folder?
Hello,I want to have my view/partialview specific JavaScript Code files in the same Folder as the *.cshtml files but this is not permited (Error 404)how to allow the Access to that *.js files in Views...
View ArticleSite running issues, nuget packages... I'm totally lost...
Admittedly I am a newb but tried looking for the solution to this with no luck and/or I just don't know what I'm doing so I need help. I recently started a new project going from a MVC 5 website to a...
View ArticleMaking a site resolve as HTTPS instead of HTTP
This has changed from MVC 5 and I have another thread where I did this but ran into (what i think are unrelated issues) so now I'm hesitant to modify again but where do I do this in .net core? Just...
View ArticleDefault one-many pattern
Dear readers,After reading and reading I still can't figure out what to do.For simplicity, I will use an example:I have a Sql invoice table and an invoiceItems table.With the great work of the MVC and...
View ArticleByPass SSL validation check in ASP.NET core
Hi All,I'm correctly working on Hybrid cloud scenario. I have a few apps hosted in on-premise cloud foundry. I have created the app in asp.net core. The Cloud foundry is using self signed SSL. Since...
View Article