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

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


DI Framework

Hi,I am using Unity as DI Framework. As I can seen it does not support .NET Core. What is the most widely used DI Framework for .NET Core?Thanks

View Article


Image may be NSFW.
Clik here to view.

Published application size and structure: is it the final version?

I've been using ASP.NET for last 14 years(currently working with MVC 5)Downloaded the new VS 2017 today and tried to create an empty ASP.NET Core webapplication. Then "Publish..."-ed it and didn't like...

View Article

Visual Studio 2017 release .NET Core 1.1.1 Razor Tag Helpers do not get...

Hi,My .csproj contains <PackageReference Include="Microsoft.AspNetCore.Razor.Tools" Version="1.1.0-preview4-final" />but Razor Tag Helpers do not get colorization nor intellisense.Any help how to...

View Article

Correct Publishing my Website

Hello,i have some problems to publish my website. I have a asp.core website with angular 2 as frontent. Now i want to publish my website to my IIS. I publish with Web Deploy.At Settings i can config...

View Article


splitting a form between partial views

I would like to have two partial views in which I can put the beginning form tag in one and the ending in another, so that I can place content between them:@{await...

View Article

"DRY" form tag uniformity in one component or partial view

I have a number of form tags that look similar:<form asp-area=@ViewBag.Area asp-controller=@ViewBag.Controller asp-action=@ViewBag.Action asp-route-returnurl="@ViewData["ReturnUrl"]" method="post"...

View Article

Login Name without the Domain name showing (No Java Script)

 I need to display the current logged in user name.  I have the login name control but it is displaying the domaniname\username.How do I display the username only? ( I know how to do using java script...

View Article


when i type dotnet new in console , it's not create a new project , the...

i cant create new console application from command line when i type dotnet new , i got this output as seen in this image  F:\Projects\ASP Core Projects\tutorial\HelloWorld>dotnet new Template...

View Article


google claim based authentication

Hi guys,I want to know google claim based authentication.(For Example : Full User Name / Country Code / Profile Image URL...and etc..)Does guys have demo code or related blog article?

View Article

Using an unspecified model in a partial view

Hello I want to to send an unspecified model with another model that includes the information of parameters of the first model into a partial view and build the input parameters. The second model...

View Article

How to develop core and non-core based apps using VS2015 and VS2017

when we develop application using VS2015 / VS2017 then does it means that my application will be develop on dotnet core and i can run on any platform like linux, windows and mac etc ?how to develop non...

View Article

How to import file csv in Sql Server with ASP.NET Core 1.1 MVC ...

Hello everyone, I am developing with ASP.NET MVC 1.1 Core and I need to import csv files into SQL Server, it would seem that ADO.NET can not use more or better data structures like "DataTable" and...

View Article


adding package in linux

Hi,Because of several problems with VS 2017 Bugs and it's enormous wight (like other Visual Studios) I decided to code in linux by VS Code and I managed almost.however say that I want to use a function...

View Article

Authenticating / Authorizing to grant external website access to an asp.net...

Hello all,We have developed a ASP.NET MVC CORE 1.1 application with default authentication scheme. We are also using claims based structure for profile differentiation to allow / prevent access to some...

View Article


502.3 Bad Gateway - Web API and MVC on same IIS Server with Integrated...

I've been trying to solve this issue for several days now, but I haven't found anyone able to help. Kind of reaching out here hoping to reach someone who knows where I'm going wrong.I have an ASP.NET...

View Article

Receive Invalid Token From Twitter on Azure but locahost is ok

Hi,I'm using Linq2Twitter plugin to link my site to Twitter, users are able to authenticate on localhost but once deployed to Azure, Twitter most likely provides invalid tokens....I have described the...

View Article


Image may be NSFW.
Clik here to view.

Runtime error after adding Microsoft.AspNetCore.Session and...

All I ever wanted was to use TempData in my application So long story short, my project.json dependencies now looks like this:"dependencies": {"Microsoft.ApplicationInsights.AspNetCore":...

View Article

Generic Web handler ashx in .net core

   Hi in mvc5 i have a NotificationHandler.ashx  handler and i make something if (context.Request.HttpMethod == "POST") { i get a json context and do something.... }and the url is...

View Article

Project Hierarchy, What Technologies to use?

Hi,I want to write application separated to 3 parts. Client Service, Service, Web.Let's say we have for example 5 computers and 1 server. Each computer will run Client Service. Server will run Service...

View Article
Browsing all 9386 articles
Browse latest View live


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