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

aspnet 5 dependency injection

Hi,i know this might sound a bit daft, but everything i read about dependency injection is around the controller, if i wanted to use dependency injection within my models does anyone know if its...

View Article


How to configure Asp.Net 5's Web Api to only accept Json data

How to configure Asp.Net 5's Web Api to only accept Json data?

View Article


Classic ASP Support

I have inherited a very large application which is HTML/Ajax with a Classic ASP backend for handling the Ajax API requests.I want to convert this application to an ASP.NET app for many reasons; to...

View Article

Dependency Injection with ASP.NET 5 WebAPI and Class Libraries (.csproj)

I have a VS2015 solution in which I have a ASP.NET5 WebAPI project and three class libraries (.csProj).Class Library 1 has reference to Class library 2 and Class library 3.In class Library 2 I have...

View Article

In ASP.NET 5, .csproj class libraries not outputting the .dlls in the...

I have VS 2015 solution in which I have added some .csproj class libraries some of them are already existing projects and are used in other solutions (VS2010).The output path for .csproj Class...

View Article


[beta 8, MVC 6] Show message after update?

Hi!This should be fairly easy but I cannot find the best solution.Problem: I want to show a message after I have updated a object in my database.My setup: I have a page where the user can click on the...

View Article

First shot at web app : Unable to load application or execute command...

"Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web."I get the above error after creating a project from the command line (first time, just tring...

View Article

Beta 8 DNX 4.5.1 Reflection.Extensions Error

Hi All:I have been testing with beta7, trying to move to beta8.  I am getting the following compile time error:The dependency System.Reflection.Extensions 4.0.0 in project <project name> does not...

View Article


Vb.net 2008 & aps.net & Login web control

Hi,I have a page which i have added web login control. Based on the windows log on user name, the system picks the username and  display the name on the username textbox. When i try to put some default...

View Article


Beta8 - DNX - Error starting IIS Express

When creating a new ASP.NET 5 Web Application with beta8 and starting IIS Express there is an error message telling me:"An error occurred attempting to determine the process id of the DNX process...

View Article

Is it possible to Install Beta 8 project as WebApplication not as Web Site

HiIf I install my application as WebSite like describe here : https://docs.asp.net/en/latest/publishing/iis.html everything works fine.IIS + MyWebSite (type = Website , physical path = wwwroot)But if i...

View Article

Accessing resources from non-DNX assembly Cause Exception...

Beta 8 load resource assembly cause exception System.IO.FileNotFoundException. The resource assembly is defined in legacy .NET class library, not DNX class library. The same solution works for Beta 7...

View Article

How include EntityFramework Database first to a new asp.net 5 site

Hello,I started to use a new asp.net 5 framework but i can't to include EF DB first model.What should I do?Thanks

View Article


Can't build a default ASP.NET 5 web application because of DNX reference errors?

Downloaded VS2015 Enterprise hoping to try ASP.NET 5 but I can't even build a default web application project because of all the reference errors in DNX 4.5.1 and DNX Core 5.0.I try to build the...

View Article

Architecture looks

Hello, Wondering how the architecture looks like based on changes in ASP.NET MVC 6. I'm using ASP.NET MVC 6 with razor view => consuming WebAPI => consuming Business Layer project => consuming...

View Article


Accessing Cookies from Base Controller Constructor (getting at Context)

I have a base controller that I am using to get information out of a cookie, however the Context object is null in the Base Controller constructor and the System.Web.HttpContext.Current is gone in...

View Article

x64 IIS Express after update to beta 8

I have a solution in VS 2015 Pro with 2 projects, one was running beta5 and the other WebApi 2.Both x64 and no problems launching in IIS Express x64.I updated to beta 8. Web Tools and version 1.2 of...

View Article


Image may be NSFW.
Clik here to view.

Why DNX Core references all error my Visual Studio

Hi I just start to use Visual Studio2015, I found all references in framework DNX Core 50 not working,  I think it's some environmental setting issue in my computer. So how to fix this?

View Article

Views in another assembly (as shared components)

Hello,I searched a lot for this but I could not find a simple way to do this. There is another thread with similar subject but I could not reply to that for asking this.I'd create some multi-tenant app...

View Article

Package Manager options in VS Code

Hi,Is there (and if so where?) a place in VS Code to set your package manager options?If there is (or an alternative way to set) can one set say the nuget server to a different one that's used by...

View Article
Browsing all 9386 articles
Browse latest View live


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