Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

web.host project failed to load #9396


User avatar
0
golilysolutions created

Hi

I've downloaded Asp.net core & Angulare v8.8 and v9.0.1 but StarkTMS.Web.Host project failed to load.

please help with fix.


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    Can you share the VS error message of load failed?

  • User Avatar
    0
    golilysolutions created

    Hi

    Please see below. error : Cannot expand metadata in expression "$([MSBuild]::ValueOrDefault('%(FullPath)', '').StartsWith($([MSBuild]::EnsureTrailingSlash($(MSBuildProjectDirectory)))))". The item metadata "%(FullPath)" cannot be applied to the path "src\app\admin\dynamic-entity-parameters\entity-dynamic-parameter\entity-dynamic-parameter-value\entity-dynamic-parameter-value-manager\entity-dynamic-parameter-value-manager.component.html". Path: C:\Work\golilysolutions\Versions\StarkTMS ASP.NET CORE Angular 9.0.1\StarkTMS\src\StarkTMS.Web.Host\src\app\admin\dynamic-entity-parameters\entity-dynamic-parameter\entity-dynamic-parameter-value\entity-dynamic-parameter-value-manager\entity-dynamic-parameter-value-manager.component.html exceeds the OS max path limit. The fully qualified file name must be less than 260 characters. C:\Program Files (x86)\dotnet\sdk\3.1.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets

  • User Avatar
    0
    golilysolutions created

    changed the root folder name to exact project name. loading web.host project is working now.

    thanks,

  • User Avatar
    0
    bulutyonetim created

    Hi same Problem here:

    D:\XXX\Git\Projects\XXX\XXXDemo\src\XXXDemo.Web.Host\XXXDemo.Web.Host.csproj : error : Cannot expand metadata in expression "$([MSBuild]::ValueOrDefault('%(FullPath)', '').StartsWith($([MSBuild]::EnsureTrailingSlash($(MSBuildProjectDirectory)))))". The item metadata "%(FullPath)" cannot be applied to the path "src\app\admin\dynamic-entity-parameters\entity-dynamic-parameter\entity-dynamic-parameter-value\entity-dynamic-parameter-value-manager\entity-dynamic-parameter-value-manager.component.html". Path: D:\XXX\Git\Projects\XXX\XXXDemo\src\XXXDemo.Web.Host\src\app\admin\dynamic-entity-parameters\entity-dynamic-parameter\entity-dynamic-parameter-value\entity-dynamic-parameter-value-manager\entity-dynamic-parameter-value-manager.component.html

    exceeds the OS max path limit. The fully qualified file name must be less than 260 characters
    

    . C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets

    We had to decrease folders name or move project to uper floders but it would disrupt our folder structure.

    What you (support team) recomend for this case?

  • User Avatar
    0
    maliming created
    Support Team

    Maybe we can consider rename it to a short name. We will check this.