Hi @Guillermo Rodriguez , thanks for the question.
To serve a file with no extension from within a Web App on Azure, you might encounter issues because Azure Web Apps are configured to serve known file types by default. To work around this, you can try adding a custom MIME type for files with no extension in the web.config file.
Here's an example of how you can modify your web.config to include a custom MIME type for files with no extension:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\Slp.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
<staticContent>
<remove fileExtension="." />
<mimeMap fileExtension="." mimeType="text/plain" />
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
</system.webServer>
</location>
</configuration>
Also, ,if you’re using ASP.NET Core, you might need to configure the static files middleware to serve files without an extension. Ensure that the file is located in a folder that is configured to serve static files. In ASP.NET Core, this is typically the /wwwroot
folder