Skip to main content

Deployment problem for Asp.net Core or Asp.Net Boilerplate Project

We faces many problem in publishing ASP.NET Core Project on IIS. One of the common problem is

'The project was restored using Microsoft.NETCore.App version 2.1.0, but with current settings, version 2.1.4 would be used instead'
This occurs because your machines Microsoft.AspNetCore.App version is not same as projects Microsoft.AspNetCore.App version. To resolve this you have to do the following things:-

  1. Add following code into .csproj file
<PropertyGroup>
   <RuntimeFrameworkVersion>2.1.4</RuntimeFrameworkVersion>
   <PlatformTarget>AnyCPU</PlatformTarget>
   <RuntimeIdentifier>win-x64</RuntimeIdentifier>
 </PropertyGroup>
  1. Check Microsoft.AspNetCore.App version is 2.1.4. if not please install this version.
3.Restore your package with 2.1.4 version. To restore run following code from package manager console
Install-Package Microsoft.NETCore.App -Version 2.1.4

Comments

Popular posts from this blog

color names and numbers in bengali

move item from one table to another table using jquery

move item from one table to another table with master detail relationship. this task is performed in core jquery and html.     <style>          #field {     margin-bottom:10px; } ul.listbox {   list-style: none;   padding-left: 0;   /*margin-top: 25px;*/   border: 1px solid black;   min-height: 250px;    max-width:200px;     border-radius: 10px;     overflow:auto;     height:200px; } .listbox li {   /*border: 1px solid black;   display: inline-block;*/   padding: 5px 10px;   margin-right: 5px;   margin-bottom: 5px;   text-transform: capitalize; } .data-item.active {     background-color:#428bca;     color:white; } .comp-item.active {     background-color:#428bca;     color:white; } .comp-item:hover {     background-color:#428bca;     color:...