Open Closed

Error after switching launchSettings.json back to Development #6615


User avatar
0
phil@travelengine.com.au created
  • ABP Framework version: v8.0

  • UI Type: Blazor Server

  • Database System: EF Core (SQL Server)

  • Tiered (for MVC) or Auth Server Separated (for Angular): no

  • Exception message and full stack trace: [15:31:27 ERR] An unhandled exception has occurred while executing the request. System.ArgumentException: The path in 'value' must start with '/'. (Parameter 'value')  at Microsoft.AspNetCore.Http.PathString..ctor(String value)  at Microsoft.AspNetCore.Mvc.Routing.UrlHelperBase.Content(HttpContext httpContext, String contentPath)  at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperStyleService.AddHtmlTag(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, BundleFile file, IFileInfo fileInfo)  at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List1 bundleItems, String bundleName)  at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService2.ProcessAsync(TagHelperContext context, TagHelperOutput output)  at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count)  at TravelEngine.Athena.Pages.Pages__Host.<ExecuteAsync>b__17_0() in C:\Dev\VS\TE\TravelEngine.Athena\aspnet-core\src\TravelEngine.Athena.Blazor\Pages_Host.cshtml:line 20

  • Steps to reproduce the issue: I noticed that my launch settings was set to Production after experiencing some certificate issues in dev testing. So I set them back to "Development". I now get the above error when trying to start the Blazor server app.

The line in _Host.html on which this occurs is: <abp-style-bundle name="@BlazorLeptonXThemeBundles.Styles.Global" />


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    The path in 'value' must start with '/'. (Parameter 'value')

    Could you check your BundleContributors.

    Make sure the path starts with /.

    For example:

  • User Avatar
    0
    phil@travelengine.com.au created

    Ok. Thanks. I had added a Blazor component library and there was a leading slash omitted.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11