无法调试 Silverlight 项目
在sharepoint项目(解决方案文件)中,我有一个silverlight项目(项目A)和类库(项目B)。在类库中,我在项目B中引用了silverlight项目(项目A)。这是项目B中的代码
<object id="Sample_ID" data="data:application/x-silverlight-2," type="application/x-silverlight-2" >
<param name="source" value="/_layouts/clientbin/Sample.xap">
<param name="onError" value="onSilverlightError">
<param name="background" value="transparent">
<param name="initParams" value="Name=Sample">
<param name="isWindowless" value="true">
<param name="minRuntimeVersion" value="4.0.50826.0">
<param name="autoUpgrade" value="true">
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none">
</object>
我无法调试 silverlight 项目。我已经浏览了以下链接,但它对我没有帮助 http://msdn.microsoft.com/en-我们/library/cc838267(v=vs.95).aspx http://www.codeproject.com/Tips/68127/Unable-to-DEBUG-Silverlight-project http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/bb6dd346-a3c6-4ab2-95fd-3e6c76280e17/
任何人都可以提供此问题的解决方案?
In sharepoint Project(Solution File) I am having a silverlight project(Project A) and Class library(Project B).In the class library I have referred the silverlight project(Project A) in Project B. Here is the code in Project B
<object id="Sample_ID" data="data:application/x-silverlight-2," type="application/x-silverlight-2" >
<param name="source" value="/_layouts/clientbin/Sample.xap">
<param name="onError" value="onSilverlightError">
<param name="background" value="transparent">
<param name="initParams" value="Name=Sample">
<param name="isWindowless" value="true">
<param name="minRuntimeVersion" value="4.0.50826.0">
<param name="autoUpgrade" value="true">
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none">
</object>
I am unable to debug the silverlight project. I have gone through the following links but it didn't help me
http://msdn.microsoft.com/en-us/library/cc838267(v=vs.95).aspx
http://www.codeproject.com/Tips/68127/Unable-to-DEBUG-Silverlight-project
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/bb6dd346-a3c6-4ab2-95fd-3e6c76280e17/
Could anyone provide a solution for this issue ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您尚未启用 javascript 调试,这会禁用 Silverlight 调试。
在解决方案资源管理器中,找到您的 Web 项目(在您的情况下,这将是项目 B?),右键单击并选择“属性”。
转到“Web”选项卡,在详细信息面板中向下滚动,以便您可以在底部看到“调试器”部分。确保选中
ASP.NET
和Silverlight
选项。Ensure that you haven't enabled javascript debugging, which in turn disables Silverlight debugging.
In the solution explorer, locate your web project (in your case, this would be Project B?), right click and select Properties.
Go to the Web tab, in the details panel scroll down so you can see the Debuggers section at the bottom. Ensure that the
ASP.NET
andSilverlight
options are checked.我已经多次遇到此问题,通常会执行以下操作:
另外,您可能需要仔细检查您的调试项目是否有 Silverlight(在项目属性的 Web 选项卡下),尽管我相信 VS2010 通常会提示您是否想要执行此操作
I've run into this issue more than a few times and I usually do the following:
Also, you may want to double check that your debugging project has Silverlight (under Web tab in project properties) though I believe VS2010 typically prompts if you want to do this anyways