dnx

VS2015 ASP.NET 5 beta7 dependency could not be resolved

荒凉一梦 提交于 2019-12-24 03:51:13
问题 This is a follow-up to this question. I started with an Empty ASP.NET project in VS2015 community, tried to add a couple packages based on a tutorial, and haven't gotten it to actually work yet. The initial problem in the linked question was due to some project dependencies using beta5 and some using beta7 . Matching those up solved that, but now I get this error when I try to run the project in IIS Express: Could not load file or assembly 'Microsoft.Dnx.Host.Clr' or one of its dependencies.

Self-hosting ASP.NET 5 within .NET 4.5 Application (without DNX and IIS)

孤人 提交于 2019-12-24 03:30:41
问题 Is it possible to add an ASP.NET 5 Web Application as a reference to a traditional .NET 4.5 project (Windows Service or Console App) and start it in-process? Ideally within one solution, so that ASP.NET application and host service can share references to other projects in the same solution. Tried so far: dnu publish produces packages, but attempting to add them produces following error: Install-Package : Could not install package 'WebApplication1 1.0.0'. You are trying to install this

Missing/changed API when migrating from DNX to ASP.NET Core 2.0

心已入冬 提交于 2019-12-24 01:55:33
问题 I have been working on migrating an application from obsolete DNX to ASP.NET Core 2.0. While doing so it found that there has been few changes in the namespaces and APIs like Microsoft.AspNet to Microsoft.AspNetCore . Though I have been able to find and fix most of the changes, the below one is causing issue for me: In class inherited from Route , within RouteAsync(RouteContext context) method, with DNX it was context.IsHandled = true; , how do I signify that this has been handled now with

Missing/changed API when migrating from DNX to ASP.NET Core 2.0

泄露秘密 提交于 2019-12-24 01:55:16
问题 I have been working on migrating an application from obsolete DNX to ASP.NET Core 2.0. While doing so it found that there has been few changes in the namespaces and APIs like Microsoft.AspNet to Microsoft.AspNetCore . Though I have been able to find and fix most of the changes, the below one is causing issue for me: In class inherited from Route , within RouteAsync(RouteContext context) method, with DNX it was context.IsHandled = true; , how do I signify that this has been handled now with

ASP.NET 5 (RC1) Bad Gateway: The specified CGI application encountered an error and the server terminated the process

此生再无相见时 提交于 2019-12-23 12:44:46
问题 I am running an ASP.NET 5 project in an Azure Web App. When calling on an API endpoint with a file (form-data) of about 1.5mb or larger, I get a 502 Bad Gateway with the follow message in the reponse body: The specified CGI application encountered an error and the server terminated the process. The strange thing is that when uploading a smaller file, the call works fine. It seems to produce the 502 at around the 1.5mb mark, but it's not entirely consistent. I am using ASP.NET 5 RC1. In

Dnx 4.5.1/Dnx Core 5.0 Ambiguous reference

感情迁移 提交于 2019-12-23 12:39:34
问题 In many projects that I and others I have there is an Ambiguous reference error that pops up if i use an object that is apart of a different asp.net5 project. Funny enough it still compiles and works but there is no intellisense and my code is covered in red lines. An example of this is I have a Tests project pointing to my MVC project. When i try to create a new instance of XController, it will show an error that it doesnt know which XController to use the DNX 4.5.1 or DNX 5.0. I am aware of

ASP NET Core Serving specific html page

这一生的挚爱 提交于 2019-12-23 09:24:04
问题 I have this middleware: public class SpecificPageMiddleware { private readonly RequestDelegate next; public SpecificPageMiddleware(RequestDelegate next) { this.next = next; } public async Task Invoke(HttpContext context) { if (this.IsSubDomainRequest(context.Request.Host.Value)) { if (this.IsIndexRequest(context.Request.Path.Value)) { await this.ReturnIndexPage(context); return; } } await this.next.Invoke(context); } private bool IsSubDomainRequest(string host) { return host.StartsWith(

Locals missing during debugging in Visual Studio 2015

。_饼干妹妹 提交于 2019-12-23 07:22:05
问题 Issue Locals only displays this variable while debugging, other local variables are not available in Locals or Watch but can be re-evaluated in Intermediate Window in Visual Studio Brief I'm debugging an Xunit test for some code I am writing. The library I am testing targets ASP.NET Core RC1. Here is my project.json : { "authors": [ "Matthew Abbott" ], "commands": { "test": "xunit.runner.dnx" }, "description": "Provides tests for the Fx.Content.Composer package", "dependencies": { "xunit": "2

How to point to a different project.json location in a .NET Core PCL?

▼魔方 西西 提交于 2019-12-22 11:37:16
问题 Say you have a .NET Core PCL that's supposed to compile for multiple platforms. Since csproj-based projects only support compiling for one platform at a time, you can't have a shared project.json . Thus, your directory structure looks like this: LibFoo | ---- LibFoo.csproj | ---- Platforms | ---- net45 | | | ---- project.json | ---- netcore451 | ---- project.json You also have two MSBuild target platforms: Net45 and NetCore451 . When building for Net45 you want to include the project file in

DNX (rc1) web command does not working

被刻印的时光 ゝ 提交于 2019-12-22 08:23:03
问题 I have troubles with running MVC6 application. Project builds well, no errors, packages are loaded correctly ( no errors due restoring) Here is my global.json code. As you see, both dnx versions in app and on machine are the same Sure, I am using VS2015 with WebTools-beta8 and DotNetVersionManager-beta8. This is part of my project.json: "commands": { "web": "Microsoft.AspNet.Server.Kestrel", "gen": "Microsoft.Extensions.CodeGeneration" }, "frameworks": { "dnx451": { } }, "exclude": [ "wwwroot