“在模块mscorlib.dll中找不到system.systemexception”当我引用windows.phone [英] "cannot find type system.systemexception in module mscorlib.dll" when i referencing windows.phone

查看:241
本文介绍了“在模块mscorlib.dll中找不到system.systemexception”当我引用windows.phone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Phone 8.1的c#编码,我需要播放一个.mp3文件。我知道这样做的唯一简单方法是通过Microsoft.Phone.BackgroundAudio引用。但是当我尝试通过对象浏览器引用Microsoft.Phone时,会抛出错误在模块mscorlib.dll中找不到system.systemexception。以下是相关代码:

 使用Microsoft.Phone.BackgroundAudio; 

当我使用这个我得到找不到类型system.systemexception在模块mscorlib.dll错误。后来在脚本中,如果我尝试使用BackgroundAudio的功能,它显然会引发错误并询问一个引用。但是参考文件不起作用。



我已经尝试了一个完整的重新安装,当我研究这个问题时,这是在stackoverflow中提出的。



任何帮助将不胜感激。谢谢!

解决方案

我以前有这个问题,问题是Windows Phone。我所做的是在参考中,我删除了Microsoft.Phone.dll。我在微软的线程中看到Windows Phone不接受第三方库或其他DLL。



我发现可以在Windows Phone上加载或执行媒体文件的两个链接:





希望这有助于或导致您在某个地方..


I am coding in c# on Windows Phone 8.1, and I need to play an .mp3 file. The only simple way I am aware of doing this is through the "Microsoft.Phone.BackgroundAudio" reference. However when i try to reference "Microsoft.Phone" through the object browser, it throws the error "cannot find type system.systemexception in module mscorlib.dll". Here is the relevant code below:

using Microsoft.Phone.BackgroundAudio;

when i use this i get the "cannot find type system.systemexception in module mscorlib.dll" error. Later in the script if i try to use a function of BackgroundAudio, it obviously throws an error and asks about a reference. However the reference doesnt work.

I have tried a complete reinstall, which was suggested on stackoverflow when i researched this question.

Any help would be much appreciated. Thanks!

解决方案

I had this issue before and the problem was the Windows Phone. What I did was on the "Reference", I removed "Microsoft.Phone.dll". I read somewhere in the Microsoft's thread that Windows Phone does not accept third party library or additional DLL.

I found two links that can load or execute media files on Windows Phone:

Hope this helps or lead you somewhere..

这篇关于“在模块mscorlib.dll中找不到system.systemexception”当我引用windows.phone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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