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

How to upload photo and add it in the database and save a file in the web...

// PublisherInfosRepositorypublic class PublisherInfosRepository { private readonly ApplicationDbContext context = new ApplicationDbContext(); private readonly IApplicationEnvironment _appEnv; public...

View Article


Unable to uninstall RC2

I am enlisted in a project where I don't own the project files. I have updated from RC1 to RC2 but in the course of this found I could not load the XProj. So I wanted to uninstall RC2 and reinstall...

View Article


Basic doubts about ASP.Net Core

I'm new to ASP.Net Core 1.0. Here is my understanding about this brand new technology. I just want to check my understanding is correct :1) If you want to create "Cross Platform" ASP.Net web sites, you...

View Article

Developing a REST API - best practice for structure and routing?

Hi all,I'm developing a simple RESTful API as a prototype.At the moment I have only 3 repositories:Clients (/api/clients) Sites (/api/sites) Cables (/api/cables) A client can have many sites (physical...

View Article

Where are the Linux downloads?

A few days ago I found a website that offers an NGINX module for running ASP.NET Core, and a note just below that that says Apache isn't currently supported. Did anybody see that web page recently? I...

View Article


Any linux hostings for asp.net core rc2

Hi everyone,I've tried with some small samples with asp.net core rc2.I wonder if there is any linux hosting for asp.net core rc2 or not, and how to deploy the website.Can anyone help me please?Thank...

View Article

Targeting ASP.NET Core RC1 from RC2?

Hello,I have installed ASP.NET Core RC2 but I need to create a project targeting RC1 for components compatibility that currently does does not work with RC2.Is this possible to do?Thanks,Asaf  

View Article

Can asp.net core rc2 project be published on IIS?

Can asp.net core rc2 project be published on IIS?

View Article


serviceProvider.GetService DbContext in console app

Hi,I am trying to use DI with a console app.  The Identity migrations work fine.  However, serviceProvider.GetService for my own DbContext does ever call OnModelCreating, to add the DbSets to the...

View Article


XmlTextWriter could not be found

I made an application before rc2, and to migrate it I have this errorXmlTextWriter xtw = new XmlTextWriter(xmlPathFactura, Encoding.UTF8)the error saysthe type or namespace name 'XmlTextWriter' could...

View Article

Deploy in Docker

Is it possible to deploy below ASP.NET 5 version? I have installed all pre-req tools and i am able to deploy with ASP.NET 5 Core project but not regular projects below the ASP.NET 5

View Article

ASP.Net Core RC2 linking to controllers with [RequireHttps] fails on Azure

This problem does not occur under debug on IIS express, nor did it happen under debug or on Azure in release mode using RC1.If I decorate a controller with [RequireHttps] linking to it fails within the...

View Article

Production hosting on linux

What is the suggested stack for hosting ASP.Net 5 on a linux server, and is there a guide for this yet?  Here is my best guess based on what I've read so far:ASP.Net 5 Mono mod-mono apache

View Article


Debugging Views in MVC not working in RC2

Hi GuysI recently updated my asp.net core 1.0 webapp to RC2. Since then I can't debug any MVC Views.  If I set a breaking point in the view and start the application with f5, navigate to my controllers...

View Article

Need Help about deploying Core RC2 to Godaddy Hosting

Hi,first if answered something like this question before, i couldn't found; so excuse me.i want to try to learn about core. so i tried to deploy the "default app" to my Windows hosting on...

View Article


Hosting asp.net on linux

I am trying to host asp.net on Linux machine.I updated mono framework..nginx..When I " DNU restore "it ...I am getting the following error""unable to locate dependency kestrel  >=...

View Article

"services.AddCaching();" and " app.UseSession();" not working

Hi,I am in tutorial Managing Application State. I followed everything it says, yet I couldn't get a working result. In the Startup.cs file function public void ConfigureServices(IServiceCollection...

View Article


ASP.NET Core Web Application not on list of installed templates.

I am trying to follow the tutorial Building your first ASP.NET Core MVC app with Visual Studio but cannot as ASP.NET Core Web Application is not listed in my templates.I installed .net core following...

View Article

MVC JSON Serializer Lifetime?

I noticed some interesting behavior with JSON serialization in which references are preserved. I'm guessing the JSON serializer is set up as a singleton, and therefore its reference resolver is never...

View Article

Get route value in a View and in a ASP tag helper

Hello,On an ASP.NET MVC 6 project I have the following:[Route("help/how-it-works")] public IActionResult HowItWorks() { return View(); }How can I get the route, e.g. "help/how-it-works" in the View and...

View Article
Browsing all 9386 articles
Browse latest View live


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