dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.19k stars 9.93k forks source link

[Blazor Webassembly] Client runs fine on development machine, fails to launch on linux server #35829

Closed tessarolli closed 3 years ago

tessarolli commented 3 years ago

Describe the bug

The app is working fine on all development machines, on debug mode. We are publishing it to our Debian Linux Server, and upon starting the software, it fails to load Microsoft.AspNetCore.Components.WebAssembly.Server

Note: If I comment out the code line app.UseBlazorFrameworkFiles(); on Startup.cs, the App starts and run normally (without the blazor support, off course!, but all other functionalities work as expected)

What Am I Doing Wrong that it's not including the referred DLL on publish folder?????

The Exception: Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: crit: Microsoft.AspNetCore.Hosting.Diagnostics[6] Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: Application startup exception Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Components.WebAssembly.Server, Version=5.0.9.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: File name: 'Microsoft.AspNetCore.Components.WebAssembly.Server, Version=5.0.9.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.<Build>b__0(IApplicationBuilder builder) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass15_0.<UseStartup>b__1(IApplicationBuilder app) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.<Configure>g__MiddlewareFilterBuilder|0(IApplicationBuilder builder) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.HostFilteringStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Components.WebAssembly.Server, Version=5.0.9.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: File name: 'Microsoft.AspNetCore.Components.WebAssembly.Server, Version=5.0.9.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.<Build>b__0(IApplicationBuilder builder) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass15_0.<UseStartup>b__1(IApplicationBuilder app) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.<Configure>g__MiddlewareFilterBuilder|0(IApplicationBuilder builder) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.HostFilteringStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) Aug 27 11:20:03 novoservidor ThetaApp.WebAPI[7826]: at TessarolliSolutions.ThetaApp.WebAPI.Program.Main(String[] args) in C:\TessarolliSolutions\ThetaApp.WebAPI\Program.cs:line 134

I have tried to manually copying the specified DLL to runtime folder, with no success.

Here is the csproj for the client (on hosted mode)

<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
    <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
  </PropertyGroup>

  <ItemGroup>
    <EmbeddedResource Include="wwwroot\assets\css\TessarolliSolutions.ThetaApp.Cliente.Webasm.styles.css" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.9" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.9" PrivateAssets="all" />
    <PackageReference Include="MudBlazor" Version="5.1.0" />
    <PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\TessarolliSolutions.Utils\TessarolliSolutions.Utils\TessarolliSolutions.Utils.csproj" />
    <ProjectReference Include="..\..\ThetaApp.ERP\ThetaApp.ERP.Core\ThetaApp.ERP.Core.csproj" />
  </ItemGroup>

  <ItemGroup>
    <ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
  </ItemGroup>

  <ItemGroup>
    <Folder Include="Components\" />
    <Folder Include="Services\" />
  </ItemGroup>

</Project>

