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

accessing the Entity Framework 6 CodeFirst db in BaseController

Hi,I am using ASPNet Core, EntityFramework 6 CodeFirst.I have a BaseController which will get the User Information by accessing the Entity Framework 6 Code First database.  This will be inherited for...

View Article


Problem with Razor mixed Javascript ...

 Hello everyone, I tried toswitch to ajavascript function server-sideinformation.The problem seems tobe dueto the factthat he can notread the valueof theJavaScriptvariable "filename" (it is notseen in...

View Article


VS2017 Deploying and Starting Minimal Kestrel SCD Application

Hello, I am trying to create the smallest (only what I need) self-contained deployment possible for Asp.Net Core application using Kestrel that will run on a device like Raspberry Pi. However, I can...

View Article

Migration error to Visual Studio 2017

I would like to migrate my ASP.NET Core project to Visual Studio 2017 Community Edition, but I'm getting an error.E:\xxxxxx\projectName.xproj : error  : The imported project "C:\Program Files...

View Article

What is the concept of classes and objects in n tier architecture or 3 tier...

By this question, I want to elaborate that how are classes made in a BO, BAL and DAL layers ? For example, Registration and login should be treated as methods and have to be made in DAL and needs to be...

View Article


VS community 2017 and Loading depandances

Hello,I'm following a online pluralsight course but they are using an older version (Visual Studio 2015 update 3), and it taking about added extra dependences to the global.json or Project.json file...

View Article

asp.net core 1.0.1 and reporting services report viewer

Has anyone successfully integrated SQL 2016 SSRS reportviewer? If so, can you point me in the direction for a sample?

View Article

Modelbinding a List stopped working when moving from .net core 1.0 to .net...

Hi all,When upgrading to 1.1 my modelbinding from a form stopped workingpublic class test {public int id {get;set;}public string name {get;set;}}[HttpGet]public async Task<IActionResult>...

View Article


Change the EF Core connection string at runtime from a Controller

Hello,I am using ASP.NET Core and EF Core for the creation of a Web API. I want to use thesame Web API (same controllers, same functionalities, etc.) formultiple databases. Therefore, what I want to...

View Article


Hosting asp.net core online

Hi I am trying to host asp.net core blog online.This is my first time   hosting website online.Can anybody provide me documentation including step by step process how to host it other than   on...

View Article

Post Current Page Before Navigating Away

We have a web app that has 5 tabs with a form on each. After completing tab 1 and submitting it it posts the form data and redirects to tab 2.  The problem we are having is that we need navigation for...

View Article

trouble with add-migration in VS 2017

Getting following error while trying to add a migration. Any ideas?PM> add-migration m1 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->...

View Article

AspNetCore AzureAppServicesIntegration not compatible with netcoreapp1.1

I have a web.api project targeting netcoreapp1.1, when I try to:Install-Package Microsoft.AspNetCore.AzureAppServicesIntegration I get an the error:Install-Package : One or more packages are...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core application not freeing memory

I have an ASP.NET Core application running behind IIS in production that is not freeing memory on its own until the application pool recycles itself.  Every request causes the memory to increase.  I am...

View Article

The ASPX file is turned into binary file.

Hi!Recently, my PC got freeze and it shut down unexpectedly without saving my ASPX file. After I turned on again my PC, the ASPX file turned into binary file but the ASPX.CS is still accessible. How...

View Article


VS2017 Scaffolding error Microsoft.VisualStudio.Web.CodeGeneration.Utils

I am trying to just do an controller scaffolding on a ASP.NET Core application I and I get the following errorUnhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly...

View Article

What is Micro service in asp.net core

please get me good explanation for what is Micro service ?when we use Micro service ?web api or wcf will be used to develop Micro service ?please guide me in details with easy way with example because...

View Article


Auto migration in EF Core in three tier application

i have three tier application in Asp.net Mvc Core and use EF core, now i want create auto migration ,i have DAL layer that my context available herepublic class AdminContext : DbContext { public...

View Article

How to Log last Active Database Connection in ASP.NET Core

Hi, I am new to ASP.NET core and building an application. we got a requirement where we need to log the last active database connection and use it next time to reduce the likelihood of one connection...

View Article

Request.CreateResponse() not found - What is the alternative?

I created a new web api project with VS 2017, and am migrating some old code. Several of the methods return HttpResponseMessage objects. The old code calls Request.CreateResponse to create the response...

View Article
Browsing all 9386 articles
Browse latest View live


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