添加音频控件(media player或realone)后运行老出错

limengchen 2004-07-18 12:30:39
添加Windows Media Player或Realone Player后运行时在InitializeComponent()处老出现错误。
添加Windows Media Player控件后的错误:
" at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action)\r\n
at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)\r\n
at SlideShow.CFrmMain.InitializeComponent()\r\n at SlideShow.CFrmMain..ctor() in c:\\documents and settings\\cooledcoffee\\my documents\\my projects\\album.net\\slideshow\\cfrmmain.cs:line 70\r\n
at SlideShow.Program.Main() in C:\\Documents and Settings\\CooledCoffee\\My Documents\\My Projects\\Album.net\\SlideShow\\Program.cs:line 21\r\n at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)\r\n at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n
at System.ManifestRunner.Run(Boolean checkAptModel)\r\n at System.ManifestRunner.ExecuteAsAssembly()\r\n
at System.ApplicationActivator.CreateInstance(ActivationContext activationContext)\r\n at System.Activator.CreateInstance(ActivationContext activationContext)\r\n at VSHostUtil.HostProc.RunUsersAssemblyDebugInZone()\r\n
at System.Threading._Thread.ThreadStart_Context(Object state)\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callBack, Object state, StackCrawlMark& stackMark)\r\n
at System.Threading._Thread.ThreadStart()"

添加Realone player控件后的错误:
" at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action)\r\n at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)\r\n at SlideShow.CFrmMain.InitializeComponent()\r\n at SlideShow.CFrmMain..ctor() in c:\\documents and settings\\cooledcoffee\\my documents\\my projects\\album.net\\slideshow\\cfrmmain.cs:line 70\r\n at SlideShow.Program.Main() in c:\\documents and settings\\cooledcoffee\\my documents\\my projects\\album.net\\slideshow\\program.cs:line 21\r\n at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)\r\n at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n at System.ManifestRunner.Run(Boolean checkAptModel)\r\n at System.ManifestRunner.ExecuteAsAssembly()\r\n at System.ApplicationActivator.CreateInstance(ActivationContext activationContext)\r\n at System.Activator.CreateInstance(ActivationContext activationContext)\r\n at VSHostUtil.HostProc.RunUsersAssemblyDebugInZone()\r\n at System.Threading._Thread.ThreadStart_Context(Object state)\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callBack, Object state, StackCrawlMark& stackMark)\r\n at System.Threading._Thread.ThreadStart()"
...全文
90 点赞 收藏 5
写回复
5 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
limengchen 2004-08-06
不是,是在IDE里编译就出错。
回复
edfi 2004-08-05
就是用XCOPY后的程序就不能用吧,我也有这样的情况,可能是由于.NET与COM的Interop权限引起的,
回复
limengchen 2004-07-18
发现在普通程序上可以正常运行,但在Click-Once工程里面会出现上面的错误
回复
xj5162004 2004-07-18
不懂???
回复
lehehe 2004-07-18
发现在普通程序上可以正常运行,但在Click-Once工程里面会出现上面的错误

呵呵,楼主的这一句话不懂啊???up
回复
相关推荐
发帖
C#
创建于2007-09-28

10.6w+

社区成员

.NET技术 C#
申请成为版主
帖子事件
创建了帖子
2004-07-18 12:30
社区公告

让您成为最强悍的C#开发者