here is the csproj of the server project

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup Label="Globals">
    <SccProjectName>SAK</SccProjectName>
    <SccProvider>SAK</SccProvider>
    <SccAuxPath>SAK</SccAuxPath>
    <SccLocalPath>SAK</SccLocalPath>
    <Configurations>Debug;Release</Configurations>
  </PropertyGroup>

  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
    <!--<TargetFramework>netcoreapp3.1</TargetFramework>-->
    <ApplicationIcon>wwwroot\favicon.ico</ApplicationIcon>
    <OutputType>Exe</OutputType>
    <StartupObject />
    <RootNamespace>TessarolliSolutions.ThetaApp.WebAPI</RootNamespace>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <DefineConstants>TRACE;</DefineConstants>
  </PropertyGroup>

  <PropertyGroup>
    <DefineConstants>DEBUG;</DefineConstants>
  </PropertyGroup>

  <PropertyGroup> 
    <!--Required by AspnetCore 3.0-->
    <AddRazorSupportForMvc>true</AddRazorSupportForMvc>
    <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
    <LangVersion>8.0</LangVersion>
    <AssemblyName>TessarolliSolutions.ThetaApp.WebAPI</AssemblyName>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="TessarolliSolutions\**" />
    <Content Remove="TessarolliSolutions\**" />
    <EmbeddedResource Remove="TessarolliSolutions\**" />
    <None Remove="TessarolliSolutions\**" />
  </ItemGroup>

  <!--<PropertyGroup>
    <RestoreProjectStyle>PackageReference</RestoreProjectStyle>
  </PropertyGroup>

  <PropertyGroup>
    <RestoreProjectStyle>ProjectReference</RestoreProjectStyle>
  </PropertyGroup>-->

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.7" />
    <PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="3.1.7" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="5.0.9" PrivateAssets="all" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.7" />
    <PackageReference Include="System.Diagnostics.Debug" Version="4.3.0" />
    <PackageReference Include="Dapper" Version="2.0.35" />
    <PackageReference Include="FirebirdSql.Data.FirebirdClient" Version="7.10.1" />
    <PackageReference Include="jQuery" Version="3.5.1" />
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.5" />
    <PackageReference Include="NETStandard.Library" Version="2.0.3" />
    <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
    <PackageReference Include="Rssdp" Version="4.0.3" />
    <PackageReference Include="System.Net.Primitives" Version="4.3.1" />
    <PackageReference Include="System.Resources.ResourceManager" Version="4.3.0" />
    <PackageReference Include="System.Text.Encoding.Extensions" Version="4.3.0" />
    <PackageReference Include="X.PagedList.Mvc.Core" Version="8.0.7" />
  </ItemGroup>

  <!--<ItemGroup>
    <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.2" />
  </ItemGroup>-->

  <ItemGroup>
    <Folder Include="Areas\Callback\Data\" />
    <Folder Include="Areas\Callback\Models\" />
    <Folder Include="Areas\Club\Controllers\" />
    <Folder Include="Areas\Club\Views\" />
    <Folder Include="Areas\Marketplace\Models\" />
    <Folder Include="Areas\PaulistinhaPerfumaria\Data\" />
    <Folder Include="Areas\PaulistinhaPerfumaria\Models\" />
    <Folder Include="Areas\TessaBikes\Data\" />
    <Folder Include="Areas\TessaBikes\Layout\" />
    <Folder Include="Areas\TessaBikes\Models\" />
    <Folder Include="Properties\PublishProfiles\" />
  </ItemGroup>

  <ItemGroup>
    <None Include="wwwroot\assets\js\script.min.js" />
    <None Include="wwwroot\assets\js\tt1.min.js" />
    <None Include="wwwroot\css\bootstrap-theme.css.map" />
    <None Include="wwwroot\css\bootstrap-theme.min.css.map" />
    <None Include="wwwroot\css\bootstrap.css.map" />
    <None Include="wwwroot\css\bootstrap.min.css.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\css\bootstrap-grid.css.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\css\bootstrap-grid.min.css.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\css\bootstrap-reboot.css.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\css\bootstrap-reboot.min.css.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\css\bootstrap.css.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\css\bootstrap.min.css.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\js\bootstrap.bundle.js" />
    <None Include="wwwroot\css\paulistinha\bootstrap\js\bootstrap.bundle.js.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\js\bootstrap.bundle.min.js" />
    <None Include="wwwroot\css\paulistinha\bootstrap\js\bootstrap.bundle.min.js.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\js\bootstrap.js" />
    <None Include="wwwroot\css\paulistinha\bootstrap\js\bootstrap.js.map" />
    <None Include="wwwroot\css\paulistinha\bootstrap\js\bootstrap.min.js" />
    <None Include="wwwroot\css\paulistinha\bootstrap\js\bootstrap.min.js.map" />
    <None Include="wwwroot\css\paulistinha\jquery\jquery.js" />
    <None Include="wwwroot\css\paulistinha\jquery\jquery.min.js" />
    <None Include="wwwroot\css\paulistinha\jquery\jquery.min.map" />
    <None Include="wwwroot\css\paulistinha\jquery\jquery.slim.js" />
    <None Include="wwwroot\css\paulistinha\jquery\jquery.slim.min.js" />
    <None Include="wwwroot\css\paulistinha\jquery\jquery.slim.min.map" />
    <None Include="wwwroot\fonts\glyphicons-halflings-regular.svg" />
    <None Include="wwwroot\fonts\glyphicons-halflings-regular.woff2" />
    <None Include="wwwroot\fonts\ts\fonts\fontawesome-webfont.svg" />
    <None Include="wwwroot\fonts\ts\fonts\fontawesome-webfont.woff2" />
    <None Include="wwwroot\images\banner1.svg" />
    <None Include="wwwroot\images\banner2.svg" />
    <None Include="wwwroot\images\banner3.svg" />
    <None Include="wwwroot\images\banner4.svg" />
    <None Include="wwwroot\images\iphone.svg" />
    <None Include="wwwroot\jquery-validation-unobtrusive\jquery.validate.unobtrusive.js" />
    <None Include="wwwroot\jquery-validation-unobtrusive\jquery.validate.unobtrusive.min.js" />
    <None Include="wwwroot\jquery-validation\dist\additional-methods.js" />
    <None Include="wwwroot\jquery-validation\dist\additional-methods.min.js" />
    <None Include="wwwroot\jquery-validation\dist\jquery.validate.js" />
    <None Include="wwwroot\jquery-validation\dist\jquery.validate.min.js" />
    <None Include="wwwroot\jquery-validation\LICENSE.md" />
    <None Include="wwwroot\jquery\dist\jquery.js" />
    <None Include="wwwroot\jquery\dist\jquery.min.js" />
    <None Include="wwwroot\jquery\dist\jquery.min.map" />
    <None Include="wwwroot\jquery\dist\jquery_ts.min.js" />
    <None Include="wwwroot\js\agency.js" />
    <None Include="wwwroot\js\bootstrap-datepicker.js" />
    <None Include="wwwroot\js\bootstrap.js" />
    <None Include="wwwroot\js\bootstrap.min.js" />
    <None Include="wwwroot\js\bootstrap_ts.min.js" />
    <None Include="wwwroot\js\jquery.mask.js" />
    <None Include="wwwroot\js\jquery.mask.min.js" />
    <None Include="wwwroot\js\npm.js" />
    <None Include="wwwroot\js\popper.js" />
    <None Include="wwwroot\js\signalr\dist\browser\signalr.js" />
    <None Include="wwwroot\js\signalr\dist\browser\signalr.min.js" />
    <None Include="wwwroot\js\site.js" />
    <None Include="wwwroot\js\site.min.js" />
    <None Include="wwwroot\lib\bootstrapDist\css\bootstrap-theme.css.map" />
    <None Include="wwwroot\lib\bootstrapDist\css\bootstrap-theme.min.css.map" />
    <None Include="wwwroot\lib\bootstrapDist\css\bootstrap.css.map" />
    <None Include="wwwroot\lib\bootstrapDist\fonts\glyphicons-halflings-regular.svg" />
    <None Include="wwwroot\lib\bootstrapDist\fonts\glyphicons-halflings-regular.woff2" />
    <None Include="wwwroot\lib\bootstrapDist\jquery-validation-unobtrusive\jquery.validate.unobtrusive.js" />
    <None Include="wwwroot\lib\bootstrapDist\jquery-validation-unobtrusive\jquery.validate.unobtrusive.min.js" />
    <None Include="wwwroot\lib\bootstrapDist\jquery-validation\dist\additional-methods.js" />
    <None Include="wwwroot\lib\bootstrapDist\jquery-validation\dist\additional-methods.min.js" />
    <None Include="wwwroot\lib\bootstrapDist\jquery-validation\dist\jquery.validate.js" />
    <None Include="wwwroot\lib\bootstrapDist\jquery-validation\dist\jquery.validate.min.js" />
    <None Include="wwwroot\lib\bootstrapDist\jquery-validation\LICENSE.md" />
    <None Include="wwwroot\lib\bootstrapDist\jquery\dist\jquery.js" />
    <None Include="wwwroot\lib\bootstrapDist\jquery\dist\jquery.min.js" />
    <None Include="wwwroot\lib\bootstrapDist\jquery\dist\jquery.min.map" />
    <None Include="wwwroot\lib\bootstrapDist\js\bootstrap.js" />
    <None Include="wwwroot\lib\bootstrapDist\js\bootstrap.min.js" />
    <None Include="wwwroot\lib\bootstrapDist\js\npm.js" />
    <None Include="wwwroot\lib\bootstrapDist\js\site.js" />
    <None Include="wwwroot\lib\bootstrapDist\js\site.min.js" />
    <None Include="wwwroot\lib\bootstrap\dist\css\bootstrap-grid.css.map" />
    <None Include="wwwroot\lib\bootstrap\dist\css\bootstrap-reboot.css.map" />
    <None Include="wwwroot\lib\bootstrap\dist\css\bootstrap-theme.css.map" />
    <None Include="wwwroot\lib\bootstrap\dist\css\bootstrap-theme.min.css.map" />
    <None Include="wwwroot\lib\bootstrap\dist\css\bootstrap.css.map" />
    <None Include="wwwroot\lib\bootstrap\dist\css\bootstrap.min.css.map" />
    <None Include="wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.svg" />
    <None Include="wwwroot\lib\bootstrap\dist\fonts\glyphicons-halflings-regular.woff2" />
    <None Include="wwwroot\lib\bootstrap\dist\js\bootstrap.js" />
    <None Include="wwwroot\lib\bootstrap\dist\js\bootstrap.js.map" />
    <None Include="wwwroot\lib\bootstrap\dist\js\bootstrap.min.js" />
    <None Include="wwwroot\lib\bootstrap\dist\js\npm.js" />
    <None Include="wwwroot\lib\bootstrap\LICENSE" />
    <None Include="wwwroot\lib\jquery-validation-unobtrusive\jquery.validate.unobtrusive.js" />
    <None Include="wwwroot\lib\jquery-validation-unobtrusive\jquery.validate.unobtrusive.min.js" />
    <None Include="wwwroot\lib\jquery-validation\dist\additional-methods.js" />
    <None Include="wwwroot\lib\jquery-validation\dist\additional-methods.min.js" />
    <None Include="wwwroot\lib\jquery-validation\dist\jquery.validate.js" />
    <None Include="wwwroot\lib\jquery-validation\dist\jquery.validate.min.js" />
    <None Include="wwwroot\lib\jquery-validation\LICENSE.md" />
    <None Include="wwwroot\lib\jquery\dist\jquery.js" />
    <None Include="wwwroot\lib\jquery\dist\jquery.min.js" />
    <None Include="wwwroot\lib\jquery\dist\jquery.min.map" />
    <None Include="wwwroot\marketplace\js\scripts.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\js\main.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\aos\aos.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\css\bootstrap-grid.css.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\css\bootstrap-grid.min.css.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\css\bootstrap-reboot.css.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\css\bootstrap-reboot.min.css.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\css\bootstrap.css.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\css\bootstrap.min.css.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\js\bootstrap.bundle.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\js\bootstrap.bundle.js.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\js\bootstrap.bundle.min.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\js\bootstrap.bundle.min.js.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\js\bootstrap.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\js\bootstrap.js.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\js\bootstrap.min.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\bootstrap\js\bootstrap.min.js.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\boxicons\fonts\boxicons.svg" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\boxicons\fonts\boxicons.woff2" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\counterup\counterup.min.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\icofont\fonts\icofont.woff2" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\isotope-layout\isotope.pkgd.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\isotope-layout\isotope.pkgd.min.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\jquery-sticky\jquery.sticky.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\jquery.easing\jquery.easing.min.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\jquery\jquery.min.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\jquery\jquery.min.map" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\owl.carousel\LICENSE" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\owl.carousel\owl.carousel.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\owl.carousel\owl.carousel.min.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\owl.carousel\README.md" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\php-email-form\validate.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\venobox\venobox.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\venobox\venobox.min.js" />
    <None Include="wwwroot\paulistinhaperfumaria\assets\vendor\waypoints\jquery.waypoints.min.js" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\TessarolliSolutions.Utils\TessarolliSolutions.Utils\TessarolliSolutions.Utils.csproj" />
    <ProjectReference Include="..\ThetaApp.Cliente\TessarolliSolutions.ThetaApp.Cliente.Webasm\TessarolliSolutions.ThetaApp.Cliente.Webasm.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP.Core\ThetaApp.ERP.Core.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.Academia\ThetaApp.ERP.Project.Academia.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.ClubeDeServicos\ThetaApp.ERP.Project.ClubeDeServicos.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.Club\ThetaApp.ERP.Project.Club.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.CRM\ThetaApp.ERP.Project.CRM.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.Distribuidor\ThetaApp.ERP.Project.Distribuidor.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.EducadorFisico\ThetaApp.ERP.Project.EducadorFisico.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.Hotel\ThetaApp.ERP.Project.Hotel.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.OS\ThetaApp.ERP.Project.OS.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.Restaurante\ThetaApp.ERP.Project.Restaurante.csproj" />
    <ProjectReference Include="..\ThetaApp.ERP\ThetaApp.ERP._Projects\ThetaApp.ERP.Varejo\ThetaApp.ERP.Project.Varejo.csproj" />
  </ItemGroup>

  <!--<ItemGroup>
    <Reference Include="System.Web">
      <HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.1\System.Web.dll</HintPath>
    </Reference>
  </ItemGroup>-->

  <ItemGroup>
    <None Update="ceps.txt">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>
