Skip to content

Setting PathBase breaks Browserlink #58046

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


Hi,
I have a asp.net 8 project that's using a PathBase, like this:

app.UsePathBase("/myPrefix");

With the following launchSettings.json:

{
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true
    }
  },
  "iisSettings": {
    "windowsAuthentication": true,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "https://localhost:44320/myPrefix",
      "sslPort": 0
    }
  }
}

Now, during debugging, the Browserlink files are not being found:
image.png

The files are searched for at these URLs:
https://localhost:44320/_vs/browserLink
https://localhost:44320/_framework/aspnetcore-browser-refresh.js

But they're only available here: (manually calling this URL works and gives me the scripts)
https://localhost:44320/**myPrefix**/_vs/browserLink
https://localhost:44320/**myPrefix**/_framework/aspnetcore-browser-refresh.js

Is there any way to configure Browserlink to point to the right URLs?

I did not find anything in the documentation page


Original Comments

Feedback Bot on 7/10/2024, 07:16 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 7/12/2024, 09:56 AM:

This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueStatus: No Recent Activityarea-ui-renderingIncludes: MVC Views/Pages, Razor Views/Pagesinvestigate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions