Questions tagged [asp.net-core-1.0]

Use this tag for questions specifically related to ASP.NET Core 1.0, in addition to using the 'ASP.NET Core' tag. ASP.NET Core 1.0 was the first release of ASP.NET Core and was originally intended to be ASP.NET 5.

Originally planned to be ASP.NET 5, it was re-imagined as a fresh start during development and instead became a clean a clean break from the System.Web namespace that classic ASP.NET apps use. This is the first release of that work.

See the tag asp.net-core for more information or Microsoft Docs for even more details

880 questions
0
votes
1 answer

Saving and retrieving CreatedBy User information with EF7, MVC6, ASP.NET Identity

I am using the latest MVC6 and Entity Framework 7, however I am sure many techniques used in MVC5 and Entity Framework 6 could help answer my question also. Almost all of the tables in my database have the following 4 fields for auditing: …
Blake Rivell
  • 10,899
  • 23
  • 93
  • 182
0
votes
1 answer

Custom route constraint causes intermittent 404 errors

I have an Asp.Net Core 1 RC1 application that uses a custom route constraint to control access to the application. The application (hosted on a server running IIS 7.5) is getting intermittent 404 errors which I suspect is caused by this routing…
BruceHill
  • 6,435
  • 6
  • 55
  • 106
0
votes
0 answers

Get all domain types with .net core

How can I get all types in .net core (ASP.NET MVC 6) AppDomain? I found some examples: https://github.com/dotnet/coreclr/issues/919 but they seems to be outdated.
amergan
  • 297
  • 2
  • 4
0
votes
2 answers

ASP.NET Core 1.0 custom compression middleware and static files issue

My startup's middleware configuration looks something like this: public void Configure(IApplicationBuilder app) { app.UseCompression(); app.UseIISPlatformHandler(); app.UseApplicationInsightsRequestTelemetry(); …
Dave New
  • 34,265
  • 48
  • 183
  • 366
0
votes
1 answer

Recommend way to make a UI middleware in aspnet core 1

I am trying to make a UI middleware and wanted to know what's the recommended way to go about it. Should I do a AddMVC again in my middleware and give it a custom route or go by embedding resources. I tried to make a MVC inside my middleware and I…
Muqeet Khan
  • 1,894
  • 1
  • 16
  • 26
0
votes
1 answer

Which should I use: Microsoft.Extensions.Configuration OR Microsoft.Framework.ConfigurationModel

I have an ASP.NET Core app and I'm currently using IConfiguration interface from Microsoft.Extensions.Configuration. Looks like IConfiguration interface is also available through Microsoft.Framework.ConfigurationModel. Which one am I supposed to…
Sam
  • 19,814
  • 35
  • 141
  • 272
0
votes
1 answer

I am creating a Table setting Maxlength = 5 for a column and its created with length = 1

I have the following table being created (by using DNX commands in EF7, now EF Core) [Table("FishGrade")] public partial class FishGrade { public FishGrade() { FishPrices = new HashSet(); } [HiddenInput] …
0
votes
1 answer

Custom TagHelpers in ASP.NET MVC6 & EF 7

Here's my codes: _ViewImport.cs @using BFcMVC @addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers" @addTagHelper "BFcMVC.TagsHelpers.TagsHelpers, BFcMVC" BFcMVC.TagsHelpers: using Microsoft.AspNet.Razor.TagHelpers; namespace BFcMVC.TagsHelpers { …
0
votes
1 answer

Implementing custom authentication provider in ASP.NET 5

I'm trying to implement my own version of JWT Bearer authentication on top of ASP.NET 5, without referring to any existing JWT token handler classes. It's my exercise to understand internal mechanism of authentication and authorization. I have a…
kosmakoff
  • 228
  • 2
  • 12
0
votes
1 answer

ASP.NET Core 1.0 Global exception handler in console application (DNX)

I'm trying to handle unhandled exceptions in asp.net 5 console application but I can't seem to catch these errors using the code believe. As soon as the exception is thrown the code breaks. Is there any way in a dnx app to catch unhandled…
DotnetShadow
  • 720
  • 1
  • 10
  • 27
-1
votes
1 answer

How to create and download a zip file in ASP.NET Core?

We need to bundle a multiple files in a Zip format and download it. Could you please suggest a way to do this in ASP.NET core without using any third party libraries. In ASP.NET MVC we can achieve this using…
BALA MURUGAN
  • 1,105
  • 3
  • 11
  • 16
-1
votes
2 answers

netcore.app - no compatible framework

I have a web application set with Target framework .NETCoreApp1.1 It works when I run locally, but when I publish to the server (I'm working remotely and can't web publish - instead I publish to file system, zip the file and extract on the…
Kevin M
  • 442
  • 3
  • 10
-1
votes
1 answer

How to use mvc routing url formate in .net core 1.0?

In .net core, is it not possible to use mvc routing? I used this: app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Landing}/{action=Index}/{id?}"); …
nayan chowdhury
  • 245
  • 8
  • 24
-1
votes
1 answer

Can not install angularjs in .net core Visual Studio 2015

i am trying to install angularjs in asp.net core but it is shows dependencies(Restroing...)
-1
votes
1 answer

When i Delete Home Component :An unhandled exception occurred while processing the request

i using this template for using angular 2 and asp core in visual studio 2015 . Template i Deleted Fetch Data and Counter Component,it not Problem and it's Work Fine , But When i Delete Home Component it show Me This Error : An unhandled exception…
1 2 3
58
59