問題タブ [self-host-webapi]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 自己ホスト Web API で静的ファイルを取得する
のように、プロジェクトからブラウザに静的ファイルを取得するのが好きhttps://localhost:3440/myFile.txt
です。
「myFile.txt」を App.config ファイルの近くのルート ディレクトリに配置しました。しかし、何らかの理由で 404 しか取得できませんでした。
応募について
WebAPI プロジェクト、Owin で自己ホスト
IIS なし、コンソールで実行。
試した:
https://www.codeproject.com/Tips/1081630/How-to-Access-Static-Content-Files-in-MVC-Applicat