小编Sha*_*ers的帖子

非常不寻常的"不支持给定的路径格式"错误

这是一个非常奇怪的错误,我稍微摸了一下它.

我有一个uri不断给我"不支持给定的路径格式"错误.它在以前的版本中运行良好所以我就像wtf?我最终去了备份,这条线路完美无缺.我终于决定复制并将其作为最后的手段.

我到底得到的是三行代码看起来完全相同(至少在VS13代码编辑器中),但只有顶行代码给我一个错误.第二行来自之前的版本,第三行是我手工重新输入的版本.第二和第三部作品.隐藏的角色还是什么?对我毫无意义..

contentPlayer.PlayUri(new Uri(@"??D:\music videos\Tha Joker (Too Cold) ft. T. Lewis - Two Weeks Notice [Studio.mp4", UriKind.RelativeOrAbsolute), "2 Chainz - Good Morning");

contentPlayer.PlayUri(new Uri(@"D:\music videos\Tha Joker (Too Cold) ft. T. Lewis - Two Weeks Notice [Studio.mp4", UriKind.RelativeOrAbsolute), "2 Chainz - Good Morning");

contentPlayer.PlayUri(new Uri(@"D:\music videos\Tha Joker (Too Cold) ft. T. Lewis - Two Weeks Notice [Studio.mp4", UriKind.RelativeOrAbsolute), "2 Chainz - Good Morning");
Run Code Online (Sandbox Code Playgroud)

c# wpf notsupportedexception

1
推荐指数
1
解决办法
618
查看次数

标签 统计

c# ×1

notsupportedexception ×1

wpf ×1