Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

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 Article


Where 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 Article


app.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 Article

unable 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 Article

Can 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 Article


How 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 Article

Unload 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 Article

Help 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 Article


View 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


Image may be NSFW.
Clik here to view.

“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 Article

Incorrect 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 Article

ASP.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 Article

DI 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 Article


dotnet 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 Article

Confused 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 Article


How 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 Article

Site 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 Article


Making 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 Article

Default 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 Article

ByPass 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
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>