mscorlib dll异常 [英] mscorlib dll exception

查看:158
本文介绍了mscorlib dll异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个媒体播放器和一个设置.尝试播放歌曲时,出现错误"mscorlib路径中的非法字符",而歌曲不播放.这是什么意思?如何解决?

I have created a media player and a setup for it. When I try to play a song, I get an error "Illegel characters in path mscorlib" and the song doesn''t play. What does it mean? How can I solve it?

推荐答案

难道就像在您要播放的歌曲的路径中包含无效字符一样简单?大多数无效字符是符号,但有些更常见,例如"<>|.我的钱在"上.

要查看无效字符,可以使用System.IO.Path.GetInvalidPathChars(),然后将这些字符与您要播放的文件的路径进行比较.

您可能还会检查System.IO.Path.GetInvalidFileNameChars()
Could it be as simple as having invalid characters in the path to the song you are trying to play? Most of the invalid characters are symbols, but some are a little more common like a ", <, > and |. My money''s on the ".

To view the invalid characters you can use System.IO.Path.GetInvalidPathChars(), then compare those characters to the path to the file you''re trying to play.

You might also check System.IO.Path.GetInvalidFileNameChars()


This thread[^] may provide additional information.


这篇关于mscorlib dll异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