London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
I think the most likely reason is, as Tomas suggests, that the file hasn't been deployed for some reason but, if the file is there and you're still getting a 404, it could be an issue with mime type mappings. If you're on .net 4.x, you can add a mapping for the file type in web.config like this:
<staticContent>
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
If you're on .net >= 5, you'll need to add your mapping in your startup class using app.UseStaticFiles.
I am working on a .Net application comnined with Optimizely CRM. i would like to access a json file like
www.abc.com/.well-known/assetlinks.json
but i can able to accress from local like
https://localhost:44300/.well-known/assetlinks.json
but wehen i try to deploy in the test environment i get this error
www.abc.com/.well-known/assetlinks.json
404 not found
Any help would be highly appricited.