“在模块mscorlib.dll中找不到system.systemexception”当我引用windows.phone [英] "cannot find type system.systemexception in module mscorlib.dll" when i referencing windows.phone
问题描述
使用Microsoft.Phone.BackgroundAudio;
当我使用这个我得到找不到类型system.systemexception在模块mscorlib.dll错误。后来在脚本中,如果我尝试使用BackgroundAudio的功能,它显然会引发错误并询问一个引用。但是参考文件不起作用。
我已经尝试了一个完整的重新安装,当我研究这个问题时,这是在stackoverflow中提出的。
任何帮助将不胜感激。谢谢!
我以前有这个问题,问题是Windows Phone。我所做的是在参考中,我删除了Microsoft.Phone.dll。我在微软的线程中看到Windows Phone不接受第三方库或其他DLL。
我发现可以在Windows Phone上加载或执行媒体文件的两个链接:
- http://www.windowsapptutorials.com/windows-phone/media/play-audio-file-windows-phone-app-using- media-element-control /
- https://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj841209.aspx#declare_the_background_audio_task
希望这有助于或导致您在某个地方..
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:
- http://www.windowsapptutorials.com/windows-phone/media/play-audio-file-windows-phone-app-using-media-element-control/
- https://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj841209.aspx#declare_the_background_audio_task
Hope this helps or lead you somewhere..
这篇关于“在模块mscorlib.dll中找不到system.systemexception”当我引用windows.phone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!