看板 C_Sharp 關於我們 聯絡資訊
我有一個asp.net core的專案 我在wwwroot 資料夾底下裡面的 index.html 其中裡面有引用一個檔案 <div class="vxgplayer" id="vxg_media_player1" url="rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov" autostart controls avsync nmf-src="(MyPath)/media_player.nmf" nmf-path="media_player.nmf"> </div> 我用chrome的開發者工具看 server 回我 404 not found 應該不會是路徑錯誤的問題 因為我如果不用asp.net core 當我的server 用vs code裡的套件 live server 就可以成功get到我的檔案 是不是我的.net core server 少寫了什麼東西?! 要如何讓我的server成功get到檔案 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 39.10.37.22 ※ 文章網址: https://www.ptt.cc/bbs/C_Sharp/M.1546683693.A.0D7.html
konkonchou: IIS要增加MIME副檔名對應類型 01/05 18:31
我不是用IIS啟動的呢.. 我是用專案啟動的 這是我的啟動設定 "iRecogConsole": { "commandName": "Project", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, "applicationUrl": "https://localhost:5001;http://localhost:5000" } 是這裡要加東西嗎?! ※ 編輯: uni1021 (39.10.37.22), 01/05/2019 19:18:32
konkonchou: https ://ppt.cc/fUmIyx 01/05 19:39
konkonchou: 推文沒辦法貼 消去中間空格 01/05 19:40
成功了 非常感謝!! ※ 編輯: uni1021 (39.10.37.22), 01/05/2019 20:51:52