How do a make a .well-known folder accessible from the browser

Paul Brady 0 Reputation points
2024-09-17T19:37:15.5233333+00:00

I have a .net web app (.net 4.7.2) and I have created a folder called .well-known and create a file in the folder called assetslinks.json

When I run the project locally https://localhost:randomPort/.well-known/assetslinks.json is accessible.

I use the web deploy method to publish the project works fine.. but when I try to access the folder in the browser Its not found?

I used Kudu powersell tools and I see the folder and the file are deployed.. But how do I make it accessible?

Internet Information Services
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,476 Reputation points
    2024-09-17T22:13:12.6233333+00:00

    as the "." is either navigation character ("./" or "../"), or prefix for an extension (.json), if part of the path name, it should be encoded:

    https://localhost:randomPort/%2Ewell-known/assetslinks.json

    also depending on the hosting env, the "." prefix for a path name typically means hidden.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.