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

Switching up package versions

I can't seem to get the correct and matching packages.I ported a project from Asp.Net MVC 5 / EF 6 to MVC 6 with EF Core 7 and have been in package hell. Conflicting packages, errors,...It's probably...

View Article


Targeting .net core vs .NET 4.6?

right or wrong :if i made an ASP.NET core project that target .net core it will work cross platform but (for now) will have less API available. an ASP.NET core project that target "full" .NET will work...

View Article


dotnet restore failing - error MSB4019:...

So i am trying to build a project from a Yeomans template.  It's a react Boiler plate (https://github.com/pauldotknopf/react-aspnet-boilerplate).  All my NPM installs works.  Gulp works. Then when I...

View Article

ApplicationStopping event is not triggered for .net core app running in cloud...

ApplicationStopping event is not triggered for .net core app running in cloud foundry.But if I run the same app in local with DOTNET run command, the applicationStopping event  is called when shutdown...

View Article

Login Redirect on ASP.NET Core application

I have an ASP.NET Core web application and I am decorating a few controller action methods with Authorize attribute.So, when I am not logged in, it doesn't do any redirect and only shows me a blank...

View Article


Only secure content is displayed” notification in Internet Explorer

 " Only secure content is displayed” notification in Internet Explorer "how do i fix same error by using code instead of changing settings

View Article

Update MS excel sheet(office 2010) through ASP.NET Core console application

I have to update cell values in an excel sheet( office 2010) through ASP.NET CORE Console application.I am looking for some dll/package from Microsoft. But most of the dll/package does not support...

View Article

Mailkit 1.10.1 receive and empty string from smtp.gmail.com

Hi,Help needed!smtp.gmail.com return an empty string after the mail is sent and my app stop showing a blank page: you can try https://parogsingler.dk/Home/Kontakt Stopping at...

View Article


Deployment from Github to Azure fails(Unable to find version “xxxxx” of...

Command: "D:\home\site\deployments\tools\deploy.cmd" Handling ASP.NET Core Web Application deployment with MSBuild. MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files...

View Article


Creating ASP.NET MVC Core app on Mac OSx with MS SQL Server db on Azure

I'd like to know whether anyone has successfully created ASP.NET MVC Core App with Azure hosted SQL Server as backend? I'm trying to follow/mix up following...

View Article

Failed to open up Azure web app

I'm building MVC Core app using Visual Studio Code on Mac OS. I created MVC app using yeo generator working with database EF core, everything works fine on localhost. I put correct connection string...

View Article

TestServer CreateClient and HttpClientHandler

I'm using the AspNetCore TestServer and trying to connect to an API service configured for NTLM Authentication. Th service I'm connecting to needs to access the...

View Article

Best Practice for Global Variables?

In past versions of ASP.NET there were different techniques for establishing global variables (aka module level variables) that could be easily retrieved from any code in the project.With ASP.NET Core,...

View Article


Proxy 407 Access Denied

Hi,I have installed VS2015 Enterprise/Community, and the .net core sdk DotNetCore.1.0.0.RC2-SDK.Preview1-x64. Now start to create projects with .Net Core framework. I chose the .NET Core template, and...

View Article

Image may be NSFW.
Clik here to view.

Lib folder under wwwroot doesn't gets published in VisualStudio2015

<div class="post-text" itemprop="text">I have created a Angular2 project in AspNetCore1.0. The application works fine in Debug mode. but when I publish the application by "Custom" and specify the...

View Article


dotnet publish doesn't copy files and folders over to publish directory when...

The dotnet publish command didn't copy over static files and directories specified in project.json publishOptions: include array when the --output flag is specified.  It works as expected when a custom...

View Article

How to pass and access ClaimsPrincipal Identity when using TestServer

I have an aspnetcore Web API and the host is configured for Windows Auth with the following code.var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory())...

View Article


ASP.NET Core 1.1 Pass-through Authentication

I have an intranet application that needs to pass through windows credentials to my application. Currently, every browser that connects to the site brings up the Windows Authentication Required window....

View Article

Where to store connection string ID & PW when deploying web app to Azure

My MVC Core web app works with database.Is it a good practice to store the connection strings with ID & Password in appsetting.json when I deploy it to...

View Article

Hierarchical dropdown

HiI'm trying to create a hierarchical drop-down select listParent1-Child1--Subchild1Parent2-Subchild1 --Subchild2 ---Subchild3Could you please provide some examples of how to do it?Official docs have...

View Article
Browsing all 9386 articles
Browse latest View live


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