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" />

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

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

    Could you check your BundleContributors.

    Make sure the path starts with /.

    For example:

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    phil@travelengine.com.au created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.