</Project>

Further technical details

DOT NET CORE, Running on Kestrel, with Apache reverse-proxy on Linux.

Runtime Environment: OS Name: debian OS Version: 10 OS Platform: Linux RID: debian.10-x64 Base Path: /usr/share/dotnet/sdk/5.0.400/

Host (useful for support): Version: 5.0.9 Commit: 208e377a53

.NET SDKs installed: 3.1.407 [/usr/share/dotnet/sdk] 5.0.400 [/usr/share/dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 3.1.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download root@novoservidor:/dotnetserver/ThetaApp.WebAPI# dotnet --info .NET SDK (reflecting any global.json): Version: 5.0.400 Commit: d61950f9bf

Runtime Environment: OS Name: debian OS Version: 10 OS Platform: Linux RID: debian.10-x64 Base Path: /usr/share/dotnet/sdk/5.0.400/

Host (useful for support): Version: 5.0.9 Commit: 208e377a53

.NET SDKs installed: 3.1.407 [/usr/share/dotnet/sdk] 5.0.400 [/usr/share/dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 3.1.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download



- The IDE Visual Studio 16.11.2
tessarolli commented 3 years ago

Found the fix

For future reference, this project line <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="5.0.9" PrivateAssets="all" /> should be <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="5.0.9" />

Thanks