作者uni1021 (小李)
看板C_Sharp
标题[问题] asp.net core 读取不到档案
时间Sat Jan 5 18:21:31 2019
我有一个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://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1546683693.A.0D7.html
1F:→ 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
2F:→ konkonchou: https ://ppt.cc/fUmIyx 01/05 19:39
3F:→ konkonchou: 推文没办法贴 消去中间空格 01/05 19:40
成功了 非常感谢!!
※ 编辑: uni1021 (39.10.37.22), 01/05/2019 20:51:52