Silverlight 浏览器外应用程序无法启动
如果我启用“退出浏览器”应用程序设置,该应用程序将不会运行,甚至不会调试。 Visual Studio 编译应用程序,切换到“调试”布局,但立即结束。
有什么想法吗?
If I enable the Out of Browser application setting, the application doesn't run, doesn't even debug. Visual Studio compiles the app, switches to Debug layout but ends immediately.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
创建一个新的 Silverlight 项目并将所有文件移至新项目。现在它可以正常工作了。我对此没有任何解释,但它有效!
Created a new Silverlight project and moved all the files to the new one. Now it works without problems. I have no explanation for this but it worked!
您是否完成了这两个链接中提到的步骤?
http://johnpapa.net/10 -在不附加浏览器应用程序的情况下调试 silverlight 的步骤
http:// indiandotnet.wordpress.com/2011/01/10/silverlight-out-of-browser-application-oob-apps-in-simple-steps/
Have you done steps mentioned in these 2 links?
http://johnpapa.net/10-steps-to-debug-silverlight-out-of-browser-applications-without-attaching
http://indiandotnet.wordpress.com/2011/01/10/silverlight-out-of-browser-application-oob-apps-in-simple-steps/
对于遇到这个问题的其他人来说,我也刚刚发生过这种情况。我按照埃洛迪的建议创建了一个新项目并进行文件夹比较。最终它归结为 InBrowserSettings xml 文件。通过手动编辑 .csproj 文件以删除对该文件的引用,然后从 Properties 文件夹中删除它来修复此问题。
For anyone else coming across this problem, I also just had this occur. I followed Elodie's suggestion and created a new project and doing folder comparisons. Eventually it came down to an InBrowserSettings xml file. It was fixed by manually editing the .csproj file to remove the reference to that file and then deleting it from the Properties folder.